The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New product $vbulletin->options problem
I added a product and I'm trying to add a conditional to a plugin. My code runs fine without the conditional, but never runs (regardless of the settings chosen) with the conditional.
Here's the product options: Code:
<options> <settinggroup name="jab_static_thumbnails" displayorder="1"> <setting varname="static_thumbnails_enabled" displayorder="60"> <datatype>boolean</datatype> <optioncode>yesno</optioncode> <defaultvalue>1</defaultvalue> </setting> </settinggroup> </options> Code:
if ($vbulletin->options['static_thumbnails_enabled']) { //MY CODE } Thanks, James |
#2
|
||||
|
||||
Try $this->registry->options['static_thumbnails_enabled']
|
#3
|
|||
|
|||
That works for me now.
Thank you very much Lynne. |
#4
|
|||
|
|||
And i strongly recommend to prefix your settings.
Not: 'static_thumbnails_enabled' But: 'jab_static_thumbnails_enabled' This will avoid any future problems like an identical named setting added to default vB in a later version. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|