The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simplify Search Feature to be Forum Only Details »» | |||||||||||||||||||||||||||||
Simplify Search Feature to be Forum Only
Developer Last Online: May 2023
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> 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> Code:
<!-- Then search for: Code:
<h3 class="blocksubhead">{vb:rawphrase search_for}</h3> Code:
//--> Then search for: Code:
<li class="selected"><a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase search_multiple_types}</a></li> Code:
<!-- 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> Code:
<!-- Code:
//--> Then search for: Code:
{vb:raw input_search_types} Code:
<!-- 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. Screenshots
Show Your Support
|
Comments |
#2
|
|||
|
|||
Thanks for the post. I have been meaning to do this thanks for making it quick.
|
#3
|
|||
|
|||
Thanks!
|
#4
|
|||
|
|||
Thanks!! Works like a charm,
Some one know how to be able to have a search in the navbar like this site ? vbulletin.org ? |
#5
|
||||
|
||||
Tagged, will deff install this later when I have the time, and I have to agree, the search has always been a pain to me, especially having to wait 30 seconds when making mistakes.
|
#6
|
|||
|
|||
Thanks for this mod! I've followed the instructions but our search screen is different from the screen shot - the Additional Options seem to be following the Multiple Content Search format rather than the Single Content.
Any ideas on how to fix this? |
#7
|
|||
|
|||
Thank you very much.
For those of you who want to keep functionality but default to forum-only search, simply do the navbar change above and nothing else. |
#8
|
|||
|
|||
Quote:
Which vBulletin version are you using? |
#9
|
|||
|
|||
Thanks to this mode we have a clear search in our forum. Thank you very much.
I have one more question. Please, How do I delete a search box "Tag:"? Thanks, Petr |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|