
INSTALL
=======

1) copy all files to your pppBlog directory

2) add the event functions to your scripts/sb_function.php file

    require_once('scripts/sb_events.php');


3) add the event calendar to your themes/your_theme/theme.php
   (and remove the title string 'archive')

replace:
     $result = menu_display_blognav();
     echo( '<span class="menu_title">' . $result['title'] . '</span><br/>' );
with:
     $result = menu_display_blognav_events();


4) add the following line to your index.php in your simple PHP blog 
   dir if you want to enable repeated events (every year/every month)
   (do this in the PHP code just before the DOCTYPE declaration)

     repeat_events($year,$month);

   NOTE: this function will be called each time the index.php is opened. 
         Many re-current events may slow down the process quite a bit!
	 (the script saves the last modification time and copies events
	  only once, i.e. it shouldn't be a big efficency issue!)

5) remove the following line from index.php in your simple PHP blog dir:
   (to disable displaying the most recent entry which could be an 
    event far away in the future)

   get_latest_entry();


USAGE
=====

* click on a date in the calendar and the 'add event' form will appear
  - this is like a blog-entry if you're logged in
  - this is like a comment if you're not logged in (a dummy post will be 
    created and the event comment will be attached to it)
* you can select one of two 'repeat' options (every year/every month),
  event-entries will then be copied to coming months/years (once when 
  somebody clicks on a new month/year)
  (this can be used for birthdays and other re-current events)


TODO
====

- different link colors for 'event_add' and 'display_entry'
- multiple language support
