![]() |
VBOptions in array
<if condition="in_array($bbuserinfo[userid], array($vbulletin->options['appsaccess']))">
When I go into my settings and type 498,3 then only user 498 will see the content, but user 3 won't. Why is this? |
I ran into the same thing on a mod I wrote a while ago. I had to do this (mine was for forumids, so change your condition appropriately).
In a plugin: PHP Code:
HTML Code:
<if condition=" in_array($threadinfo[forumid], $verifyforums)"> |
So I would have to make it a global plugin right?
|
It depends on where you need whatever it is you are doing. If you only need it on one page, then I wouldn't use a plugin that is used on every page.
|
As you are already using a plugin, you may want move all your logic into your plugin as well (and just check if a variable is true or false inside the template).
|
Quote:
|
Quote:
PHP Code:
HTML Code:
<if condition="$userarray == true"> |
All times are GMT. The time now is 07:01 AM. |
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:
|