Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Easy Navbar Links Details »»
Easy Navbar Links
Version: 1.02, by SuperTaz SuperTaz is offline
Developer Last Online: Mar 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.1.4 Rating:
Released: 11-20-2009 Last Update: 06-08-2010 Installs: 102
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

/*================================================= =============*\
|| ################################################## ########## ||
|| # Easy Navbar Links
|| # Version 1.00
|| # Author: Warden
|| # This mod may only be used from vbulletin.org
|| # DO NOT display this mod on any other modification site without my permission
|| # You can alter this code and re-display it here on vbulletin.org
|| ################################################## ########## ||
\*================================================ ==============*/


Easy Navbar Links

Installation: Less than 3 minutes!

Installation instructions:

Go to your navbar template:

Styles and Templates > Style Manager > vB4 > Navigation Breadcrumb Templates > Navbar:

Find this code near the top:

Code:
<ul class="floatcontainer">
{vb:raw template_hook.navbar_start}
Above it add:

Code:
<!-- Navbar Links -->
<li class="non-selected"><a class="navtab" href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
<li class="non-selected"><a class="navtab" href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
<li class="non-selected"><a class="navtab" href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
<li class="non-selected"><a class="navtab" href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
<!-- / Navbar Links -->
Save and Reload.

OR...
You can use it this way and add links to the navbar with new posts and pm's, etc. in the sub-navbar!!

Find in the navbar template:

Code:
{vb:raw template_hook.navbar_start}
<vb:if condition="$show['searchbuttons']">
Add below:

Code:
<li><a href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
<li><a href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
<li><a href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
<li><a href="sample.php?{vb:raw session.sessionurl}">Sample</a></li>
Change RED highlighted link to your mod or addon URL
Change Blue highlighted link to your link name.

2nd picture shows this sample.

Edit the links to whatever you want.

Done!

If you use this mod, please CLICK INSTALL!!

Download Now

File Type: txt navbar_install.txt (1.4 KB, 246 views)

Screenshots

File Type: jpg navbar.jpg (22.6 KB, 0 views)
File Type: png subnavbar.PNG (4.7 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 01-19-2010, 09:11 AM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And the new tab are: "target="_blank"
Reply With Quote
  #23  
Old 01-19-2010, 06:16 PM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry everyone. Been away for a while. Code is updated.
Reply With Quote
  #24  
Old 01-25-2010, 03:22 AM
cooltechie cooltechie is offline
 
Join Date: Apr 2004
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you tell me if this allows only logged in user to see the link? I noticed that some default link only show up when logged in so which part allow that. Thank you.
Reply With Quote
  #25  
Old 01-26-2010, 12:32 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cooltechie View Post
Can you tell me if this allows only logged in user to see the link? I noticed that some default link only show up when logged in so which part allow that. Thank you.
In order for you to regulate who sees the links, you will need this code:

Code:
<!-- Navbar Links -->
<vb:if condition="$show['member']">
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="3" width="100%" align="center" style="border-top-width:1px">
<tr align="center">
<td class="vbmenu_control"><a href="LINK HERE">LINK NAME</a></td>
<td class="vbmenu_control"><a href="LINK HERE">LINK NAME</a></td>
<td class="vbmenu_control"><a href="LINK HERE">LINK NAME</a></td>
<td class="vbmenu_control"><a href="LINK HERE">LINK NAME</a></td>
<td class="vbmenu_control"><a href="LINK HERE">LINK NAME</a></td>
<td class="vbmenu_control"><a href="LINK HERE">LINK NAME</a></td>
</tr>
</table>
</div>
</vb:if>
<!-- / Navbar Links -->
You notice the "if" conditional. That is what you need to regulate who sees it by way of your usergroup permission settings.
Reply With Quote
  #26  
Old 01-26-2010, 01:26 AM
cooltechie cooltechie is offline
 
Join Date: Apr 2004
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post

You notice the "if" conditional. That is what you need to regulate who sees it by way of your usergroup permission settings.
Thanks for your help. Marked as installed.
Reply With Quote
  #27  
Old 01-26-2010, 01:32 AM
Highwayfrunkis Highwayfrunkis is offline
 
Join Date: Nov 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this!
Reply With Quote
  #28  
Old 02-07-2010, 05:21 PM
buddyheiko buddyheiko is offline
 
Join Date: Apr 2008
Location: Germany, 70771 Leinfelden
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

thanks for this hack. Now I can make navbars as much as I want. Great ...

How can I fix the background ? I want the same colour as my original navbar.
How can I tell the tabs to open in a new window / a new tab in IE8 ?

Heiko
Reply With Quote
  #29  
Old 02-09-2010, 12:35 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by buddyheiko View Post
Hi,

thanks for this hack. Now I can make navbars as much as I want. Great ...

How can I fix the background ? I want the same colour as my original navbar.
How can I tell the tabs to open in a new window / a new tab in IE8 ?

Heiko
Can I see your site so that I can do some troubleshooting and see what I can come up with?

As for your second request, you enter this code:

Code:
<td class="vbmenu_control"><a href="LINK HERE" target="_blank">LINK NAME</a></td>
Just add the code in red to any of the links to open in a new window.
Reply With Quote
  #30  
Old 02-09-2010, 08:43 AM
buddyheiko buddyheiko is offline
 
Join Date: Apr 2008
Location: Germany, 70771 Leinfelden
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

my site is

www.Forum-Spielmannszug.de


Heiko
Reply With Quote
  #31  
Old 02-12-2010, 01:51 PM
SpottySocks SpottySocks is offline
 
Join Date: Jun 2008
Location: UK
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

misunderstood - sorted now. thanks for this!
Reply With Quote
Reply


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 08:08 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.04641 seconds
  • Memory Usage 2,345KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete