The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Quick question on array conditional
I use this for showing content to specific usergroups:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(6))"> Code:
<if condition="not_in_array($bbuserinfo['usergroupid'], array(6))"> (I'd try it right now, but my testbed is currently installing Debian because Fedora hates me) TIA. |
#2
|
||||
|
||||
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(6))"> Code:
<if condition="$bbuserinfo['usergroupid'] == 6"> Code:
<if condition="$bbuserinfo['usergroupid'] != 6"> Code:
<if condition="is_member_of($bbuserinfo, X)"> Code:
<if condition="!is_member_of($bbuserinfo, X)"> |
#3
|
|||
|
|||
How would I add additional usergroups to the simplified version? The reason that I use the array statement is because most of the time I'm includng admins, mods and donating members in the conditional.
What I'm looking to do is strip out adsense for everyone but regular guys. Which I could do with an if condition for just the registered users group, but I want to include guests/waiting for confirmation folks as well. So either way I need to include a handful of groups. Much appreciated man, thanks. |
#4
|
||||
|
||||
To check multiple usergroups:
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"> Code:
<if condition="!is_member_of($bbuserinfo, X, Y, Z)"> |
#5
|
|||
|
|||
Here's the simplified version.
PHP Code:
|
#6
|
|||
|
|||
Thank you very much guys.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|