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)
-   -   Forum Home Enhancements - Hide navbits from index only (https://vborg.vbsupport.ru/showthread.php?t=243517)

Keysailor 06-26-2012 05:52 PM

Installed in vB 4.2.0pl2 and it works fine, even with my custom navbar, thanks!

Action-N 01-29-2013 03:24 AM

I tried this for the CMS, but it hid from everything else not so much the front page which is what I believe is the point. Since all the sections, categories, an other pages use vbms script it needed an extra variable that only the top "Front Page" has. I found a post https://vborg.vbsupport.ru/showthread.php?t=289747 that found such a variable an was able to redesign the code given here. Thanks to brandondrury for discovering the variable.

Pretty much what I think should be standard, but hiding the breadcrumb only on the index/front page as it's not needed if your already there. Since not all other pages are gonna have parentnode variable the breadcrumb was hidden on them to so had to add another condition so it only hides if it's the CMS otherwise use the original code.

I didn't wrap the style tags to help with keeping the page from tweeking out. Did notice a loss of space so there could be a height filler added to the style code:

Code:

<div id="breadcrumb" class="breadcrumb" style="height:8px;">
Basically just go to navbar template an wrap condition statement around the whole breadcrumb code as shown.

REPLACE:
Code:

                <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}

WITH:
Code:

            <vb:if condition="THIS_SCRIPT == 'vbcms'">
                <vb:if condition="$vbulletin->parentnode != 0">
                <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}
                </vb:if>
<vb:else />
                <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}
            </vb:if>


goxy63 02-19-2013 06:55 PM

If you have lots of articles this is bad decision, by me your users in some cases will have trouble...with breadcrumbs it is easy to navigate.

If can be removed ONLY on main CMS page it is ok, but removing breadcrumbs everywhere in articles its a mess

Did install, and I just found myself lost in my articles lol

Would like to see it only for main page, uninstalled, tagged

Action-N 02-22-2013 04:17 AM

Goxy63, that's what my other post was about, with the code for it even. If your getting lost in your articles dependent on the breadcrumbs might want to add a "Home" tab on your navigation.

caltek 08-13-2013 06:48 PM

Thanks for that - appreciate it.


All times are GMT. The time now is 01:51 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.01049 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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