PDA

View Full Version : Post Order


01-15-2001, 06:42 AM
Is there a hack to allow users to set the post order (ascending/descending) in their profile?

Also...when the post order is reversed and someone replies to a multiple page thread they are sent to the oldest page and not the page that they replied on!
Any fixes/ideas?

Thanks,

AustinChief

http://www.chiefsplanet.com

01-15-2001, 01:44 PM
create a new user field called postsorder and set it to default @ 0 (oldest first) and do all the stuff in member.php to allow the user to change it, etc.

in showthread.php find


// oldest first or newest first
if ($postsorder==0) {
$postorder="";
} else {
$postorder="DESC";
}


and change it to

if ($userinfo[postsorder]==0) {
$postorder="";
} else {
$postorder="DESC";
}


course i've never tested that, but it should work nicely :)

01-15-2001, 10:30 PM
No change. It isn't having any effect at all.

Do I need to make a change elswhere, so that my postorder field is passed to the $userinfo array?

Thanks,

Kyle

01-15-2001, 11:56 PM
You need to add postsorder to the query that starts:

$userinfo=$DB_site->query_first("SELECT

Just add it in with a preceding comma before the closing ");

AustinChief
06-07-2001, 04:59 AM
I finally got around to doing this hack. Thanks for the help... it works great.

--Kyle