The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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)">
|
#3
|
|||
|
|||
So I would have to make it a global plugin right?
|
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
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).
|
#6
|
|||
|
|||
How can I go about that? Cause I don't want to add any extra queries, I just need this to run on my staff application area.
|
#7
|
||||
|
||||
Quote:
PHP Code:
HTML Code:
<if condition="$userarray == true"> do something </if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|