PDA

View Full Version : Editing the Breadcrumbs and navbit


wpeloquin
07-24-2010, 03:53 PM
I would like to edit one of my skins, and change the navbit from:

[Forum Home] > [Category] > [Forum Name]

to just starting with the category, like:

[Category] > [Forum Name]

This is a subsection on my forums for a particular userset, and has its own custom skin. The header image already links to the category, but a lot of users will still click on the [Forum] link. I have included 2 screenshots to give an idea of what i am talking about.

in the navbar_links template is the following code:
<vb:if condition="$show['breadcrumb']">
<li class="navbit"><a href="{vb:raw nav_url}">{vb:raw nav_title}</a></li>
<vb:else />
<li class="navbit lastnavbit"><span>{vb:raw nav_title}</span></li>
</vb:if> Removing the first part removes all breadcrumbs except the last one, the page you are on. However, a view source shows:
<!-- BEGIN TEMPLATE: navbar_link -->

<li class="navbit"><a href="forum.php">Forum</a></li>

<!-- END TEMPLATE: navbar_link --><!-- BEGIN TEMPLATE: navbar_link -->

<li class="navbit"><a href="forumdisplay.php?83-Blazing-Steel">Blazing Steel</a></li>

<!-- END TEMPLATE: navbar_link --><!-- BEGIN TEMPLATE: navbar_link -->

<li class="navbit lastnavbit"><a href="forumdisplay.php?82-General-Discussions">General Discussions</a></li>

<!-- END TEMPLATE: navbar_link -->

Lynne
07-24-2010, 06:04 PM
You could just write a quick plugin:
Hook Location - navbits
PHP Code:
if ($nav_title == 'Forum') {
$skip_nav_entry = true;
}

nlpc
08-15-2010, 11:54 AM
I've been looking for a way to do this for ages - thanks Lynne! :)

Is there a way to remove the category link too?

I just want: site name/homepage link - section name/link - thread name/link

Lynne
08-15-2010, 02:38 PM
I'm not sure exactly what you want, but the code to look at is in the function construct_navbits in functions.php