vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   how can i remove 'forum' button from navbar (https://vborg.vbsupport.ru/showthread.php?t=278202)

ClErK1991 02-07-2012 05:39 PM

how can i remove 'forum' button from navbar
 
hey everyone i wanna remove this button from the navbar can someone tell me how to do it? :D and thanks for all ur help before :) :D :up:

ProFifaLeagues 02-07-2012 06:10 PM

In the navbar template, remove the stuff starting right under here:
HTML Code:
{vb:raw template_hook.navtab_start}
to right above here:
HTML Code:
{vb:raw template_hook.navtab_middle}
That will remove the tab, but then if you are in any forum page (forumdisplay, showthread, index), then I don't think any tab will be highlighted and thus no sub-menu either.

ClErK1991 02-07-2012 11:40 PM

Quote:

Originally Posted by rammieone (Post 2297210)
HTML Code:
{vb:raw template_hook.navtab_start}
to right above here:
HTML Code:
{vb:raw template_hook.navtab_middle}

thanks, this works awesome!

and now please can u tell me how can i remove the advance search from the same navbar? :D

ProFifaLeagues 02-08-2012 06:56 AM

Glad to of been a help Sir,To remove the advanced search you can try this for search


Did you try removing or commenting out this section in the navbar template?



PHP Code:

        <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">             <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>             <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />             <input type="hidden" name="do" value="process" />             <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>             <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.<vb:if condition="(is_browser('ie') AND !is_browser('ie'7) AND !is_browser('ie'8))">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>         </form


ClErK1991 02-08-2012 10:27 AM

Quote:

Originally Posted by rammieone (Post 2297423)
Glad to of been a help Sir,To remove the advanced search you can try this for search


Did you try removing or commenting out this section in the navbar template?



PHP Code:

        <form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">             <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>             <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />             <input type="hidden" name="do" value="process" />             <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>             <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.<vb:if condition="(is_browser('ie') AND !is_browser('ie'7) AND !is_browser('ie'8))">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>         </form


i dont know to much about vB, that what i answer and thanks a lot for answer me :D

EDIT: this work aswesome but, the words 'Advanced Search' still there, so i delete this

HTML Code:

<ul class="navbar_advanced_search">
                                <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
                                {vb:raw template_hook.navbar_advanced_search}
                        </ul>

there is not a problem about that? right?


All times are GMT. The time now is 07:03 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.01144 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete