vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Admin & Mod CP in header (https://vborg.vbsupport.ru/showthread.php?t=230421)

Cableguy69 12-16-2009 10:00 PM

Admin & Mod CP in header
 
1 Attachment(s)
https://vborg.vbsupport.ru/

This is really simple.

Go to your Header Template and find.

Code:

                                <li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
Add this below.

Code:

                <vb:if condition="$show['admincplink']"><li><a href="admincp/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
                <vb:if condition="$show['modcplink']"><li><a href="modcp/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase mod}</a></li></vb:if>

Make sure the code you enter stays before this tag.

Code:

</ul>
Note: If you have changed the name of your Admin & Mod CP you will need to modify the link accordingly.

VonDoom 12-18-2009 10:06 AM

Thanks alot, ive been waiting on this one from day one of beta 3.

Dr.osamA 12-18-2009 07:54 PM

thanx

installed
________
Oxygen Vaporizer

zonaenlinea 12-18-2009 07:58 PM

thanx

installed

prefec...

Cableguy69 12-18-2009 08:01 PM

Your very welcome.

elwachiman 12-18-2009 08:18 PM

easy to install tkns good mod

Cableguy69 12-18-2009 08:36 PM

Cheers please click install if you use this mod :up:

123 views and only 8 installs lmao...

GeorgeB85 12-18-2009 10:28 PM

Nice Mod.

Red Spider 12-19-2009 02:09 PM

cheers

Vaupell 12-19-2009 02:13 PM

Thumbs up, rated 5...

remember to make a note, when users name their admincp something else they should
change the link url to match, im sure someone is going to ask eventually. :D

odln018 12-19-2009 04:33 PM

Thanks, tagged for gold.

saqibnpt 12-20-2009 08:03 AM

thanks installed

SİMAR 12-21-2009 04:53 PM

thanks man nice

speedracer68 01-02-2010 10:17 PM

Thanks! Marked installed

Charlie98902 01-13-2010 10:19 AM

Fix this for 4.0.1 as the template was changed and the location isn't the same please.

philr 01-14-2010 08:43 AM

Very good mod, Marked installed

Ashahalasin 01-14-2010 11:28 AM

Has this been fixed for 4.0.1?

Charlie98902 01-14-2010 03:05 PM

Quote:

Originally Posted by Ashahalasin (Post 1955379)
Has this been fixed for 4.0.1?

Nope it works on 4.0.1 but when I updated vbulletin it looked like this:

Welcome, Admin Mod Notifications Settings My Profile Log Out Charlie

Where before this said

Welcome, Charlie Notifications Settings My Profile Log Out Admin Mod

Vaupell 01-14-2010 03:19 PM

ahmmm works fine just put it in as instructed, i did on 4.0.1 and its fine..

come on, its just 2 links with a if statement, if the placement is moved, then lookaround
and move it to fit.. :p

try searching for )">{vb:rawphrase log_out}</a></
cause they would never remove the log_out phrase :D

Charlie98902 01-14-2010 04:48 PM

Yes I just placed it before the logout code and that put it back to the far right as the pic shows how.

albrens 01-15-2010 06:15 AM

really easy ;)

Thanks a lot.

TheTradersArena 01-16-2010 02:48 AM

Installed......thanks!

The_Rascal 01-19-2010 09:52 AM

Thank you very much - just what we needed :)

Michael1337 01-20-2010 10:21 AM

Great Mod!

Takes the slightest of work to get this fixed.

Thanks ;)

black_bullitt 01-26-2010 12:46 AM

Installed, many thanks!

pantani 02-21-2010 10:21 PM

Nice one and is good thinking, thanks, instaled

GrossKopf 02-21-2010 11:12 PM

Cool. It'll make accessing that a little faster. :)

COL NIL SATIS 04-01-2010 02:02 PM

installed...nice work

Macgiber 04-02-2010 01:48 AM

Thanks

GeorgeB85 06-23-2010 11:39 PM

Is there any way to make this permanent on the forums? Every time I upgrade the software, this mod keeps getting deleted?

mishb68 09-29-2010 02:03 AM

Thanks :)

Krusty1231 09-29-2010 09:03 AM

Thanks for this.

InsomniacP 10-03-2010 10:52 AM

great add cheers!

Qrius 10-03-2010 02:49 PM

Thanks , works for me as well (v4.06)

Madita 10-23-2012 07:27 PM

Will this work with 4.2 ?

VonDoom 04-19-2013 08:36 PM

Quote:

Originally Posted by Madita (Post 2375454)
Will this work with 4.2 ?

Like a Champ!

Streetgliderx 04-26-2013 11:34 PM

thanks!!

oldfan 04-16-2023 02:59 AM

works great on 4.2.6 php 7.2


All times are GMT. The time now is 03:32 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.01300 seconds
  • Memory Usage 1,773KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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