Posted on: 07/11/08 09:20pm
By: Remdotc
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
Re: Geeklog 1.5 Upgrade going back to config files
Posted on: 07/11/08 11:49pm
By: jmucchiello
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.
Re: Geeklog 1.5 Upgrade going back to config files
Posted on: 07/14/08 09:23am
By: Remdotc
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.
Re: Geeklog 1.5 Upgrade going back to config files
Posted on: 07/14/08 09:55am
By: jmucchiello
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.
Re: Geeklog 1.5 Upgrade going back to config files
Posted on: 07/14/08 03:51pm
By: Dirk
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
Re: Geeklog 1.5 Upgrade going back to config files
Posted on: 07/14/08 05:43pm
By: 1000ideen
Anyway a different theme per topic can be done with a php switch in the header.thtml
Different domains via a shared db, I don`t know if that is possible anymore.