PDA

View Full Version : New if condition link in the navbar


Bat21
12-24-2008, 04:50 PM
Not sure if I have posted this in the right place but here goes.

I want to add a link in the navbar that only shows to one particular user group.

I assume this is done by using an 'if' statement before the link:-

<if condition="blah_blah">html link</if>

What do I need to replace the blah_blah bit with?

Thanks

Fungsten
12-24-2008, 06:59 PM
Same here.

Kirk Y
12-24-2008, 07:01 PM
<if condition="is_member_of($bbuserinfo,x,y,z)">Members of X,Y, or Z will see this.</if>

http://members.vbulletin.com/api/vBulletin/_includes---functions.php.html#functionis_member_of

Bat21
12-24-2008, 07:10 PM
<if condition="is_member_of($bbuserinfo,x,y,z)">Members of X,Y, or Z will see this.</if>

http://members.vbulletin.com/api/vBulletin/_includes---functions.php.html#functionis_member_of

Thanks Kirk, that's what I was after :up:

I'll give it a try.