Quarterbore
09-13-2008, 09:24 PM
I have an issue that impacts vBulletin 3.7.3 which does not seem to impact 3.6.11 that has me stumped.
Specifically, I want to use a setting in an add-on product in a vBulletin template hook. The template hook I am working with is the postbit and postbit legacy and here are the specific details:
Plugin off hook: postbit_display_start
When I add the following code in 3.7.3:
echo 'System Testing in Process!<br />';
echo '$vbulletin->options[bbactive] = ' . $vbulletin->options[bbactive] . ' <br />';
exit();
I get the following:
System Testing in Process!
$vbulletin->options[bbactive] =
Now, I think that is the proper way to get a variable and it works in 3.6.11 as in that version I get the obviously correct anwser of:
System Testing in Process!
$vbulletin->options[bbactive] = 1
Is there something in vBulletin 3.7 that makes it necessary to globalize settings that they are available for the templates?
Obviously, my variable I want to use is a configuration option for "Show this in PostBit and PostBit Legacy" but literally no variables seem to be working?
It worked in a previous version of vBulletin 3.7 (I think I had it in 3.7.1 and it worked) but not in the current version and I am stumped!
Specifically, I want to use a setting in an add-on product in a vBulletin template hook. The template hook I am working with is the postbit and postbit legacy and here are the specific details:
Plugin off hook: postbit_display_start
When I add the following code in 3.7.3:
echo 'System Testing in Process!<br />';
echo '$vbulletin->options[bbactive] = ' . $vbulletin->options[bbactive] . ' <br />';
exit();
I get the following:
System Testing in Process!
$vbulletin->options[bbactive] =
Now, I think that is the proper way to get a variable and it works in 3.6.11 as in that version I get the obviously correct anwser of:
System Testing in Process!
$vbulletin->options[bbactive] = 1
Is there something in vBulletin 3.7 that makes it necessary to globalize settings that they are available for the templates?
Obviously, my variable I want to use is a configuration option for "Show this in PostBit and PostBit Legacy" but literally no variables seem to be working?
It worked in a previous version of vBulletin 3.7 (I think I had it in 3.7.1 and it worked) but not in the current version and I am stumped!