![]() |
Chronological Thead Display By Start Date
Works with 2.2.0 and up!
This hack was suggested by Lionel at this thread. https://vborg.vbsupport.ru/showthrea...threadid=35707 Its a small hack but it does what he wants. ##### In forumdisplay.php Replace ##### PHP Code:
PHP Code:
PHP Code:
|
Neo, it does exactly what I was looking for. Upon entering the forum, the thread are properly sorted. :up:
|
No prob man. I am happy to serve.
|
Why are you setting $sortfield to 'asc' as well?
|
He wanted to have it so that the first made was at the top instead of the bottom... so the newest one would start or be placed at the end of the page... and as you know ASC is a MySQL command.
|
$sortfield is the column to sort by, not the order. $sortorder holds the order (ASC/DESC).
|
Yeah... thats what I ment to say.
|
And I'm asking why are you setting $sortfield (not $sortorder) to ASC?
|
Works perfectly, thanks a lot bud!
|
Hmm odd, I thought it worked, but it's actually putting the replies back at the top even though the start date is much earlier then the most recent post.
|
Two questions:
a) Is this working?? b) How do I have the newest at the top? |
It's working for me. It is automatically sorting them in the desired order. Member can change order if he wants but it will always revert back to set order next time he enters forum again.
|
Ok but can I change it so that default is newest at top?
|
I guess you'll have to replace asc with desc
|
No that won't work for me. It just switches back to the normal 'last post' listing. I want it going by first post. :)
|
asc and desc work for me, but like I said, now when I post a reply it goes to the top rather then staying where it is....Any ideas at all?
|
Leave them both at asc.. it worked for me just fine like that.
|
It's actually not working for me for some odd reason..... http://www.slcentral.com/boards/foru...?s=&forumid=48
|
what version of vb are you using?
|
2.2.1
|
I'm using 2.2.2, and it has installed, and orders differently when I change it, but as soon as a reply is made to an old thread, it ignores everything I've set and returns to the board default...
|
I think mine is doing the same thing as Tim.... You would think that the makers of VB would add in a "sort by original post date" in the first place....
|
Same problem with 2.2.4 too.
|
Hmm... it works for me... I will look into it.
|
Hi,
I was looking for something like this as well and your first suggestion really got me going. What I've got now is an addition of two columns from the forum table and some changes at the admin area. Like this I can set the sort field myself for every single forum as well as descending or ascending. The only thing I'm still looking for is a function to grab all the different columns in a table. If someone would know of such a function/ select query, pleas let me know as I can make the field a selection field in the admin area. Regards, Pinocchi |
is there a way to use this sorting by Thread post dates?
|
I believe there would be :)
|
Hi there,
I've recently created a thread I want stickied and the first post of it is to be the intro to the thread. I want to merge older threads into the same thread and have them displayed "after" the intro. I want to merge a few threads into the one but I'm afraid with the chronological order of things, the posts could be all over the place. Is there any way just to add them non chronologically and more threadly (if that's a word:)) Any feedback would be appreciated. |
All times are GMT. The time now is 05:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|