Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Design and Graphics Discussions
  #1  
Old 03-01-2013, 02:33 AM
kingcruisers kingcruisers is offline
 
Join Date: Jan 2013
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need Help With Custom Breadcrumbs

I am seeking help with the html code within the header template to customize the breadcrumbs. I have already inserted the following into additional.css:

#breadcrumbs { display:block; background:url([URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-grad.gif"]http://kingcruisers.com/images/css/b...crumb-grad.gif[/URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-grad.gif"]) repeat-x 0 0; height:23px; overflow:hidden; float:left; }
#breadcrumbs a { font-size:12px; color:#105598; height:23px; line-height:23px; vertical-align:middle; padding:0 20px 0 10px; display:block; float:left; background:url([URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-mid.gif"]http://kingcruisers.com/images/css/b...dcrumb-mid.gif[/URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-mid.gif"]) no-repeat right 0; }
#breadcrumbs a:hover { text-decoration:underline; }
#breadcrumbs a.first-child { background:url([URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-home.gif"]http://kingcruisers.com/images/css/b...crumb-home.gif[/URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-home.gif"]) no-repeat 0 0; width:32px; padding:0; text-indent:-9999px; overflow:hidden; }
#breadcrumbs a.last-child { background:url([URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-end.gif"]http://kingcruisers.com/images/css/b...dcrumb-end.gif[/URL="http://kingcruisers.com/images/css/breadcrumbs/breadcrumb-end.gif"]) no-repeat right 0; }

This is the html that needs to be edited in the header template. I just need to know what needs to be changed to get the desired results.

<vb:if condition="$page['crumbs']">
<ul id="breadcrumbs" class="clearfix">
<li class="crumb ellipsis"><a class="crumb-link" href="{vb:raw baseurl}/">{vbhrase 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>

Below is an image of the desired results achieved from the additional.css


I am running into trouble getting the last-child to end with /breadcrumb-end.gif rather than /breadcrumb-mid.gif. You can see how it's currently working at [URL="http://www.kingcruisers.com/roll-calls"]http://www.kingcruisers.com/roll-calls[/URL="http://www.kingcruisers.com/roll-calls"]

Any help would be greatly appreciated.
Reply With Quote
  #2  
Old 03-04-2013, 12:00 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe its just me but the background URLs in your CSS look jacked up.
Reply With Quote
  #3  
Old 03-04-2013, 05:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You posted in the vB5 forum, but seem to be using vb4 css. What version are you needing help with?
Reply With Quote
  #4  
Old 03-05-2013, 01:48 AM
kingcruisers kingcruisers is offline
 
Join Date: Jan 2013
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using vb5 5.0. I pasted the additional.css here and it appears that the URL tags have been added. I am more so needing help on the code for the header template to display the css.
I will try to repaste the additional.css below:
Quote:
#breadcrumbs { display:block; background:url(http://kingcruisers.com/images/css/b...crumb-grad.gif) repeat-x 0 0; height:23px; overflow:hidden; float:left; }
#breadcrumbs a { font-size:12px; color:#105598; height:23px; line-height:23px; vertical-align:middle; padding:0 20px 0 10px; display:block; float:left; background:url(http://kingcruisers.com/images/css/b...dcrumb-mid.gif) no-repeat right 0; }
#breadcrumbs a:hover { text-decoration:underline; }
#breadcrumbs a.first-child { background:url(http://kingcruisers.com/images/css/b...crumb-home.gif) no-repeat 0 0; width:32px; padding:0; text-indent:-9999px; overflow:hidden; }
#breadcrumbs a.last-child { background:url(http://kingcruisers.com/images/css/b...dcrumb-end.gif) no-repeat right 0; }
Reply With Quote
  #5  
Old 03-05-2013, 06:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is it that you think is wrong? Is it the color after the > ? If so, that is in your image - http://kingcruisers.com/images/css/b...dcrumb-mid.gif
Reply With Quote
  #6  
Old 03-08-2013, 02:09 AM
kingcruisers kingcruisers is offline
 
Join Date: Jan 2013
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was needing help with how to insert the css into the header template. For example where in the header html for the breadcrumbs would I call on the /breadcrumb-end.gif so that it displays correctly.

Thanks.
Reply With Quote
  #7  
Old 03-08-2013, 05:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put the css in the css_additional.css template.
Reply With Quote
  #8  
Old 03-08-2013, 10:29 PM
kingcruisers kingcruisers is offline
 
Join Date: Jan 2013
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup...I did that already. I am needing help with the html of the header template to display the custom breadcrumbs.

This is the original header html:
Quote:
<vb:if condition="$page['crumbs']">
<ul id="breadcrumbs" class="clearfix">
<li class="crumb ellipsis"><a class="crumb-link" href="{vb:raw baseurl}/">{vbhrase 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>
I have changed the header html but still need to know how to get the last breadcrumb to display the http://kingcruisers.com/images/css/b...dcrumb-mid.gif instead of http://kingcruisers.com/images/css/b...dcrumb-mid.gif. Also, it is not loading correctly on mobile and is causing problems with notices.

My edited header html that I need help with:
Quote:
<vb:if condition="$page['crumbs']">
<ul id="breadcrumbs" class="clearfix">
<li class="crumb ellipsis"><a class="first-child" href="{vb:raw baseurl}/">{vbhrase 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="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>
</br></br></br>
Thanks for your help.
Reply With Quote
  #9  
Old 03-09-2013, 06:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately, you don't know what the lastelement is going to be. You'd be better off having an image that is transparent on the right instead of having color and then color it through CSS when there is something on the right. (Perhaps... not really sure, but that is how I would go about it.)
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04212 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete