PDA

View Full Version : Exclude Certain Breadcrumb Links In The Navbar


Chris-777
25 Jul 2006, 15:37
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 (http://www.vbulletin.com/forum/member.php?u=2026) tip that he listed here (http://www.vbulletin.com/forum/showthread.php?t=169499).

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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

utw-Mephisto
26 Jul 2006, 01:25
Interesting ....

MGM
26 Jul 2006, 07:08
I think you mean edit the green list of names ;)

MGM out

Snake
26 Jul 2006, 13:52
Thanks!

Chris-777
26 Jul 2006, 14:32
I think you mean edit the green list of names ;)

MGM out

Depends on your skin here. :cool:

/me blames Brad

Chris-777
11 Nov 2006, 17:24
Tested and working in 3.6.3.

FrostByghte
21 Nov 2006, 17:44
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?

thincom2000
09 Jan 2007, 02:56
Try this add-on (written by me): http://www.vbulletin.org/forum/showthread.php?p=1150742
Allows complete rewriting of navbits in the AdminCP.