View Full Version : Content NOT viewable to usergroups!
so i have various adverts and things i want to wrap with code that will make it so that if my members are in a certain V.I.P membership they won't see the content within the wrapped code?
HMBeaty
09-11-2009, 10:16 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=215032" target="_blank">vBulletin Template Conditionals</a>
If Usergroup Is or Is Not X
--------------------------
If the user is a member of the x usergroup then show the code.
HTML Code:
<if condition="$post['usergroupid'] == 6"></if>
And then you can use the ! to tell it to not show it to the x usergroup but show it to everyone else.
HTML Code:
<if condition="$post['usergroupid'] != 6"></if>
this is perfect however
if they have a secondary usergroup it overides it
how do i just set it upon primary only!?
Lynne
09-14-2009, 02:34 PM
usergroupid is the primary group
membergroupids is the field that contains all the additional/secondary usergroups
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.