The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show Only To Specified Group
What is the <if> statments if i want to edit content in a template that shows conent 1 to group 1 and content 2 to group 2...
So basically depending on their usergroup, they see diffrent content... Please advise... |
#2
|
|||
|
|||
Code:
<if condition="$bbuserinfo[usergroupid]==x">Stuff to show to this group</if> Repeat as many times as desired using different group numbers. |
#3
|
|||
|
|||
Your a diamond, thank you.
|
#4
|
|||
|
|||
You're welcome
Always happy to help. |
#5
|
|||
|
|||
How do i use more then one usergroup? ...as in:
Code:
<if condition="$bbuserinfo[usergroupid]==1,2,3,4">Stuff to show to this group</if> |
#6
|
|||
|
|||
ok,
show to multiple groups - X,Y,Z are the groups it is being shown to. Code:
<if condition="in_array($bbuserinfo[usergroupid], array(X,Y,Z))">Stuff</if> Code:
<if condition="$bbuserinfo[usergroupid]!=A">Stuff</if> Code:
<if condition="!in_array($bbuserinfo[usergroupid], array(J,K,L))">Stuff</if> |
#7
|
|||
|
|||
Thank you so much... i have now been able to take off all adverts for vip members
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|