PDA

View Full Version : Remove "forum" and search box from navbar


Martyh
02-13-2010, 11:28 AM
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:

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

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

ProFifaLeagues
09-03-2010, 05:27 AM
Helped me out loads this info thanks

borbole
09-03-2010, 01:38 PM
Helped me out loads this info thanks

Glad to hear that :)

Brandon Sheley
10-25-2010, 05:06 PM
might be wise to just comment out the code, that way if you need to replace it or reference it later, it'll still be there.

<!--- html code to comment out -->