Quote:
Originally Posted by Psalmist
1. In vBulletin 3, the leftmost breadcrumb is the site name, not "Forum". We want to keep it that way (it should be the site title, not "Forum").
|
That was a little tricky but there's a way to do it in a plugin using hook location template_register_var:
Code:
global $vbphrase, $vbulletin;
if ($this->template == 'navbar_link' AND $name == 'nav_title' AND $value == $vbphrase['forum'])
{
$value = $vbulletin->options['bbtitle'];
}
Quote:
2. Also, in vBulletin 3, there is no breadcrumb on the homepage. We also want to keep that the same. (In our current test setup of vBulletin 4, there's an unlinked "Forum" breadcrumb on the main page.)
|
That one's a little easier: edit the navbar template, find the breadcrumb section and add an if, like:
Code:
<div class="body_wrapper">
<vb:if condition="THIS_SCRIPT != 'index'">
<div id="breadcrumb" class="breadcrumb">
<ul class="floatcontainer">
<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
{vb:raw navbits.breadcrumb}
{vb:raw navbits.lastelement}
</ul>
<hr />
</div>
</vb:if>