View Single Post
  #13  
Old 12-22-2010, 01:35 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did the Breadcrumb mod myself. It is not that hard

in the navbar template find:
Code:
<div id="breadcrumb" class="breadcrumb">
    <ul class="floatcontainer">
        <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>

        {vb:raw navbits.breadcrumb}
        {vb:raw navbits.lastelement}
    </ul>
    <hr />
</div>
and replace it with:
Code:
<div class="breadBoxTop">
  <fieldset class="breadcrumb">
    <ul class="crumbs">
        {vb:raw navbits.breadcrumb}
        {vb:raw navbits.lastelement}
    </fieldset>
<br />
</div>
in the navbar_link template find:

Code:
<vb:if condition="$show['breadcrumb']">
    <li class="navbit"><a href="{vb:raw nav_url}">{vb:raw nav_title}</a></li>
<vb:else />
    <li class="navbit lastnavbit"><span>{vb:raw nav_title}</span></li>
</vb:if>
and replace it with:
Code:
<vb:if condition="$show['breadcrumb']">
 <li class="crust">
  <a href="{vb:raw nav_url}" class="crumb"><span>{vb:raw nav_title}</span></a>
  <span class="arrow"><span>&gt;</span></span></li>
<vb:else />
 <li class="crust">
   <p class="crumb">{vb:raw nav_title}</p>
  <span class="arrow"><span>&gt;</span></span></li>
</ul>
</vb:if>
in additional.css add:
Code:
/*------------------------------------------------------------------------------
| #> Breadcrumb Xenforo Style by AdSenseExperts.com
+-----------------------------------------------------------------------------*/
.breadBoxTop { }
.breadBoxTop .topCtrl { margin-left: 5px; float: right; line-height: 24px; }
.breadcrumb { font-size: 11px; background: #F2F6F8 url('images/gradients/category-23px-light.png') repeat-x top; border: 1px solid #A5CAE4; border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px; -khtml-border-radius: 5px; overflow: hidden; zoom: 1; }
.breadcrumb .crust { display: block; float: left; position: relative; zoom: 1; }
.breadcrumb .crust a.crumb { text-decoration: none; background-color: #F2F6F8; padding: 0 10px 0 18px; margin-bottom: -1px; border-bottom: 1px solid #A5CAE4; outline: 0 none; -moz-outline-style: 0 none; display: block; line-height: 24px; _border-bottom: none; }
.breadcrumb .crust p.crumb { text-decoration: none; background-color: #F2F6F8; padding: 0 10px 0 18px; margin-bottom: -1px; border-bottom: 1px solid #A5CAE4; outline: 0 none; -moz-outline-style: 0 none; display: block; line-height: 24px; _border-bottom: none; }
.breadcrumb .crust:first-child a.crumb { padding-left: 10px; border-top-left-radius: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; -khtml-border-top-left-radius: 4px; border-bottom-left-radius: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -khtml-border-bottom-left-radius: 4px; }
.breadcrumb .crust:last-child a.crumb { font-weight: normal; -moz-border-radius-bottomleft:4px; -moz-border-radius-topleft:4px; padding-left:20px; pointer-events: none; cursor: default; background-color: #F7F9FA; color: #333333; }
.breadcrumb .crust:last-child p.crumb { font-weight: normal; -moz-border-radius-bottomleft:4px; -moz-border-radius-topleft:4px; padding-left:20px; pointer-events: none; cursor: default; background-color: #F7F9FA; color: #333333; }
.breadcrumb .crust .arrow { border: 12px solid transparent; border-right: 1px none black; border-left-color: #A5CAE4; display: block; position: absolute; right: -12px; top: 0px; z-index: 50; width: 0px; height: 0px; }
.breadcrumb .crust .arrow span { border: 12px solid transparent; border-right: 1px none black; border-left-color: #F2F6F8; display: block; position: absolute; left: -13px; top: -12px; z-index: 51; white-space: nowrap; overflow: hidden; text-indent: 9999px; width: 0px; height: 0px; }
.breadcrumb .crust:hover:last-child a.crumb { background-color: #F7F9FA; }
.breadcrumb .crust:hover a.crumb { background-color: #d7edfc; }
.breadcrumb .crust:hover:last-child .arrow span { border-left-color: #F7F9FA; }
.breadcrumb .crust:hover .arrow span { border-left-color: #d7edfc; }
.breadcrumb .crust .arrow { /* hide from IE6 */ _display: none; }
E Voila
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02307 seconds
  • Memory Usage 1,793KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete