I want a user to be able to disable and enable a plugin that starts:
if ($vbulletin->options['mob_detect_enabled'] == 1)
So, I've created a profile field (for a setting) and I want to use this conditional
inside the plugin so that ordinary members can disable it (it uses the style_fetch hook).
I think I need to add
something like this at the top of the plugin, but in php ...
HTML Code:
<vb:if condition="$bbuserinfo['fieldXXX'] === 'off'">
Stuff
<vb:else />
Different Stuff
</vb:if>
Can anyone tell me how I write the same thing in PHP to get it to work?