Firefox PHP

Set the Phorum Search to "All dates" as default

Posted by SimoneL 
Set the Phorum Search to "All dates" as default
November 23, 2017 03:53PM
Hi,

it´s kind of embarrassing to ask but I can´t find the settings for the Phorum search. We want to change the default settings to "All dates".

We usually have to search for newer AND older messages of a topic/word but the default setting is "30 days". It´s quite time-consuming bc we have to change to "All Dates" for every search.

Thanks in advance
Simone
Re: Set the Phorum Search to "All dates" as default
November 23, 2017 07:55PM
The settings are hard coded more or less.
There are two places to change code.

This is for the simple search.
In the header.tpl for the template(s) you are using look for
Language: PHP
<input type="hidden" name="match_dates" value="365" />
Replace "365" with "0"


For advanced search
There is a "search .tpl" for emerald, lightweight, and classic. After line 80 locate
Language: PHP
<select name="match_dates"> <option value="30" {IF SEARCH->match_dates 30}selected="selected"{/IF}>{LANG->Last30Days}</option> <option value="90" {IF SEARCH->match_dates 90}selected="selected"{/IF}>{LANG->Last90Days}</option> <option value="365" {IF SEARCH->match_dates 365}selected="selected"{/IF}>{LANG->Last365Days}</option> <option value="0" {IF SEARCH->match_dates 0}selected="selected"{/IF}>{LANG->AllDates}</option> </select>

Reorder the list so that line with <option value="0" etc. replaces <option value="30" etc.
Re: Set the Phorum Search to "All dates" as default
November 24, 2017 09:11AM
Thank you for your fast help!
Sorry, only registered users may post in this forum.

Click here to login