Adding value manually to the setting table for options
Can anyone tell me why when you manually add a setting into the setting table in mysql it will not take effect until you login to the admin control panel and click save changes ??
Why add it directly through your mysql manager. Just enable debug mode for 5minutes and you'll see some developer options appear magically when you go to the 'vbulletin options' section of your admincp
Well I have actually written code to insert IP addresses to the banip row of the settings table. But they do not take affect until I do save options in the control panel .. this is vb2 by the way
That's *probably* because vB3 caches its settings (in the datastore table). The cache is not updated until you save the setting through the admincp, which causes vB to rebuild the cache.
Try this:
PHP Code:
require_once('includes/functions_admin.php');
// ... your existing code ...
// .. after everything is done ...
build_options();