Welcome to Geeklog, Anonymous Tuesday, December 10 2024 @ 10:45 pm EST
Geeklog Forums
Geeklog 1.5 Upgrade going back to config files
Hi, I have been pounding my head against this for weeks now. I have tried
to do the install / upgrade per the guidelines and then switch back to the config.php
Any suggestions, other than crawl through the CVS and manually apply the updates a bit of code at a time avoiding the DB queries for the new GUI conf
to do the install / upgrade per the guidelines and then switch back to the config.php
Any suggestions, other than crawl through the CVS and manually apply the updates a bit of code at a time avoiding the DB queries for the new GUI conf
13
11
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
I don't understand what you are attempting to do. Are you trying to recreate the config.php files of old in 1.5? That should just require creating a proper config.php and replacing the call to config::get_instance() with a require_once on the config.php file. You'll have to do this on each bundled plugin as well.
14
9
Quote
Status: offline
Remdotc
Forum User
Chatty
Registered: 06/12/02
Posts: 55
The problem is, I need different themes per topic, and or different domains via a shared db. This is all possible with a few minor hacks up till the configuration updated to be stored in the DB
for backwards compatibility wouldn't it have been easier to just add a line something like
if file exists ();
else do this,
Just a thought.
for backwards compatibility wouldn't it have been easier to just add a line something like
if file exists ();
else do this,
Just a thought.
14
12
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
To modify the database settings, you need to edit db-config.php
To modify $_CONF['path'] based on environmental or URL issues, you need to edit siteconfig.php or possibly maintain multiple siteconfig.php files.
To modify other path settings based on external info you need to modify _post_configuration() in system/classes/config.class.php
You can also make these mods in lib-custom.php sometimes. You might try making the mods there first and if you run into problems then moving out to the other files listed above.
To modify $_CONF['path'] based on environmental or URL issues, you need to edit siteconfig.php or possibly maintain multiple siteconfig.php files.
To modify other path settings based on external info you need to modify _post_configuration() in system/classes/config.class.php
You can also make these mods in lib-custom.php sometimes. You might try making the mods there first and if you run into problems then moving out to the other files listed above.
8
15
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
FWIW, the config class in CVS now allows you to override config settings from siteconfig.php. This was mainly done for the 'rootdebug' option, but should also work for other settings.
bye, Dirk
bye, Dirk
7
15
Quote
All times are EST. The time is now 10:45 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content