Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
Admin CP and Mod CP links in your navbar Details »»
Admin CP and Mod CP links in your navbar
Version: 1.00, by JsnakeJ JsnakeJ is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-08-2006 Last Update: Never Installs: 12
Template Edits
 
No support by the author.

This is a quite simple template modification that will add your AdminCP and ModCP links to your navbar.

Open your Navbar template.


Find:
Code:
</tr>
	</table>
</div>
<!-- / nav buttons bar -->
You don't have to place it at the end of your navbar. You can place in anywhere you would like on the navbar.

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

IF
you would like to remove the other links then please do the following.

Open your Footer template.

Find and Remove:
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>
Should work for any version of vBulletin 3.5.x

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-09-2006, 02:47 AM
Mastar's Avatar
Mastar Mastar is offline
 
Join Date: Sep 2005
Posts: 680
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screen Shots? Sounds Good though depends how they look.
Reply With Quote
  #3  
Old 01-09-2006, 03:16 AM
JsnakeJ JsnakeJ is offline
 
Join Date: Mar 2005
Location: Pennsylvania
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added a screenshot for ya.
Reply With Quote
  #4  
Old 01-17-2006, 12:54 PM
Tri@de's Avatar
Tri@de Tri@de is offline
 
Join Date: Sep 2003
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack! *INSTALLED*

But i have a request:

There's a way to display only one of the link for mods and admin?
If i'm admin i'd like to view only admincp (the modcp is useless for me)
Also a mod could see only modcp.
Reply With Quote
  #5  
Old 01-17-2006, 01:48 PM
Tri@de's Avatar
Tri@de Tri@de is offline
 
Join Date: Sep 2003
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Modified!

instead of
<if condition="$show['admincplink']">

write
<if condition="$show['admincplink'] AND $bbuserinfo[usergroupid]==X">

Where X is the administrator's groupid

For Modcp Link:
<if condition="$show['modcplink']">
replace with:
<if condition="$show['modcplink']" AND $bbuserinfo[usergroupid]==X">

Where X is the Mod's groupid

I hope it will be useful!
Reply With Quote
  #6  
Old 01-17-2006, 02:02 PM
LBSources LBSources is offline
 
Join Date: Nov 2005
Location: New York
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice.. very convenient.. thanks..
Reply With Quote
  #7  
Old 01-19-2006, 09:36 PM
we_scooter we_scooter is offline
 
Join Date: Aug 2002
Location: KSA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like this MOD

I have this concern .

If I want a condition saying (if usergroup Admin or MODERATOR) show "this" else show "blablabla")

what should the code be


???
Reply With Quote
  #8  
Old 02-13-2006, 05:01 PM
Overfed Overfed is offline
 
Join Date: Jul 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got this error for some reason

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/justs2/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 215

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #9  
Old 02-16-2006, 01:37 AM
wwwdjrcs wwwdjrcs is offline
 
Join Date: Feb 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great for me, thx!

http://forum.djrcs.com
Reply With Quote
  #10  
Old 02-22-2006, 07:45 PM
JsnakeJ JsnakeJ is offline
 
Join Date: Mar 2005
Location: Pennsylvania
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tri@de
Modified!

instead of
<if condition="$show['admincplink']">

write
<if condition="$show['admincplink'] AND $bbuserinfo[usergroupid]==X">

Where X is the administrator's groupid

For Modcp Link:
<if condition="$show['modcplink']">
replace with:
<if condition="$show['modcplink']" AND $bbuserinfo[usergroupid]==X">

Where X is the Mod's groupid

I hope it will be useful!
Some may find that useful.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:29 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.07873 seconds
  • Memory Usage 2,286KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete