vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Move Admin/Mod CP links to Header? (https://vborg.vbsupport.ru/showthread.php?t=154492)

Jubei 08-06-2007 06:34 PM

Move Admin/Mod CP links to Header?
 
Is it complicated to move the Admin/Mod CP links from the footer to the Header where UserCP, FAQ, Log out etc are?

Gray Matter 08-06-2007 07:12 PM

No, all it requires is a simple template edit.

Jubei 08-06-2007 07:17 PM

Elaborate please.

Gray Matter 08-06-2007 07:29 PM

In the template navbar, find:

Code:

        <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
Right below it, add:

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>


Jubei 08-06-2007 07:38 PM

Cool, thanks.

How can I change it so they read 'AdminCP' & 'ModCP' instead of just Admin & Mod?

Gray Matter 08-06-2007 07:41 PM

Edit the phrase admin and change the text to "AdminCP" instead of just "Admin." Do the same for mod. :)

Jubei 08-06-2007 07:44 PM

I tried that and it doesn't work. The Admin & Mod links just vanish unless you reset the phrase name.

Gray Matter 08-06-2007 07:48 PM

I think you edited the code I gave you. What I meant was that you go into the Phrase Manager and edit it.

Do this:

Admin CP -> Languages & Phrases -> Search in Phrases -> Type "admin" and check "Phrase Variable Name Only," then hit "Find"

The phrase you're looking for will be under "GLOBAL Phrases Containing 'admin'." (The red text will just show the word Admin) Click on the "Edit" button to the right of this phrase, and change the text to "AdminCP." Repeat this process for mod. :)

Jubei 08-06-2007 07:53 PM

Ah yes, that's solved it. I'm still very much a vBulletin newbie you see. ^^;

Thank you.


All times are GMT. The time now is 04:59 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.02110 seconds
  • Memory Usage 1,721KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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