![]() |
Exclude Certain Breadcrumb Links In The Navbar
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'); 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']"> |
Interesting ....
|
I think you mean edit the green list of names ;)
MGM out |
Thanks!
|
Quote:
[high]* Guest210212002 blames Brad[/high] |
Tested and working in 3.6.3.
|
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?
|
Try this add-on (written by me): https://vborg.vbsupport.ru/showthread.php?p=1150742
Allows complete rewriting of navbits in the AdminCP. |
All times are GMT. The time now is 02:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|