Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Simple Additional Navbars Details »»
Simple Additional Navbars
Version: 1.00, by yoyoyoyo yoyoyoyo is offline
Developer Last Online: Sep 2008 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 10-19-2007 Last Update: 10-19-2007 Installs: 28
Template Edits
Translations  
No support by the author.

Simple Additional Navbars

This allows you to add another navigation menu (navbar) under your exisiting navbar. You can add as many as you want.

For simplicity sake, this does not have the option to add dropdown menus. If you wish to do that there are plenty of tutorials on vbulletin.org that show you how to do that - this is meant as a way to simply add another basic navbar to your forum.

TEMPLATE EDIT:

Go to your Admin Control Panel, and select the "Styles & Templates" navigation option, and click on "Style Manager"
In the dropdown menu select "Edit Templates"
click on the "<<>>" button to expand all of the templates
Select the "navbar" template and click on "Customize" or "Edit"
In your navbar template find:
Code:
<!-- breadcrumb, login, pm info -->
add above:
Code:
<!-- additional nav button row below navbar -->
<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">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</tr>
</table>
</div>
<!-- / additional nav button row below navbar -->
Obviously you will need to substitute "http://url.com" with the URL you wish to add, and "Link Title Goes Here" with the name of the link you wish to appear in your navbar.

You can also obviously add as many links as will fit on the navbar. Just add:
Code:
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
for each link you would like to add.

If you want to add multiple additional navbars below the navbar, simply paste the code in again for each navbar you wish to add, and edit the links accordingly.

NOTE: If you want to add a new navbar ABOVE your existing navbar, then in the navbar template search for:
Code:
<!-- nav buttons bar -->
<div align="center">
and add above:
Code:
<!-- additional nav button row above navbar -->
<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">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</tr>
</table>
</div>
<!-- / additional nav button row above navbar -->
OPTIONAL:

If you want to show a link only to members use this:
Code:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</if>
If you want to show a link only to members, and a different link to guests use this:
Code:
<if condition="$show['member']">
<td class="vbmenu_control"><a href="http://url.com">Member Link Title Goes Here</a></td>
<else />
<td class="vbmenu_control"><a href="http://url.com">Guest Link Title Goes Here</a></td>
</if>
To make the link open in a new window use this URL instead:
Code:
<td class="vbmenu_control"><a href="http://url.com" target="_blank">Link Title Goes Here</a></td>
To make the link(s) only visible to certain usergroups use this:
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</if>
Substitute X, Y, Z with the ID numbers of the groups that you want to allow to see the link. If you only want one usergroup to be able to see the link then use: $bbuserinfo, X and substitute X with the ID number of the group that you want to allow to see the link.

SPECIAL NOTE REGARDING DROPDOWN MENUS:

If you do decide to add dropdown menus to your additional navbar, keep in mind that some web browsers lack the ability to use the vBMenu system. To avoid confilcts with these browsers surround all vBMenu controls that use dropdown menus in a conditional that checks the value of $show['popups']:

Code:
<if condition="$show['popups']">

    <!-- content here is for browsers that
    are able to use the vBMenu system -->
    
<else />

    <!-- content here is shown to browsers
    that are unable to use dropdown vBMenu -->
    
</if>
IF YOU FIND THIS USEFUL PLEASE CLICK INSTALL

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 10-20-2007, 01:26 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know that there are going to be inevitable requests for screenshots - simply use your imagination - picture another navbar either below or above the existing navbar.
Reply With Quote
  #3  
Old 10-20-2007, 02:13 PM
Luky Luky is offline
 
Join Date: Oct 2006
Location: Australia
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Screenshots? lmao

J/K. I like it.
Reply With Quote
  #5  
Old 10-21-2007, 06:12 AM
Luky Luky is offline
 
Join Date: Oct 2006
Location: Australia
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A demo atleast? >_>
Reply With Quote
  #6  
Old 10-21-2007, 08:04 AM
ninjamaster's Avatar
ninjamaster ninjamaster is offline
 
Join Date: Oct 2006
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this
Reply With Quote
  #7  
Old 10-21-2007, 11:46 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Luky View Post
A demo atleast? >_>
imagine 2 navbars - there's your demo
Reply With Quote
  #8  
Old 10-21-2007, 06:30 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Note: if you want to hide the additional navbar from guests then use this:

Code:
<!-- additional nav button row for members only -->
<if condition="$show['member']">
<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">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</tr>
</table>
</div>
</if>
<!-- / additional nav button row for members only -->
Reply With Quote
  #9  
Old 10-25-2007, 03:47 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quite useful. Thank you!
Reply With Quote
  #10  
Old 07-20-2009, 04:05 PM
Bibbo Bibbo is offline
 
Join Date: Jul 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this. I now have this and it is working great
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 01:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04735 seconds
  • Memory Usage 2,307KB
  • Queries Executed 24 (?)
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
  • (11)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