The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
In forumdisplay.php replace:
Code:
$sortfield='lastpost'; } if ($sortfield=="voteavg" and !$foruminfo[allowratings]) { $sortfield="lastpost"; } Code:
$sortfield = 'dateline'; } if ($sortfield == 'voteavg' and !$foruminfo['allowratings']) { $sortfield = 'dateline'; } |
#3
|
||||
|
||||
Thanks Chen, is there a way to do it in only certain forums?
|
#4
|
||||
|
||||
I saw that coming.
https://vborg.vbsupport.ru/showthrea...threadid=34556 |
#5
|
||||
|
||||
LOL I actually posted in that thread Talk about a bad memory... Thanks!
|
#6
|
||||
|
||||
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? |
#7
|
||||
|
||||
dateline, in most vB tables, means "when the record was created". In this example, "when the thread was created". lastpost updates every time.
|
#8
|
||||
|
||||
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?
|
#9
|
||||
|
||||
Ok, in forumdisplay.php replace:
Code:
case 'postusername': case 'voteavg': Code:
case 'postusername': case 'voteavg': case 'dateline': |
#10
|
||||
|
||||
Champion Cheers guv!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|