PDA

View Full Version : Replacing $vboptions at runtime


Christos Teriakis
10-27-2011, 07:56 AM
Hello,

Does anyone knows a way to replace the content of a $vboption at runtime from a php file? eg something like:

$vbulletin->options['description'] = 'My new description';


Thank you
Chris

kh99
10-27-2011, 05:21 PM
You can do it from a plugin - if you find a hook location that comes before the value is used, like global_bootstrap_init_start, you can just use code like you have above for the plugin code.

Christos Teriakis
10-28-2011, 04:24 AM
You can do it from a plugin - if you find a hook location that comes before the value is used, like global_bootstrap_init_start, you can just use code like you have above for the plugin code.

Thank you mate, I'll try it.

Chris