![]() |
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... |
Code:
<if condition="$bbuserinfo[usergroupid]==x">Stuff to show to this group</if> Repeat as many times as desired using different group numbers. |
Your a diamond, thank you.
|
You're welcome :)
Always happy to help. |
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> |
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> |
Thank you so much... i have now been able to take off all adverts for vip members :)
|
All times are GMT. The time now is 03:32 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:
|