Hi everyone,
I think I found a solution on how to cleanly create the 2nd calendar. It
requires modifying 2 files:
1. In install.php (line 28), set $calendar_name to whatever value you want
the new calendar to have. I just set it to '1' since it was my second
calendar.
2. In install.php, comment out line 265 so that it says //create_tables();
3. In index.php, line 31, set $calendar_name to the same value as in step 1.
4. Open install.php in the browser; run the install like you normally would.
Voila! The new calendar should be all set.
Can I make some suggestions that may improve the code (I would make them
myself but still consider myself to be a beginner in PHP):
1. This is minor, but maybe allowing $calendar_name to be set in the config
file creation form, and then store the name of the calendar in config.php.
This will make the next suggestion easier to implement, but isn't
necessarily critical.
2. Include some test code before executing the create_tables method that
verify the existence of the tables and the record matching $calendar_name.
If the tables don't exist, create them; if the records don't exist for that
calendar, add them.
I hope this all makes sense.
Jean Calixte
jl...@gm...
|