For "Save Search Preferences", store all attributes EXCEPT 'search type'.
This modification is in the archives.
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: 'Search Type' is not saved.</font> <!-- end revision --> Code:
<input type="submit" class="button" name="doprefs" value="$vbphrase[go]" /> ENJOY! Download This modification is archived and cannot be downloaded. |