Back to vBulletin 3.7 Template Modifications

Auto Selecting Search Titles Only in Drop-Down Menu
Mod Version: 1.00, by crackers

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 5.00 average) Installs: 4
Released: 23 Feb 2009 Last Update: Never Downloads: 0
Not Supported Template Edits  

This small mod was 'prepared' for huge forums, which have problems with load. After install it, users can search only by Threads' Titles rule in a Drop-Down Menu. Users still can select 'Search Entire Posts' in Advanced Search Menu, of course. This mod decrease load over serveral % and also it doesn't change anything in a search form's appearance.

Open navbar template, search for:

Code:
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
Place BEFORE line with childforums:

Code:
<input type="hidden" name="titleonly" value="1" />


Open FORUMDISPLAY template, search for:

Code:
<input type="hidden" name="do" value="process" />
<input type="hidden" name="forumchoice[]" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
Place BEFORE line with forumchoice[]:

Code:
<input type="hidden" name="titleonly" value="1" />


Moreover I recommend change default option in Advanced Search (Search Titles Only instead Search Entire Posts). You can do it by (Dismounted's solution):

Open search_forums template

Find:

Code:
<select name="titleonly">
	<option value="0" $titleonlyselected[0]>$vbphrase[search_entire_posts]</option>
	<option value="1" $titleonlyselected[1]>$vbphrase[search_titles_only]</option>
</select>
Replace for:

Code:
<select name="titleonly">
	<option value="0">$vbphrase[search_entire_posts]</option>
	<option value="1" selected="selected">$vbphrase[search_titles_only]</option>
</select>


Greetings

Download

No files for download.

Similar Mods

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

vblts.ru supports vBulletin®, 2022-2024