vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Remove "forum" and search box from navbar (https://vborg.vbsupport.ru/showthread.php?t=235757)

Martyh 02-13-2010 11:28 AM

Remove "forum" and search box from navbar
 
I would like to do that.

borbole 02-13-2010 01:21 PM

Have a look at the navbar as they are defined there. For ex, to remove the search button find and remove the following code:

HTML Code:

<vb:if condition="$vboptions['enablesearches']">
        <div id="globalsearch" class="globalsearch">
                <form action="search.php?do=process" method="post" id="navbar_search" class="navbar_search">
                        <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
                        <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.png" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
                </form>
                <ul class="navbar_advanced_search">
                        <li><a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase advanced_search}</a></li>
                </ul>
        </div>
        </vb:if>

Whereas for the forum tab, you can find the specific code near the top of the template.

Martyh 02-13-2010 01:29 PM

Thanks Borbole, could you possibly show me where to take the forum link out at, I can't figure it out.

borbole 02-13-2010 02:55 PM

Quote:

Originally Posted by Martyh (Post 1981375)
Thanks Borbole, could you possibly show me where to take the forum link out at, I can't figure it out.

You are most welcome. To remove the forum tab, find and remove the following code:

HTML Code:

<a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>

Martyh 02-13-2010 05:42 PM

Thanks again Borbole, this works well except in the cms pages or at least the front page of it. Would there be a separate place to remove it from there ? The search box removal worked for all pages, just the forum tab still exists on the front page.

borbole 02-13-2010 06:52 PM

You are welcome. I don''t know about cms Martyh as I don''t use it. Does it have its own navbar template?

Martyh 02-13-2010 07:38 PM

I didn't think so but for some reason it doesn't seem to follow the other one at least not for the Nav button/links.

borbole 02-13-2010 07:42 PM

Can you have a look at the cms templates, for something like cms_navbar or anything similiar?

Martyh 02-14-2010 02:24 PM

I don't see anything like that, can you make a mod to make this whole thing > drag, drop and right click menu for editing ? ,,lol I think that's what I need.

borbole 02-14-2010 04:48 PM

I read a post at vbulletin.com that tells me that the cms templates should be something like vbcms_name for ex. So have a look at the templates for something like vbcms_navbar for ex.


All times are GMT. The time now is 07:16 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.01120 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
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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