View Full Version : Problem With Usergroup and <if>
mcyates
08-13-2005, 08:00 PM
I have a usergroup where people don't see adverts and this is called the "Premium Members" but i've made one of the premium members a super-moderator and i've put the super moderator as his main usergroup and the premium member as his second. But he can see the adverts now. How can I sort this out as if i make the premium membership his primary usergroup and his super mod the additional will all his super mod powers still work?
Andreas
08-13-2005, 08:25 PM
If Premium Members is allowed to have Membergroups - yes.
But I'd suggest to change your condition from
<if contion="$bbuserinfo[usergroupid] == X">
to
<if condition="is_member_of($bbuserinfo, X)">
Then it doesn't matter if X is a primary or secondary Usergroup, or if the the Primary does allow membergroups or not.
mcyates
08-13-2005, 08:33 PM
whatever number i put in place of x sees the ads, but i will need to put 12 usergroups into that conditional. How do i go about doing that?
Andreas
08-13-2005, 08:53 PM
Depends on which Version of vBulletin you use.
If you use vBulletin 3.5 you can put
<if condition="is_member_of($bbuserinfo, a,b,c)">
In vBulletin 3.0.X you will need a Hack, or
<if condition="is_member_of($bbuserinfo, a) OR is_member_of($bbuserinfo, b) OR is_member_of($bbuserinfo, c)">
mcyates
08-15-2005, 12:13 PM
thank you
Hmm, well i'm using 3.0.7. The above one works well when the premium member is just a "premium member" but when i make the premium member a member of the super moderators he cas see the adverts again.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.