![]() |
Thread Sorting
Hi,
Is it possible to hack forumdisplay so it will sort threads based solely on their first post date? Also, is there a '10 recent posts' hack that displays them, again, based on the date they were started not by the date of their last post? Thx :) Mark |
In forumdisplay.php replace:
Code:
$sortfield='lastpost'; Code:
$sortfield = 'dateline'; |
Thanks Chen, is there a way to do it in only certain forums?
|
I saw that coming. ;)
https://vborg.vbsupport.ru/showthrea...threadid=34556 |
LOL I actually posted in that thread :o Talk about a bad memory... :) Thanks! :)
|
Ok, I installed that other hack, but it doesn't work for me. I'm setting the sort field to 'dateline', as I figured that was the required field based on your code above, but it sorts them as per normal...
Does 'dateline' reflect the original posting date, or does it change whenever someone posts to the thread? |
dateline, in most vB tables, means "when the record was created". In this example, "when the thread was created". lastpost updates every time.
|
Hmm... so basically, if I set dateline to be the sort field, it should list them by start date - which obviously isn't working in this case? :(
|
Ok, in forumdisplay.php replace:
Code:
case 'postusername': Code:
case 'postusername': |
Champion :) Cheers guv!
|
Quote:
|
I'd like to add a sort option to the dropdown menu at the bottom of forumdisplay in Display Options. I'd like to sort by Thread Start Date which is an option available in search.php but not forumdisplay.php. I've tried myself but haven't come up with the correct query. Does anybody know what code for forumdisplay.php and forumdisplay template would generate the right query? It needs to be able to sort sticky threads as well. Using the code from search.php doesn't seem to work.
|
All times are GMT. The time now is 08:10 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:
|