PDA

View Full Version : Show newest messagers ordered by forum


maestrosdelweb
11-12-2002, 10:06 PM
Hi..

Any idea to update the getnew action to order the results by forum and then by date?

Best regards.

Logician
11-13-2002, 09:33 AM
edit search.php, find:


eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid\");");


Replace it as:


eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortby=forum\");");


There are 2 instances, change both..

Enjoy.

maestrosdelweb
11-13-2002, 12:52 PM
Great thanks for the help.

Just something else.

To make the order DESC?

Still a newie with this forums.

Logician
11-13-2002, 05:11 PM
Use
eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortorder=ascending\");");

or

eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortorder=descending\");");

maestrosdelweb
11-13-2002, 09:12 PM
I'm trying the following:

eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortby=forum&sortorder=descending\");");

It does order the messages by forum but it doesn't order them in desc order..

Any advice?

maestrosdelweb
11-21-2002, 10:21 PM
Any other suggestion?

Logician
11-21-2002, 10:44 PM
does not the 2 codes I referred above make any change in sorting order?

maestrosdelweb
11-22-2002, 01:03 AM
:) I ment to order it in ascending way.. It works now.

Best regards and thanks for the help.