|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
multiple calendars -- how to do this??
Hi!
If someoneone could PLEASE help me with this, I would really appreciate it. I want to add additional calendars (for different cities). Is there a place I can go to get instructions on how to do this? I searched this forum and read the help files but couldn't find anything. I figure I have to have a seperate calendar.php file for each version of the calendar and a seperate DB. Is this correct? Which files can be shared? What files need to be updated? Thanks in advance for your help!! ewok |
|
#2
|
|||
|
|||
|
RE: multiple calendars -- how to do this??
Sorry, I've been busy..
A few questions which will help refine my response.. 1) Will all calendars be accessed under one domain and {docroot} ( ie http://yourdomain.com/CITY/calendar or will they be distinct domains and {docroots}? ie http://CITY.yourdomain.com/calendar 2) Will they all share the same "look and feel" thru a common header & footer file? or will each city look different. |
|
#3
|
|||
|
|||
|
RE: multiple calendars -- how to do this??
These instructions "assume" all calendars will "live" under a single Internet Domain AND you are running V4 code. "CITY" gets substituted by the city name you would like to use.
1) Create a database & user for the calendars. Each calendar will need it's own set of EVENT and LOG tables. You can get away with using a common USER and CATEGORY table. 2) Create a directory to hold the "common code". {docroot}/calendars/private 3) Put the following files from the private dir of the release in {docroot}/calendars/private: ltw_classes.php, ltw*mgr.php, ltwdisplay*.php 4) For Each CITY, create a directory to hold the "city specific code" {docroot}/calendars/CITY {docroot}/calendars/CITY/private 5) In the {docroot}/calendars/CITY directory, put the files: calendar.php, ltw_install.php, ltw_style.css 6) In the {docroot}/calendars/CITY/private directory, put the files: ltw_config.php, ltw_header.php, ltw_footer.php 7) Edit each ltw_config.php file for the settings you want. a) Point the 'include_dir' to '../private' b) MAKE SURE YOU USE UNIQUE TABLE NAMES FOR THE FOLLOWING: 'db_table_calendar' 'db_table_log' c) Depending on how you display the calendars, you may also be able to put the stylesheet, header and footer files in the {docroot}/calendars/private directory and just point all the config files there. 8) run http://yourdoamin/calendars/CITY/ltw_install.php for each city. NOTE, you only need to create the admin account ONCE 9) DELETE ltw_install.php off the server for each city. |
|
#4
|
|||
|
|||
|
Changing Dir after install
I have installed the calendar in a directory and now several years later we are rearranging the website and want to change the directory for the calendar. How can you do this without reinstalling?
Thanks for the help |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > multiple calendars -- how to do this?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|