The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Remove or Edit "Forum" link in breadcrumbs
How is it possible to Edit or Remove the "Forum" link in the breadcrumb links. I would rather it not be there or have it point to the root of the domain.
|
#2
|
||||
|
||||
Pointing the link to root would even be great.
|
#3
|
||||
|
||||
Anyone? So quite here.
|
#4
|
||||
|
||||
The breadcrumbs are echo'd out in the header template. You should be able to work with a conditional to remove the breadcrumb if it's title (or phrase?) is Forum.
I'd help more, but my vb5 install is torched on the frontend. |
#5
|
|||
|
|||
I believe the location of this is in the navbar template all the way at the bottom.
|
#6
|
||||
|
||||
In vb 4 this was fairly simple for somebody like me with limited knowledge but in vb5 its a different story.
This looks to be the section in the header template: HTML Code:
<vb:if condition="$page['crumbs']"> {vb:set breadcrumbSchema.itemprop, breadcrumb} <ul id="breadcrumbs" class="h-clearfix" {vb:schema {vb:raw breadcrumbSchema}}> <li class="crumb ellipsis"><a class="crumb-link" href="{vb:raw baseurl}/">{vb:phrase home}</a></li> <vb:each from="page.crumbs" value="crumb"> <vb:if condition="isset($crumb['phrase']) AND !empty($crumb['phrase'])"> {vb:set crumbTitle, {vb:rawphrase {vb:raw crumb.phrase}}} <vb:else /> <vb:comment><!-- Since we don't want phrase placeholders to be escaped, we escape user titles here. --></vb:comment> {vb:set crumbTitle, {vb:raw crumb.title}} </vb:if> <li class="vb-icon separator"></li> <li class="crumb ellipsis"><vb:if condition="$crumb['url']"><a class="crumb-link" href="{vb:raw baseurl}{vb:raw crumb.url}">{vb:raw crumbTitle}</a><vb:else />{vb:raw crumbTitle}</vb:if></li> </vb:each> </ul> <vb:else /> <vb:comment> We still need the #breadcrumbs element (even though empty) to avoid having multiple CSS rules to deal with different scenarios where adjacent elements - breadcrumbs, channel-subtabbar, notices, announcements are available, visible, hidden or empty. Used div instead of ul to prevent having an empty ul which is invalid in XHTML 1.0 Strict (though valid in HTML5). Though we are currently using HTML5 doctype, using an emtpy div will ensure that this will validate even if we change the doctype in the future. </vb:comment> <div id="breadcrumbs"></div> </vb:if> |
#7
|
|||
|
|||
Oh oops, didn't know this was posted in the vBulletin 5 section. My bad. c:
|
#8
|
||||
|
||||
HTML Code:
<vb:if condition="isset($crumb['phrase']) AND !empty($crumb['phrase'])"> {vb:set crumbTitle, {vb:rawphrase {vb:raw crumb.phrase}}} <vb:else /> HTML Code:
<vb:if condition="isset($crumb['phrase']) AND !empty($crumb['phrase'])"> <vb:if condition="$crumb['phrase'] != 'forum'> {vb:set crumbTitle, {vb:rawphrase {vb:raw crumb.phrase}}} </vb:if> <vb:else /> |
#9
|
||||
|
||||
Thanks for the help but I get "Invalid Tag Nesting" when trying to use your code.
|
#10
|
||||
|
||||
HTML Code:
<vb:each from="page.crumbs" value="crumb"> <vb:if condition="isset($crumb['phrase']) AND !empty($crumb['phrase'])"> <vb:if condition="$crumb['phrase'] != 'forum'"> {vb:set crumbTitle, {vb:rawphrase {vb:raw crumb.phrase}}} </vb:if> <vb:else /> (Oops, I see I forgot a closing '"' up in #8) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|