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)

huevncom 04-05-2012 02:11 AM

thanks, great

kralex 04-06-2012 04:55 PM

Thanks

How to hide "Forums" links?

https://vborg.vbsupport.ru/

Dante848 04-06-2012 11:33 PM

Love this, very nice modification. :)

Moncha 04-10-2012 10:41 PM

1 Attachment(s)
I have two links to HOME when selected on the CMS home page, any ideas?

Moncha 04-20-2012 05:31 PM

Ok, figured this one out... If you have the same trouble in the CMS as I did (Shown in the post above), I fixed it by adding a conditional into the template as shown here;

Code:

<vb:if condition="$show['breadcrumb']">
<vb:if condition="THIS_SCRIPT != 'home'">
<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
                <a href="{vb:raw nav_url}" class="crumb" rel="up" itemprop="url">
                        <span itemprop="title">{vb:raw nav_title}</span>
                </a>

                <span class="arrow">
                        <span>&gt;</span>
                </span>

        </span>
</vb:if>
<vb:else />
        <span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
                <b class="lastcrumb">
                        <span itemprop="title">{vb:raw nav_title}</span>
                </b>
        </span>
</vb:if>

Then add this;
Code:

define('THIS_SCRIPT', 'home');
to the top of "content.php" below the <?php.

BirdOPrey5 04-20-2012 05:42 PM

That would be a BAD idea... content.php already has THIS_SCRIPT defined as:
Code:

define('THIS_SCRIPT', 'vbcms');
Changing it would likely break other mods of even some vbulletin features itself.

Define your own constant, something other than THIS_SCRIPT...

Maybe

Code:

define('IS_HOME', 'yes');
And then in the conditional:
Code:

<vb:if condition="IS_HOME != 'yes'">

Moncha 04-20-2012 07:13 PM

Very cool. A rookie is glad to learn from a skilled person such as you.

BirdOPrey5 04-20-2012 07:40 PM

Quote:

Originally Posted by Moncha (Post 2321992)
Very cool. A rookie is glad to learn from a skilled person such as you.

Making a new constant was still a good idea. :up:

Just put a note somewhere so you remember to redo it when you upgrade the forum.

doraj 04-28-2012 08:39 AM

Hello,

how became the new breadcrumbs when there is a very long post-title?

I have a fixed style and I would like know is someone that use a fixed style, has already test this situation.

Thank you,
Regards

LeventX 05-02-2012 08:06 PM

Thanks installed..


All times are GMT. The time now is 04: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.01288 seconds
  • Memory Usage 1,738KB
  • 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
  • (5)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