PDA

View Full Version : Update vbulletin setting array !


K a M a L
08-22-2011, 05:18 PM
Welcome all ;
I'm creating an admin page to control setting of a plugin
I use a query
$db->query_write("UPDATE " . TABLE_PREFIX . "setting
SET value = ".$recusergroup."
WHERE varname ='reccreate2'");
the setting is updated in setting table but when I call $vbulletin->options['reccreate2']
I get the old value not the updated one
I think the setting is cached somewhere or stored at another table
my question is what to do to update the setting

kh99
08-22-2011, 05:32 PM
The values are cached in the datastore table. You can call the function build_options() (in includes/adminfunctions.php) after writing the change to your setting.

K a M a L
08-22-2011, 05:59 PM
Thank you very much