Log in

View Full Version : Content NOT viewable to usergroups!


imk
09-11-2009, 10:14 PM
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>

imk
09-11-2009, 10:44 PM
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!?

imk
09-12-2009, 10:57 PM
so??????

imk
09-14-2009, 06:50 AM
anyhelp?

Lynne
09-14-2009, 02:34 PM
usergroupid is the primary group
membergroupids is the field that contains all the additional/secondary usergroups