PDA

View Full Version : make threadstart default sort order in search.php


btappan
09-01-2004, 11:16 PM
I am trying to make "threadstart" the default sort order for the search results in my forum but am not having much luck. I tried this as OCEAN suggested but have had no success:

1. In the "Search.php" file, find:




'sortby' => 'lastpost',




2. Change it to this:




'sortby' => 'threadstart',




3. Now, Find:




$sortby = 'lastpost';




4. And change that to this:




$sortby = 'threadstart';





That should do it! :)


Anybody got an idea of where else the default is being set in this file? with the mod above it still sorts by 'lastpost'

btappan
09-02-2004, 01:56 AM
okay....this works when you actually do a search, threadstart is the default. the problem is when you click predefined searches like "new posts" or "get daily" then the function does not work. so now where do I look at for modding to get it to work with these functions?

Ocean
09-02-2004, 03:23 AM
okay....this works when you actually do a search, threadstart is the default. the problem is when you click predefined searches like "new posts" or "get daily" then the function does not work. so now where do I look at for modding to get it to work with these functions?



I posted a possible solution here: https://vborg.vbsupport.ru/showpost.php?p=548928&postcount=14

btappan
09-02-2004, 10:48 AM
I posted a possible solution here: https://vborg.vbsupport.ru/showpost.php?p=548928&postcount=14


tried this as well, also tried changing

addslashes($forumid) . "', 'lastpost', 'DESC', $searchtime

to

addslashes($forumid) . "', 'threadstart', 'DESC', $searchtime



nothing wants to affect the behavior of this script :ermm: