Log in

View Full Version : Displaying a link to specific usergroups only...


BeerLuver
07-15-2008, 01:43 PM
Hi ...

I am looking to place a link on my forum home to the News forum section I created. I hid that section so it isn't normally displayed on the forum home and allows any threads to be shown/viewable through the vBadvanced CMS news module, but I want to add a link to it that only Admins, Supermods, and Mods can see the link. How or what code would I use to do this?

I tried copying pre-existing code; i.e. code for the links to admin panel, mod panel, etc. and altering it to work with a link to the hidden news section, but it didn't work. I'm guessing I missed something or didn't alter something properly. Heh I'm not a code-savvy designer; more of a graphical design specifics aspects really. So any suggestions on how I should do this?

Thanks in advance for any help :)


Bob

Opserty
07-15-2008, 02:17 PM
<if condition="is_member_of($bbuserinfo, X, Y, Z)">
LINK
</if>


X, Y, Z - being the usergroupids

BeerLuver
07-15-2008, 11:42 PM
Excellent... thanks bigtime Opserty :). Much appreciated.