EDIT: I've also posted this simple fix with some additional information @ https://www.ubbdev.com/forums/ubbthreads.php/topics/319252

--
About:
If you have a large forum that has been online for longer than a single week, your forum quite possibly may be filled with all sorts of useful information. Make that information easier for your members to locate and with as few steps as necessary for them to locate it with.

This fix will automatically fill in the default "Maximum Search Date Range" (defined by Control Panel > Feature Settings > Search) to your forum's "Newer than" field inside search.tpl.

It will also set that "Maximum Search Date Range" as default for the user's search, instead of the near useless "1 week" default:

How-To:
Control Panel > Templates
Select "search.tpl" and click on "Edit Selected Template"

FIND:
Code
{$lang.NEWER} <input type="text" name="newerval" size="2" class="form-input" value="1" />
<select name="newertype" class="form-select">
<option value=""></option>
<option value="d">{$lang.DAY}</option>
<option value="w" selected="selected">{$lang.WEEK}</option>
<option value="m">{$lang.MONTH}</option>
<option value="y">{$lang.YEAR}</option>

REPLACE WITH:
Code
{$lang.NEWER} <input type="text" name="newerval" size="2" class="form-input" value="{$config.MAX_SEARCH_RANGE_VALUE}" />
<select name="newertype" class="form-select">
<option value=""></option>
<option value="d">{$lang.DAY}</option>
<option value="w">{$lang.WEEK}</option>
<option value="m">{$lang.MONTH}</option>
<option value="y" selected="selected">{$lang.YEAR}</option>

Done.


Notes:
Configure your forum's "Maximum Search Date Range" at
Control Panel > Feature Settings > Search


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com