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
Different Navbar Links for Each Forum Details »»
Different Navbar Links for Each Forum
Version: 1.00, by TCE Killa TCE Killa is offline
Developer Last Online: Nov 2012 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.6.8 Rating:
Released: 03-16-2008 Last Update: Never Installs: 7
Template Edits
Re-useable Code  
No support by the author.

As Requested

This little modification gives you the chance to add a second row of links as a navbar for each forum.

Example, you have a forum called Sports.... With this modification, you can add different navbar links to that forum.

So it will be called Sports, you enter the Sports forum area, then a new navbar will be displayed underneith the original navbar, you can add all topics to sports such as - Football, Baseball, Boxing, MMA etc... with a link of your choice when you click on it.

Simply find in Forum Display:

PHP Code:
$navbar 
Add below:

PHP Code:
<if condition="$forumid == XX">
<!-- 
nav buttons bar -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="1" width="100%" align="center" style="border-top-width:0px">
<
tr align="center">
    <if 
condition="$show['member']">
<
td class="vbmenu_option"><a href="CUSTOMLINK.php$session[sessionurl]"><b>CUSTOM TITLE</b></td></a></table></tr></if></if><br /> 
Change the forumid (XX) to the forums ID you want the navbar row to work in, and change the CUSTOMLINK to the links you want the text to go to... The CUSTOM TITLE can be called whatever you want for it.

If you would like more custom links on your navbar row, repeat the CUSTOMLINK & vbmenu_option code for how many you actually want.

If you want a different row of navbars for multiple forums, just repeat the whole code underneith, changing the forumid (XX) to a another forum.

Enjoy! Please mark installed if you use, thankyou:up:

Show Your Support

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

Comments
  #2  
Old 03-17-2008, 04:23 PM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool!
Reply With Quote
  #3  
Old 03-17-2008, 11:14 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! :up:
Just wandering, can I do the same with a header? I mean, for each forum the header will send me to the link that I need?

and can: <a href="CUSTOMLINK.php$session[sessionurl]"><b>CUSTOM TITLE</b></td></a></table></tr></if></if><br /> use an URL?
Reply With Quote
  #4  
Old 03-20-2008, 09:32 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iogames View Post
Thanks! :up:
Just wandering, can I do the same with a header? I mean, for each forum the header will send me to the link that I need?

and can: <a href="CUSTOMLINK.php$session[sessionurl]"><b>CUSTOM TITLE</b></td></a></table></tr></if></if><br /> use an URL?
Yeah, you can definetely do this. Have a look at my other mod (Home in Navbar) to find out how to do that.

Yeah, the custom link can go to any url you like... I.e <a href="http://www.example.com/index.php$session.... etc....

Let me know if you get stuck, thanks.
Reply With Quote
  #5  
Old 06-02-2008, 02:56 PM
almera almera is offline
 
Join Date: Oct 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this only work for different forums, or can I use this to have different sub menus in different .php files? I use vBa and have .php-files for my picture section, blog section, news section etc.

Does it work with vB 3.7?
Reply With Quote
  #6  
Old 01-26-2010, 01:42 AM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^Ofcourse
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 06:51 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.04956 seconds
  • Memory Usage 2,254KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_php
  • (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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete