| Author |
Post |
|
|
#1 Sun Mar 18, 2007 2:06 am
|
|
Moderator
Registered: Oct 2005
Posts: 425
Location: canada
|
I want to be able to add new $conf variables to config.php, add a new section to the general configuration section in the ACP and allow the user to update from there, instead of creating a module/more MySQL queries. I can't seem to figure out how to add it though, I tried adding a couple things in admin_config.php but I just keep getting undefined index errors. I added the variables manually to config.php for now and it i can grab them fine, I just can't seem to figure out how to get them in the ACP to manage the data. Thanks.
|
|
|
#2 Sun Mar 18, 2007 11:30 am
|
|
Developer
Registered: Apr 2004
Posts: 2180
Location: Belgium
|
Adding config variables can be tricky, you need to set it in config.php, admin_config.php (there are a few arrays such as $optional_strings and $onoff_settings where you may need to add the config key, also in the $sections array) and in admin_English.php: $lang['ConfigBoard-config_setting'].
|
|
|
#3 Sun Mar 18, 2007 3:23 pm
|
|
Moderator
Registered: Oct 2005
Posts: 425
Location: canada
|
Ah, admin_English.php was one spot I didn't check. I'll give it another go with another modification, thanks.
|