Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 08:51 am EDT

Geeklog Forums

Geeklog 1.5 Upgrade going back to config files


Status: offline

Remdotc

Forum User
Chatty
Registered: 06/12/02
Posts: 55
blah
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
 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.
 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.

 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.
 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
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Anyway a different theme per topic can be done with a php switch in the header.thtml Exclamation

Different domains via a shared db, I don`t know if that is possible anymore.
 Quote

All times are EDT. The time is now 08:51 am.

  • 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