Back to vBulletin 4.x Template Modifications

Simplify Search Feature to be Forum Only
Mod Version: 1.00, by Dan Druff

vB Version: 4.1.12 Rating: (0 vote - 0 average) Installs: 9
Released: 01 Aug 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

Many site owners (myself included) use vBulletin primarily for its forum. These sites tend to have the vast majority of their content in the forum, and relatively little elsewhere. This is especially true of smaller sites.

In such cases, the vBulletin Advanced Search feature is overly complicated, confusing, and user-unfriendly. I noticed this the first time I used vBulletin software many years ago, and the problem still persists to this day.

If you're like me, you simply want the Advanced Search feature to search forum threads/posts only, and you want the form to be as simple as possible for the user.

This modification does not add anything to vBulletin. Instead, it subtracts a lot of extraneous search choices, and makes it easier on users of sites where the forum is the main feature.

Note that this mod removes the ability to search anything but the forum, so don't install it if you want to keep the ability for users to search blogs, groups, etc.

In this mod, you will be editing three templates: navbar, search_common, search_common_select_type

In navbar search for:
Code:
<li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
Change that to:
Code:
<li><a href="search.php?search_type=1{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>


In search_common search for:
Code:
<h3 class="blocksubhead">{vb:rawphrase search_in}</h3>
Right ABOVE it, add:
Code:
<!--

Then search for:
Code:
<h3 class="blocksubhead">{vb:rawphrase search_for}</h3>
Right ABOVE it, add:
Code:
//-->

Then search for:
Code:
	<li class="selected"><a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase search_multiple_types}</a></li>
Right ABOVE it, add:
Code:
<!--
Right BELOW it, add:
Code:
//-->


In search_common_select_type, search for:
Code:
			<li><a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase search_multiple_types}</a></li>
Right ABOVE it, add:
Code:
<!--
Right BELOW it, add:
Code:
//-->

Then search for:
Code:
{vb:raw input_search_types}
Right ABOVE it, add:
Code:
<!--
Right BELOW it, add:
Code:
//-->


OPTIONAL:
Finally, just for aesthetics, go into the Phrase Manager (in Admin Control Panel) and do Search in Phrases. Enter "search_single_type" in the Search For Text box, and click the radio button for Phrase Variable Name Only. Then click Find.

When you get the results (should be search_single_type), click Edit. In the text box, type "Search Forum", and then press Save.

That's it!

You will notice that most of this mod is simply commenting out features we don't need. I have found that many small sites will benefit from this mod.

See attachment for a screen shot of the Advanced Search feature on my forum, with this mod.

Download

No files for download.

Screenshots

Click image for larger version
Name:	search-vbulletin.png
Views:	527
Size:	34.1 KB
ID:	140237  


vblts.ru supports vBulletin®, 2022-2024