MyBB Community Forums

Full Version: MyBB Settings Variables - No Value
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

I'm making a plugin and having a problem with variables that the plugin creates.

define('IN_MYBB', 1); 
require_once "../global.php";

echo $mybb->settings['fa_toemail'];

That should print out the value of the fa_toemail, which happens to be [email protected].

Looking into my database, it IS there. And the above works for any variable except for the ones created by the plugin. Any ideas?
you need to have your plugin use rebuild_settings(); after you insert or remove settings via the plugin.

simplest fix is to delete /inc/settings.php and let MyBB rebuild it for you
(2011-05-15, 08:02 PM)pavemen Wrote: [ -> ]you need to have your plugin use rebuild_settings(); after you insert or remove settings via the plugin.

The actual plugin file does have rebuild_settings();


Damn nevermind, simple error on my part. :p