View Full Version : if membergroup question
G_Gekko
10-16-2006, 07:36 AM
Is there any way I can use an if member group function on a none VB pages so that the member group that a forum member belongs to can effect what is displayed on none VB pages?
if yes, how?
RS_Jelle
10-16-2006, 02:47 PM
Have a look at this tutorial (https://vborg.vbsupport.ru/showthread.php?t=98009) to create your own vBulletin powered pages (with usergroups integration, etc.) ;)
G_Gekko
10-16-2006, 07:11 PM
Thanks. Seems to be what i need. Just have to look into it a bit more to understand it..
Sarcoth
12-18-2006, 04:07 PM
Wow, I'm glad I found this. It is exactly what I have been looking for.
<if condition="is_member_of($bbuserinfo, 6)">
If in group 6, show this...
<else />
...or else, show this.
</if>
What's the best way to do multiple groups? Would this work?
<if condition="(is_member_of($bbuserinfo, 6)) OR (is_member_of($bbuserinfo, 7))">
If in group 6 or 7, show this...
<else />
...or else, show this.
</if>
I tested that out and it appears to work and no errors. Just wondering if there is a better way.
RS_Jelle
12-19-2006, 09:04 PM
You can use is_member_of($bbuserinfo, 6, 7) then. Since vB 3.5 (http://www.vbulletin.com/forum/showthread.php?t=206738) you can check multiple usergroups like that :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.