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)
-   -   Mini Mods - [Naxon] ACP And MCP Links On Navbar (https://vborg.vbsupport.ru/showthread.php?t=142974)

Naxon 03-23-2007 10:00 PM

[Naxon] ACP And MCP Links On Navbar
 
This modifiction will add a link to the Admin Control Panel and to the Moderator Control Panel on the navbar (Just for users that have premissions).



Installation:
  1. Open the navbar Template.
  2. Find:
    Code:

    <!-- nav buttons bar -->
    <div align="center">
     <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
     <tr align="center">

  3. Add below:
    Code:

    <!-- AdminCP And ModCP Links On NavBar By Naxon -->
    <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>
    <!-- /AdminCP And ModCP Links On Navbar By Naxon -->

  4. Save.
Replace "http://domain.com/admincp/" with your AdminCP Link, and "http://domain.com/modcp/" with your ModCP Link.

Enjoy :)

Naxon 03-24-2007 02:53 AM

~ Reserved ~

MoB Dudditz MD 03-24-2007 03:27 AM

Is there any difference from using:
Code:

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

I'm still trying to learn all the conditions.
For some reason, it will not show in the navbar on my vBadvanced.

HMBeaty 03-24-2007 03:29 AM

Quote:

Originally Posted by MoB Dudditz MD (Post 1210796)
Is there any difference from using:
Code:

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

I'm still trying to learn all the conditions.
For some reason, it will not show in the navbar on my vBadvanced.

No, but you might want to use
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>

;)

Naxon 03-24-2007 09:05 AM

Thank's guys :)
* Updated

zariyan 03-24-2007 03:39 PM

actually the code you specify will not show it right in nav bar


Code:

<!-- AdminCP And ModCP Links On NavBar By Naxon -->
<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>
<!-- /AdminCP And ModCP Links On Navbar By Naxon -->
<!-- nav buttons bar -->

Isnt correct

It needs to be

Find:
Code:

<!-- nav buttons bar -->
<div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">

add BELOW

Code:

<!-- AdminCP And ModCP Links On NavBar By Naxon -->
<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>
<!-- /AdminCP And ModCP Links On Navbar By Naxon -->

Just trying to help

Naxon 03-24-2007 05:12 PM

But I tried it on my board and it's working..

zariyan 03-25-2007 06:25 PM

hmm thats odd, because when i put code in you gave it tried adding it in another column to the right of the Navbar, but nionetheless, its a good template edit. good job

Twilkey 03-25-2007 09:53 PM

I did this on my board awhile ago. Nothing special, I just got tired of scrolling to the bottom to get to the admincp.

Terminatoronly 03-26-2007 05:36 AM

thanks alot mate :)

Atakan KOC 03-26-2007 06:22 AM

Thanks....


All times are GMT. The time now is 10:06 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.01116 seconds
  • Memory Usage 1,738KB
  • 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
  • (8)bbcode_code_printable
  • (1)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