The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
If you only want to place one link for the moderators place the code of the link within the right condition,
HTML Code:
<vb:if condition="can_moderate()"><a href="http://www.modlink.com">Show this link to all moderators</a></vb:if> |
#4
|
||||
|
||||
![]() Quote:
I would use is_member_of instead as can_moderate() will add an extra query. |
#5
|
|||
|
|||
![]()
OK, thanks, will keep that in mind
|
#6
|
||||
|
||||
![]()
Most of the time, it doesn't really matter. Unless you are a query-hater like I am.
![]() |
#7
|
|||
|
|||
![]() Quote:
I have a 2M+ board so one query less is not a bad idea |
#8
|
||||
|
||||
![]()
I'm from the old vb.org where queries were a big no-no. They can add up too easily.
|
#9
|
|||
|
|||
![]() |
#10
|
||||
|
||||
![]()
That only adds the buttons, no drop-down menus below the buttons.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|