![]() |
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> Code:
if ($vbulletin->options['static_thumbnails_enabled']) Thanks, James |
Try $this->registry->options['static_thumbnails_enabled']
|
That works for me now.:)
Thank you very much Lynne. |
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. |
All times are GMT. The time now is 10:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|