Log in

View Full Version : Link In NavBar Staff Viewable Only


Jacoba
03-08-2011, 10:27 PM
Id like to set a link on my navbar to only be viewable by staff.
I have many ideas for this but just not sure how to set the coding in my templates.

if any ideas please let me know thankks.

your24hourstore
03-08-2011, 11:31 PM
use a mod that builds links they will allow you to set permission for who uses can see it
heres one (https://vborg.vbsupport.ru/showthread.php?t=232224)

tonyvh2
03-09-2011, 09:28 AM
If you only want to place one link for the moderators place the code of the link within the right condition,


<vb:if condition="can_moderate()"><a href="http://www.modlink.com">Show this link to all moderators</a></vb:if>

Boofo
03-09-2011, 09:53 AM
If you only want to place one link for the moderators place the code of the link within the right condition,

<vb:if condition="can_moderate()"><a href="http://www.modlink.com">Show this link to all moderators</a></vb:if>


I would use is_member_of instead as can_moderate() will add an extra query.

tonyvh2
03-09-2011, 09:56 AM
I would use is_member_of instead as can_moderate() will add an extra query.

OK, thanks, will keep that in mind

Boofo
03-09-2011, 10:46 AM
OK, thanks, will keep that in mind

Most of the time, it doesn't really matter. Unless you are a query-hater like I am. ;)

tonyvh2
03-09-2011, 11:05 AM
Most of the time, it doesn't really matter. Unless you are a query-hater like I am. ;)


I have a 2M+ board so one query less is not a bad idea

Boofo
03-09-2011, 11:23 AM
I'm from the old vb.org where queries were a big no-no. They can add up too easily.

Redneck-Melly
03-09-2011, 11:27 AM
I use this https://vborg.vbsupport.ru/showthread.php?t=228507&highlight=tabs

Boofo
03-09-2011, 11:37 AM
That only adds the buttons, no drop-down menus below the buttons.

your24hourstore
03-09-2011, 12:27 PM
lol you may as well tell him were to put it in the template and how to get to navbar template LMAO.