Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2014, 05:11 AM
SiFor's Avatar
SiFor SiFor is offline
 
Join Date: May 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 07-18-2014, 01:51 AM
SiFor's Avatar
SiFor SiFor is offline
 
Join Date: May 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pointing the link to root would even be great.
Reply With Quote
  #3  
Old 07-23-2014, 03:17 AM
SiFor's Avatar
SiFor SiFor is offline
 
Join Date: May 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone? So quite here.
Reply With Quote
  #4  
Old 07-23-2014, 04:42 AM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-23-2014, 07:58 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe the location of this is in the navbar template all the way at the bottom.
Reply With Quote
  #6  
Old 07-23-2014, 09:57 AM
SiFor's Avatar
SiFor SiFor is offline
 
Join Date: May 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #7  
Old 07-23-2014, 10:10 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh oops, didn't know this was posted in the vBulletin 5 section. My bad. c:
Reply With Quote
  #8  
Old 07-23-2014, 11:41 AM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HTML Code:
<vb:if condition="isset($crumb['phrase']) AND !empty($crumb['phrase'])">
					{vb:set crumbTitle, {vb:rawphrase {vb:raw crumb.phrase}}}
				<vb:else />
Ultimately, it's probably going to look something like this:
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 />
Reply With Quote
  #9  
Old 07-24-2014, 08:11 AM
SiFor's Avatar
SiFor SiFor is offline
 
Join Date: May 2004
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the help but I get "Invalid Tag Nesting" when trying to use your code.
Reply With Quote
  #10  
Old 07-24-2014, 11:13 PM
Dead Eddie's Avatar
Dead Eddie Dead Eddie is offline
 
Join Date: Apr 2004
Location: at Home...
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 />
This didn't give me an error.

(Oops, I see I forgot a closing '"' up in #8)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:28 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.14086 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete