vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Navbar Link only displays for Admin Usergroup (6) (https://vborg.vbsupport.ru/showthread.php?t=123686)

jgommel 08-11-2006 05:12 PM

Navbar Link only displays for Admin Usergroup (6)
 
I created a new dropdown link in the NAVBAR that displays online tools (see code below). These tools should be available for anyone thats logged into my site. currently their only available for users that belong to the Admin Usergroup (6). When your not logged in, the link should not display in the Navbar (which works fine).

If I remove theis line from the code: <if condition="$show['admincplink']"> along with the trailing </if>. Users that are not logged into the site will see the drop-down menu in teh Navbar, but it does not display the links within.

If a registerd user logs in, the links with work fine. I guess what I need to know is how do I remove the link from the Navbar when a user is not logged in, but when a user logs in (regardless of their Usergroup permissions), the user can navigate the drop-down menu.

I already know how to restrict items in a drop-down menu to specific Usergroups. Use this code: <if condition="in_array($bbuserinfo['usergroupid'], array(6, 9))">

<!-- NEOSMUT TOOLS -->
<if condition="$show['admincplink']">
<if condition="$show['popups']">
<!-- start vBMenu control element -->
<td width="67" height="29" id="NeoTools"><a href="$vbphrase[neotools]#"><img id="nav_menu" src="$stylevar[imgdir_misc]/nav_tools.gif" width="67" height="29" border="0" alt="" /></a><script type="text/javascript">
vbmenu_register("NeoTools", 1);</script></td>
<!-- end vBMenu control element -->
</if>
</if>


All times are GMT. The time now is 08:02 AM.

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.01147 seconds
  • Memory Usage 1,707KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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