Back to vBulletin 3.5 Template Modifications

For "Save Search Preferences", store all attributes EXCEPT 'search type'.
Mod Version: 1.00, by timetunnel

This modification is in the archives.
vB Version: 3.5.0 Rating: (0 vote - 0 average) Installs: 2
Released: 30 Oct 2005 Last Update: 30 Oct 2005 Downloads: 5
Not Supported Template Edits  

Hello.

This revision is for those admins who don't want Boolean used for EVERY search whether needed or not, unnecessarily raising system resources. If someone needs Boolean for a once-in-a-while search, let them explicitly select it on a case-by-case basis.

This may be a desired feature for relatively-busy forums, I would think.

(ref this thread from vbulletin.com regarding the background for this revision: http://www.vbulletin.com/forum/index.php?t=159204)

~~~~~~~~~~~~~~~~

In the 'search_forums' template, almost at the bottom, is the code for 'Save Search Preferences'. Locate this area. Then, add the code that's between the revision comment lines below JUST PRIOR TO the 'submit' code line. The <font..></font> tags contain a note to the user so they don't have to ask the admin why that parameter is not saving. The comment lines are optional.

Add this code:
Code:
<!-- begin revision -->
<input type="hidden" name="searchtype" value="0" />
<br />
<font size="-2">NOTE:&nbsp;&nbsp;'Search Type' is not saved.</font>
<!-- end revision -->
just above this line:
Code:
<input type="submit" class="button" name="doprefs" value="$vbphrase[go]" />
With this code located just prior to the 'submit' code, it REDEFINES (or in this case, RESETS) the value of the 'searchtype' parameter on-the-fly while on its way to be passed to the 'search.php' script. This tells 'search.php' what YOU want this value to be set to.

ENJOY!

Download

This modification is archived and cannot be downloaded.


vblts.ru supports vBulletin®, 2022-2024