Well, I don't like the label "Search results for query:" if I actually clicked "View recent messages" on the main page. I didn't enter a search text, so this is not a search result at all (ok, it is a search on the DB, but not for the "normal" user). This fixes this behaviour:
In
/dosearch.php look for:
code:
$printwords = htmlspecialchars($Words);
replace with:
code:
if (!$Words) {
$printwords = "{$ubbt_lang['VIEW_PAST']}";
} else {
$printwords = "{$ubbt_lang['SEARCH_RES']} "" . htmlspecialchars($Words) . """;
}
Still in
/dosearch.php look for:
code:
// Send the header
$html -> send_header("{$ubbt_lang['SEARCH_RES']}: $printwords",$Cat,0,$user);
replace with:
code:
// Send the header
$html -> send_header("$printwords",$Cat,0,$user);
In
/templates/default/dosearch.tmpl find:
code:
{$ubbt_lang['SEARCH_RES']}: $printwords
replace with:
code:
$printwords
Finally in
/languages/.../dosearch.php add 1 line:
code:
$ubbt_lang['VIEW_PAST'] = "Recent messages";