Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
Exclude Certain Breadcrumb Links In The Navbar Details »»
Exclude Certain Breadcrumb Links In The Navbar
Version: 1.00, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 07-24-2006 Last Update: Never Installs: 1
 
No support by the author.

Note: I did not write this. I had to edit my settings this morning and it took me a bit to find it on vb.com, and it didn't come up in a search here so I'm posting it so that folks can tag it. This is Jake Bunce's tip that he listed here.

This mod allows you to exclude breadcrumbs from the navbar by name.

Eg: I have a forum called "Recording Studio" in the category "General Music Discussion". With this, my navbar breadcrumbs show:

Sevenstring.org ? Recording Studio

Instead of:

Sevenstring.org ? General Music Discussion ? Recording Studio

Because this mod excludes by name, you will want to avoid having multiple forums and categories that have the same names, unless you want to exclude both of them.

You need to use a plugin for this, so first make sure your plugin system is enabled:

Admin CP -> vBulletin Options -> Plugin/Hook System -> Enable Plugin/Hook System

Now create a new plugin for the parse_templates hook location:

Admin CP -> Plugin System -> Add New Plugin

Use this PHP code in the plugin:

Code:
$navexclude = array('title1', 'title2', 'title3');
Edit the red list of names to specify the titles of the breadcrumb links you want to exclude. For example, if you have a category named "Open Forums" then you can exclude that link from the breadcrumbs in the navbar by adding 'Open Forums' to the list.

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Navigation / Breadcrumb Templates -> navbar_link

Add the red code. Upon saving this template you will get an error about a "wrong datatype for second argument". Ignore the error and click Continue:

Code:
<if condition="!in_array($nav_title, $GLOBALS['navexclude']) OR !$show['breadcrumb']">

	<if condition="$show['breadcrumb']">
		<span class="navbar">&gt; <a href="$nav_url">$nav_title</a></span>
	<else />
		$nav_title
	</if>

</if>

Show Your Support

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

Comments
  #2  
Old 07-25-2006, 11:25 PM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting ....
Reply With Quote
  #3  
Old 07-26-2006, 05:08 AM
MGM MGM is offline
 
Join Date: Jan 2003
Location: Michigan
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you mean edit the green list of names

MGM out
Reply With Quote
  #4  
Old 07-26-2006, 11:52 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #5  
Old 07-26-2006, 12:32 PM
Guest210212002
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by MGM
I think you mean edit the green list of names

MGM out
Depends on your skin here.

[high]* Guest210212002 blames Brad[/high]
Reply With Quote
  #6  
Old 11-11-2006, 03:24 PM
Guest210212002
Guest
 
Posts: n/a
Default

Tested and working in 3.6.3.
Reply With Quote
  #7  
Old 11-21-2006, 03:44 PM
FrostByghte FrostByghte is offline
 
Join Date: Feb 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would there be a way to hide the forum instead of the sub forum? I have a number of sub forums with their own templates defined and I would really like a way to remove the top level forum from the breadcrumb. Any chance that could happen with this mod?
Reply With Quote
  #8  
Old 01-09-2007, 12:56 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this add-on (written by me): https://vborg.vbsupport.ru/showthread.php?p=1150742
Allows complete rewriting of navbits in the AdminCP.
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 02:16 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.04175 seconds
  • Memory Usage 2,258KB
  • Queries Executed 21 (?)
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_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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (5)postbit_onlinestatus
  • (8)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete