Back to vBulletin 3.5 Template Modifications

Boolean Search as Default in Advanced Search Options
Mod Version: 1.00, by Neutral Singh

This modification is in the archives.
vB Version: 3.5.1 Rating: (0 vote - 0 average) Installs: 2
Released: 12 Nov 2005 Last Update: Never Downloads: 1
Not Supported Template Edits  

Boolean Search as Default in Advanced Search Options
[Should work in all vB 3.5.x versions.]

All Thanks to Jake Bunce, vBulletin Team

Context: I found that Boolean search option returns much more accurate and relevant results as compared to natural search option, which returns so many irrelevant results in comparison to boolean. So, i wanted to set the Boolean Search as default option while doing Advanced Search.

Quote by Jake Bunce

Admin CP -> Styles & Templates -> Style Manager -> « » -> Search Templates -> search_forums

Remove the red code:

Code:
                <div style="padding:$stylevar[formspacer]px">
                    $vbphrase[search_type]
                    <label for="rb_searchtype_0"><input type="radio" name="searchtype" value="0" id="rb_searchtype_0"  $searchtypechecked[0] />$vbphrase[natural_language]</label>
                    <label for="rb_searchtype_1"><input type="radio" name="searchtype" value="1" id="rb_searchtype_1"  $searchtypechecked[1] />$vbphrase[boolean]</label>
                </div>


Add the red code:

Code:
                <div style="padding:$stylevar[formspacer]px">
                    $vbphrase[search_type]
                    <label for="rb_searchtype_0"><input type="radio" name="searchtype" value="0" id="rb_searchtype_0" />$vbphrase[natural_language]</label>
                    <label for="rb_searchtype_1"><input type="radio" name="searchtype" value="1" id="rb_searchtype_1"  checked="checked" />$vbphrase[boolean]</label>
                </div>

Thats it !!

Demo : http://www.sikhphilosophy.net

Click Install to encourage me to share such cute hacks with you all !! :nervous:

Download

No files for download.

Screenshots

 

Similar Mods

Boolean Search in Search Drop-Down Menu Option in Navbar vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024