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)

Allan 05-28-2010 10:00 PM

Hide navbits from index only
 
1 Attachment(s)
Hello, with this mod, you can hide the navbits (which is useless on index) from index only.

You gain a little height ^^
  • In the "Navbar" template, find:
Code:

<div  class="body_wrapper">
<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>

  • Replace with:
Code:

<div  class="body_wrapper">
<vb:if condition="in_array(THIS_SCRIPT, array(index))">
<vb:else />
<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>
</vb:if>

For CMS: https://vborg.vbsupport.ru/showpost....45&postcount=6

AURFSCAN 05-29-2010 06:41 AM

thankyou Allan

Juggernaut 05-29-2010 07:15 AM

using it, thank you :D

RedPoint 05-29-2010 07:21 PM

thanks, i search for this long time ;)

whitedd 05-29-2010 11:10 PM

...great...but what is with CMS???...

AURFSCAN 05-30-2010 01:54 AM

use this for removal from cms


Code:


<div  class="body_wrapper">
<vb:if condition="in_array(THIS_SCRIPT, array('index', 'vbcms'))">
<vb:else />
<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>
</vb:if>


Allan 05-30-2010 06:43 AM

Quote:

Originally Posted by AURFSCAN (Post 2045345)
use this for removal from cms


Code:


<div  class="body_wrapper">
<vb:if condition="in_array(THIS_SCRIPT, array('index', 'vbcms'))">
<vb:else />
<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>
</vb:if>


Yes, good idea, thx ;)

Skyrider 09-28-2010 10:40 AM

Gracias for this, installed.

BadgerDog 10-07-2010 09:52 AM

Installed ... thanks ... :)

Works well on 4.04pl1 ... :up:

Regards,
Badger

BioWaffen 10-08-2010 11:32 AM

Works on 4.0.7 , but if I put the CMS in, it doesn?t show it at all, so not from index only ;)


All times are GMT. The time now is 03:02 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.01190 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_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
  • (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