The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Remove forum link from breadcrumbs in only one forum
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? |
#2
|
||||
|
||||
You may put a condition around the part of the breadcrumbs you don't want to show.
HTML Code:
<if condition="$forumid != 'x'"> show the link <else /> </if> |
#3
|
||||
|
||||
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? Code:
<if condition="$forumid != '97' ">Post New Thread<else /> Post New Bulletin </if> |
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
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. |
#6
|
||||
|
||||
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.
|
#7
|
||||
|
||||
Yes, that's what I used. Thanks for the info.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|