View Full Version : Remove forum link from breadcrumbs in only one forum
Warlord
12-10-2008, 01:23 PM
I want to remove the forum link in the breadcrumbs of the navbar from only one forum. I use this forum for users to post bulletins in. These bulletins then appear to all members in their usercp.
I want to remove this link so that members don't feel like they're actually posting a message on a forum. So I guess I need some sort of if statement that checks the forum that the topic is posted in / being posted in and removes the link to the forums in the breadcrumbs of the Navbar.
Can anyone help me out?
Lynne
12-10-2008, 01:59 PM
You may put a condition around the part of the breadcrumbs you don't want to show.
<if condition="$forumid != 'x'">
show the link
<else />
</if>
Warlord
12-10-2008, 06:51 PM
Thanks Lynne, worked perfect. :)
Can you tell me why this replacement variable doesn't parse in the page title and parses both conditions of the if statement shown in the attached image please?
<if condition="$forumid != '97' ">Post New Thread<else />
Post New Bulletin
</if>
Lynne
12-10-2008, 08:49 PM
So it worked, or it didn't work? And what template are you doing this in? If you are in the navbar template, you may have to use $foruminfo[forumid] instead of just $forumid.
Warlord
12-10-2008, 09:18 PM
It worked great to remove the navbits that I wanted gone, thanks again. :)
But I tried using the same IF statement in a replacement variable to replace Post New Thread with Post New Bulletin when in forumid 97.
Lynne
12-10-2008, 09:25 PM
I'm not understanding your second statement about using a replacement variable. You mean you used that in Styles & Templates > Replacement Variable Manager? I don't think you can use conditions in there. That condition I wrote is a template condition.
Warlord
12-11-2008, 03:59 AM
Yes, that's what I used. Thanks for the info. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.