vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   [Mini hack] Add Admin, Mod dropdown on Navbar (https://vborg.vbsupport.ru/showthread.php?t=94835)

KuRi 08-21-2005 10:00 PM

[Mini hack] Add Admin, Mod dropdown on Navbar
 
Original mod for 3.0.3 released on vbulletin Fans website [http://www.vbulletin.nl/showthread.php?t=2329] by Duncan99

Quote:

Originally Posted by duncan99
I am kinda lazy to scroll down the page to enter ACP, so I add those codes to Navbar. If you just like me, go for it.

I just tidied it up by putting it into a dropdown menu and updated the template mod to work with 3.5.0 RC2 allthough should work with all versions 3+

Update 1.0.2

Fixed no show for moderators

Update 1.0.3

Fixed links not working anwhere other than forumhome

turksengel 08-22-2005 12:14 PM

any screen ?

KuRi 08-22-2005 12:19 PM

screenshot added

Boofo 08-22-2005 12:35 PM

I would wrap it so the regular members don't even see the Staff drop down. :)

KuRi 08-22-2005 12:40 PM

Regular members will not see the drop menu, only members with control panel priviliges will see the menu

Boofo 08-22-2005 12:45 PM

You're right. I didn't look at the top piece of code very closely. ;)

Fj?rgyn 08-25-2005 09:28 PM

Hello,

I tried this, but it don't works, no Mod see the link, what's wrong?

<if condition="$show['modcplink'] OR
$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">

KuRi 08-25-2005 10:15 PM

You should not need the
Code:

OR $bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
as
Code:

<if condition="$show['modcplink']">
will cause the link ony to show if a member/mod has modcp priviliges

does the modcp link in the footer show for your mods?
I ask this because that uses the same conditional to show for mods

Fj?rgyn 08-25-2005 10:44 PM

Yes, that's the code from the footer with id 5 and 7 and it works, without this it don't works :ermm:

KuRi 08-25-2005 10:59 PM

Have you tried

Code:

<if condition="$bbuserinfo['usergroupid'] == '5' OR $bbuserinfo['usergroupid'] == '7'">
Cus that should then only show for mods and super mods????


All times are GMT. The time now is 02:07 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.01023 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete