UseBB Community

The official board for UseBB help and discussion

UseBB Community » 1.0 Discussion » adding config variables

adding config variables

Page: 1

Author Post
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.
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'].
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
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.

Page: 1

UseBB Community » 1.0 Discussion » adding config variables

UseBB Community is powered by UseBB 1 Forum Software