Quote:
Originally Posted by Quantnet.org
When search, the oldest threads appear on top. How can I make the latest thread appear on top ?
|
edit ajax_search.php file
search for:
Code:
$results = $db->query_read("SELECT * FROM ". TABLE_PREFIX ."thread WHERE `title` LIKE '%$query%' AND `thread`.`forumid` NOT IN (0 $excludelist)");
replace with:
Code:
$results = $db->query_read("SELECT * FROM ". TABLE_PREFIX ."thread WHERE `title` LIKE '%$query%' AND `thread`.`forumid` NOT IN (0 $excludelist) ORDER BY `lastpost` DESC");
Quote:
Originally Posted by StrifeX
Nvrm, I just fixed the problem 
|
good to head that