| View previous topic :: View next topic |
| Author |
Message |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Fri Aug 15, 2008 5:09 pm Post subject: link 2 calendars to one database |
|
|
I have 2 calendars with their own licence keys.
Is it possible to link these 2 calendars from different domain names to one database?
Thank you for your help
Andrew |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Fri Aug 15, 2008 6:14 pm Post subject: |
|
|
Hi Andrew,
Just so I'm absolutely clear, you want 2 different installations of Thyme to see the same events? |
|
| Back to top |
|
 |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Fri Aug 15, 2008 6:36 pm Post subject: reply |
|
|
yes but I have 2 calendars on different domain names.
When I remote the db on the 1 to the other I get the wrong licence key issue
I can only see having to put both cal on the same server and hotlinking to the cal direct
Andrew |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Fri Aug 15, 2008 6:43 pm Post subject: |
|
|
In this case you will have to add the license key to the other's configuration file. Edit include/config.php in Thyme's folder, remove the ?> at the bottom of the file and add this:
| Code: |
| define("_CAL_LICENSE_KEY_", "YOUR LICENSE KEY HERE"); |
This will override the one defined in the database. |
|
| Back to top |
|
 |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Fri Aug 15, 2008 7:47 pm Post subject: reply |
|
|
Still have the licence issue at site2
Recap
the db is at site1
at site2 in the config file I removed ?> and added
define("_CAL_LICENSE_KEY_", "EC0CCF238571106830B61F4E3F267783");
the key is from site1 database
Is that what you instructed
Andrew |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Fri Aug 15, 2008 8:01 pm Post subject: |
|
|
Hi,
All is well except that the key should be for site2, not for site1. |
|
| Back to top |
|
 |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Fri Aug 15, 2008 8:15 pm Post subject: reply |
|
|
changed the key to site2 key and still have licence failure
so in site2 I have the site2 licence key in includes/config.php in place of ?>
define("_CAL_LICENSE_KEY_", "A9118B06C9C45164CAFD7D23CDBC8ACB");
Andrew |
|
| Back to top |
|
 |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Fri Aug 15, 2008 8:36 pm Post subject: reply |
|
|
if it is any help
in site2 config.php is where I am pointing to site1 db
define("_CAL_DBHOST_", "81.17.252.59");
define("_CAL_LICENSE_KEY_", "A9118B06C9C45164CAFD7D23CDBC8ACB"); |
|
| Back to top |
|
 |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Fri Aug 15, 2008 11:36 pm Post subject: reply |
|
|
Tried
Removing the key from the db on site1
then added site1 key to site1 config.php
define("_CAL_LICENSE_KEY_", "EC0CCF238571106830B61F4E3F267783");
and added site2 key to site2 config.php
define("_CAL_LICENSE_KEY_", "A9118B06C9C45164CAFD7D23CDBC8ACB");
now both cal on site1 and site2 return the site error
Thyme's license has expired. You may purchase Thyme at http://www.extrosoft.com
Sorry for being a pain - I have another 3 sites that will need linking this way for a Hotel chain extranet
Andrew |
|
| Back to top |
|
 |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Sat Aug 16, 2008 9:32 am Post subject: reply |
|
|
Hi Ian
It must have been a cache problem
The 2 sites are now linking to one db without the licence errors
Thank you Ian for your help
I just have one more warning with attachements url
On site1 no Attachments Warning when "Allow file attachments:"
On site2 I get the warning
Warning: Attachments directory /home/url/site1/public_html/Events/attachments does not exist or is not writable.
The folder "attachments" exists on site1 and chmod 777
Any suggestions
Andrew |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5279
|
Posted: Sat Aug 16, 2008 6:27 pm Post subject: |
|
|
Hi,
Ahh.. yes. The attachments folder must be overridden by the config file as well. On site 2, add this to include/config.php after the line containing define("_CAL_BASE_PATH_","..."):
define("_CAL_ATTACHMENTS_PATH_", _CAL_BASE_PATH_."attachments"); |
|
| Back to top |
|
 |
Andyy
Joined: 24 Jul 2007 Posts: 27 Location: Huddersfield UK
|
Posted: Sat Aug 16, 2008 6:40 pm Post subject: reply |
|
|
Brilliant Ian it's working great
I will send you a link to the project when it's completed.
Thank you
Andrew |
|
| Back to top |
|
 |
|