JamesAB
01-24-2009, 04:05 AM
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:
<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>
Here's what I have in the attachdata_postsave hook:
if ($vbulletin->options['static_thumbnails_enabled'])
{
//MY CODE
}
Any ideas why $vbulletin->options['static_thumbnails_enabled'] isn't being set, so I can use it here?
Thanks,
James
Here's the product options:
<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>
Here's what I have in the attachdata_postsave hook:
if ($vbulletin->options['static_thumbnails_enabled'])
{
//MY CODE
}
Any ideas why $vbulletin->options['static_thumbnails_enabled'] isn't being set, so I can use it here?
Thanks,
James