vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Remove forum link from breadcrumbs in only one forum (https://vborg.vbsupport.ru/showthread.php?t=198526)

Warlord 12-10-2008 01:23 PM

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?

Lynne 12-10-2008 01:59 PM

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 />
&nbsp;
</if>


Warlord 12-10-2008 06:51 PM

1 Attachment(s)
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>


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. :)


All times are GMT. The time now is 09:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01838 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete