The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
In my header I have something I want displayed for everyone except one usergroup. What would be the code needed within the header template to wrap that stuff in a "if not this userid then display" sort of statement?
|
#2
|
||||
|
||||
![]() Quote:
Change x to the group you dont want it to see ![]() |
#3
|
|||
|
|||
![]()
Thank you, I assumed that was the syntax; but wasn't positive.
my guess would have been: <if condition="$bbuserinfo['usergroupid'] != X"> Show Stuff here r</if> But I like the assurance ![]() btw - you don't need the single quotes around the usergroupid? also is this proper?: <if condition="($bbuserinfo[usergroupid] != X) or ($bbuserinfo[usergroupid] != Y)"> Show Stuff here r</if>"> Show Stuff here r</if> |
#4
|
||||
|
||||
![]()
No, you NEVER use single quotes inside conditionals
|
#5
|
|||
|
|||
![]()
Wow, you got me before my edit. Thanks for the reply again
![]() |
#6
|
|||
|
|||
![]()
I forgot I will be using this as a secondary usergroup. membergroupids is the variable, correct? But in an array. Is it possible to use a single conditional to do this? An "if not member of X"?
|
#7
|
||||
|
||||
![]()
youll need to use !is_member_of($bbuserinfo, X) instead of what i have above
|
#8
|
||||
|
||||
![]() Quote:
![]() http://www.vbulletin.com/docs/html/m...e_conditionals |
#9
|
|||
|
|||
![]()
I attempted to use this:
<if condition="!is_member_of($bbuserinfo[membergroupids], 12)"> However, whatever is in-between the <if></if> still shows for members in the secondary group id of 12. I then took away the other secondary usergroups that the member belonged to as a test, but it still shows. |
#10
|
||||
|
||||
![]() Quote:
!is_member_of($bbuserinfo, 12) Is what you are going to use. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|