View Full Version : Post Order
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
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 :)
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
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.