vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Link In NavBar Staff Viewable Only (https://vborg.vbsupport.ru/showthread.php?t=260064)

Jacoba 03-08-2011 10:27 PM

Link In NavBar Staff Viewable Only
 
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

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,


HTML Code:

<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

Quote:

Originally Posted by tonyvh2 (Post 2171288)
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>


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

tonyvh2 03-09-2011 09:56 AM

Quote:

Originally Posted by Boofo (Post 2171295)
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

Quote:

Originally Posted by tonyvh2 (Post 2171296)
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

Quote:

Originally Posted by Boofo (Post 2171310)
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/showthrea...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.


All times are GMT. The time now is 05:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01085 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete