PDA

View Full Version : Adding row to setting table, but not loaded on $vbulletin


xrvel
08-18-2012, 03:10 PM
I am trying to do manual data insertion to setting table using manual query ($vbulletin->db->query_write() ), for example the varname is "something", the row is inserted correctly (confirmed from phpmyadmin that that row is inserted).

But when i run this code on some hooks
var_dump($vbulletion->options);
That varname isn't there.

How to load "manually inserted" option into $vbulletion->options ? :confused:

Update: nvm, after i check adminfunctions_options.php, it seems i have to call build_options() everytime i write / update the setting row. :D