View Full Version : show special nav bar to certin groups
djjeffa
11-20-2004, 07:51 PM
I have special templates that i want to ad to the nave bar but i only want certin groups to see them. can this be done? I have no problem adding a second nav bar to the site.
Zachery
11-20-2004, 08:23 PM
<if condition="$bbuserinfo[usergroupid] == X"> $templatevar </if>
djjeffa
11-20-2004, 09:06 PM
<if condition="$bbuserinfo[usergroupid] == X"> $templatevar </if>
ok evven though im starting to get the hang of hacking please give me alittle more info would the x be where the group id# goes and would i add a , after each group also the template is radio.php so where would i put that or how would i set it up I want a link to only show for certin groups and when they click it would take them to www.djjeffa.com/vb/radio.php or is there a way i could just grant acces to this page for certin groups so ill just add it to the nav bar and everone will see but only some could acces?
djjeffa
11-25-2004, 03:43 PM
www.djjeffa.com/vb/radio.php is there a way i could just grant acces to this page for certin groups so ill just add it to the nav bar and everone will see but only some could acces?
bump?
Andreas
11-25-2004, 03:53 PM
X must be replace with the usergroupid.
If you want to check for several groups
<if condition="is_member_of($bbuserinfo, x) or is_member_of($bbuserinfo, y) or is_member_of($bbuserinfo, z)">
your stuff here
</if>
You can also specify which groups are allowed to access radio.php (put this right after require global):
if (!is_member_of($bbuserinfo, x) and !is_member_of($bbuserinfo, y) and !is_member_of($bbuserinfo, z)) {
print_no_permission();
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.