vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Forum Home Enhancements - Adding "AdminCP" on Navbar (https://vborg.vbsupport.ru/showthread.php?t=151016)

G0F0RBR0KE 06-29-2007 10:00 PM

Adding "AdminCP" on Navbar
 
/*==========================*\
||Created by: EvilAkuma:
||Navbar: Adding "AdminCP"
\*==========================*/

WARNING

If you do not wish for members to click on it, I advice you not to add it. If you have a high patch password protected (like me) feel free to add this.

This little modification is so you don't have to scroll all the way at the bottom of the page just to click on "Admin.

Go to ACP>Style & Template> Style Manager>Default Skin>Edit Template>Navigation / Breadcrumb Templates>Navbar

Find:
Code:

<if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>

Below Add

Code:

<if condition="$show['member']">
                        <td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a></td>
                </if>

To prevent users from clicking; Create a child skin for your-self and disable it for users clicking on it.

Luky 06-30-2007 12:18 PM

Errrr, why didnt you just edit your <if> tags to only allow admin to see?

G0F0RBR0KE 06-30-2007 12:53 PM

I did, but it wouldn't show up for some odd reason >_>

I've been testing this all day on my test vBulletin till I gave up and just decided to use it differently ;)

tokenyank 06-30-2007 01:10 PM

Yeah... Wouldn't it be better to do:

Code:

<if condition="$show['admincplink']"><td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> </td></if>
        <if condition="$show['modcplink']"><td class="vbmenu_control"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a></td></if>


tokenyank 06-30-2007 01:31 PM

I've just done it and it works, though there loads admin-in-navbar mods already...

Your's is the same as this or this

And
this one does it in drop down

G0F0RBR0KE 06-30-2007 06:59 PM

When I tried it, it wasn't showing up at all...Maybe, I type something wrong and didn't pay attention :D

rjmjr69 06-30-2007 08:30 PM

Yes has been done many times. But always good to see new coders giving their hard work for us to use. Keep up your good work.

G0F0RBR0KE 06-30-2007 08:38 PM

Thanks for the feedback. :D


All times are GMT. The time now is 01:10 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.01072 seconds
  • Memory Usage 1,725KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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