The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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 Code:
// oldest first or newest first
if ($postsorder==0) {
$postorder="";
} else {
$postorder="DESC";
}
Code:
if ($userinfo[postsorder]==0) {
$postorder="";
} else {
$postorder="DESC";
}
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 "); |
|
#5
|
|||
|
|||
|
I finally got around to doing this hack. Thanks for the help... it works great.
--Kyle |
![]() |
|
|