UBB.Dev
Posted By: Hal9000 Default search all posts - 05/01/2003 6:50 PM
Hello
How can I make as a default, searching in all posts and not the posts which are dated newer than one week ?

Thanks
Posted By: Dave_L_dup1 Re: Default search all posts - 05/01/2003 7:05 PM
templates/default/search.tmpl

Remove the selected="selected" attribute from the 1-week option, and add it to the all-posts option:

<select name = "Old" class="formboxes">
<option value="1day">{$ubbt_lang['SEARCH_1DAY']}</option>
<option value="2days">{$ubbt_lang['SEARCH_2DAY']}</option>
<option [:"blue"]selected="selected"[/] value="1week">{$ubbt_lang['SEARCH_1WEEK']}</option>
<option value="2weeks">{$ubbt_lang['SEARCH_2WEEK']}</option>
<option value="3weeks">{$ubbt_lang['SEARCH_3WEEK']}</option>
<option value="1month">{$ubbt_lang['SEARCH_1MONTH']}</option>
<option value="3months">{$ubbt_lang['SEARCH_3MONTH']}</option>
<option value="6months">{$ubbt_lang['SEARCH_6MONTH']}</option>
<option value="1year">{$ubbt_lang['SEARCH_1YEAR']}</option>
<option [:"red"]selected="selected"[/] value="allposts">{$ubbt_lang['SEARCH_ALLPOST']}</option>
</select>
Posted By: Hal9000 Re: Default search all posts - 05/01/2003 7:16 PM
Thank you
© UBB.Developers