vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Alternative Breadcrumbs for your vB4 (https://vborg.vbsupport.ru/showthread.php?t=280518)

Onkeltyson 05-09-2012 01:37 PM

Looks nice ;-) Thanks for that

tidus78 05-11-2012 06:30 AM

Two problems :

1) Layout
2) Home disappears

:confused:

http://img543.imageshack.us/img543/8...0511092756.png

MajinOLesedi 05-11-2012 03:53 PM

Thank you, good job

Winter Sonata 05-11-2012 05:31 PM

very good job!

tidus78 05-12-2012 04:56 PM

Solved :)

Something similar for navbar?

iBaker 05-25-2012 12:29 AM

This works ok for 4.2

GaRanT 05-31-2012 11:00 PM

I have default vb4.2.0 template but with customized sidebar.
Could someone help me please with breadcrumb css to make it as default colors of sidebar.
http://www.freeimagehosting.net/t/ylmsn.jpg

dwx 06-12-2012 12:43 AM

Nice template hack, I really like the look of the Breadcrumbs now!

I was dealing with a lot of confusion about how to change the language on my site, so I made a small modification to add and additional language picking box to the right side of the breadcrumb box. This way it's near the top of the page instead of scrolled off the bottom.

To accommodate the slightly larger drop down box for the language selector, I had to make the bar a few px taller. Below are the code modifications from private_ale's original hack.

Here's the new code for additional.css:
Code:

.bread_box {
    margin: 0;
    overflow: hidden;
    clear: both;
}
.breadcrumb {
    position: relative;
    font: 11px Arial,Calibri,Verdana,Geneva,sans-serif;
    background: {vb:stylevar sidebar_background};
    border: {vb:stylevar sidebar_border}; /* this is the border color that's around the whole thing */
    -moz-border-radius:{vb:stylevar border_radius};
    -webkit-border-radius: {vb:stylevar border_radius};
    border-radius: {vb:stylevar border_radius};
    overflow: hidden;
}
.breadcrumb .crust {
    display: block;
    float: left;
    position: relative;
}
.breadcrumb .crust:first-child a.crumb {
    padding-left: 13px;
    -moz-border-radius-topleft:{vb:stylevar border_radius};
    -moz-border-radius-bottomleft:{vb:stylevar border_radius};
    -webkit-border-top-left-radius: {vb:stylevar border_radius};
    -webkit-border-bottom-left-radius: {vb:stylevar border_radius};
    border-top-left-radius: {vb:stylevar border_radius};
    border-bottom-left-radius: {vb:stylevar border_radius};
}
.breadcrumb .crust a.crumb, .breadcrumb .crust b.lastcrumb {
    text-decoration: none;
    background-color: {vb:stylevar sidebar_background.backgroundColor}; /* this is the background color of the CRUMBS, ie: the links */
    padding: 0 10px 0 23px;
    border-bottom: {vb:stylevar sidebar_border}; /* this is the same as the border value higher up, this only shows if the last crumb causes it to overflow */
    margin-bottom: -1px;
    outline: 0 none;
    -moz-outline-style: 0 none;
    display: block;
    line-height: 29px;
    _border-bottom: none;
    color:{vb:stylevar link_color}; /* this is the color of the links in the crumbs */
    text-decoration:{vb:stylevar link_textDecoration};
}
.breadcrumb .crust b.lastcrumb {
    background: transparent none;
    color: {vb:stylevar footer_time_color}; /* this is the color of the last crumb, ie: the final destination */
    font-weight: bold;
}
.breadcrumb .crust a.crumb, .breadcrumb .crust b.lastcrumb {
    line-height: 29px;
}
.breadcrumb .crust .arrow {
    border: 15px solid transparent;
    border-right: 1px none black;
    border-left: {vb:stylevar sidebar_border}; /* this is the _background_ color of the "arrow" */
    border-left-width: 15px !important;
    border-left-style: solid !important;
    display: block;
    position: absolute;
    right: -15px;
    top: -1px;
    z-index: 50;
    width: 0px;
    height: 0px;
}
.breadcrumb .crust .arrow span {
    border: 15px solid transparent;
    border-right: 1px none black;
    border-left-color: {vb:stylevar sidebar_background.backgroundColor}; /* this is the border color of the "arrow" */
    display: block;
    position: absolute;
    left: -16px;
    top: -15px;
    z-index: 51;
    white-space: nowrap;
    overflow: hidden;
    text-indent: 9999px;
    width: 0px;
    height: 0px;
}
.breadcrumb .refresh:hover { background-position: 0px -16px; }
.breadcrumb .crust:last-child a.crumb { font-weight: bold; }
.breadcrumb .crust:hover a.crumb {
    background-color:{vb:stylevar blocksubhead_background.backgroundColor}; /* this is the background color of the crumb when it's hovered */
    color:{vb:stylevar linkhover_color}; /* likewise, this is the color of the crumb's link when hovered */
    text-decoration:{vb:stylevar linkhover_textDecoration};
}
.breadcrumb .crust:hover .arrow span {
    border-left-color:{vb:stylevar blocksubhead_background.backgroundColor}; /* this is the color of the "arrow" when hovered. It should be identical to the `.breadcrumb .crust:hover a.crumb` background value */
}

Here's the new code to add for navbar:
Code:

<div class="bread_box">
    <nav>
        <fieldset class="breadcrumb">
            <span class="crumbs">
                <vb:if condition="$vboptions['hometitle']">
                    <span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
                        <a href="{vb:raw vboptions.homeurl}" class="crumb" rel="up" itemprop="url" alt="{vb:rawphrase home}">
                            <span itemprop="title">{vb:raw vboptions.hometitle}</span>
                        </a>
                        <span class="arrow">
                            <span>&gt;</span>
                        </span>
                    </span>
                </vb:if>
                {vb:raw navbits.breadcrumb}
                {vb:raw navbits.lastelement}
<!-- Language Selector -->
<li style="float: right;">
<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select">
<vb:if condition="$show['languagechooser']">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="{vb:rawphrase quick_language_chooser}">
{vb:raw languagechooserbits}
</optgroup>
</select>
</vb:if>
</form>    </li>
<!-- Language Selector Ends -->
            </span>
        </fieldset>
    </nav>
</div>

navbar_link remains the same.

I hope you find this hack-on-hack useful!

-dwx

GameOverViper 06-17-2012 02:11 AM

1 Attachment(s)
I'm having an issue with it after installing. It shows two lines on the bottom, which doesn't look like the examples I've seen here. I'm using the latest version of vbulletin, 4.2.0.

dwx 06-17-2012 11:58 AM

Quote:

Originally Posted by Americanbang (Post 2340248)
I'm having an issue with it after installing. It shows two lines on the bottom, which doesn't look like the examples I've seen here. I'm using the latest version of vbulletin, 4.2.0.

I had the same issue, it was because there's an underline that's NOT overwritten by the bounding box. It's theme specific, and has nothing to do with 4.2. You tweak the CSS and make the regions larger so it fills up your space.

Take a look at the modification's I posted above, I increased the height of the bar by 6 or 7px to accommodate the language picker, and had to adjust the arrows to fit as well.

dwx


All times are GMT. The time now is 11:36 AM.

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.01246 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete