The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I need to sort vbulletin posts by database postid column, not by a dateline?
I am sure there is no option to do this in vbulletin settings, so I am looking to find where this can be changed in the script. Don't be afraid to help me. Thanks |
#2
|
|||
|
|||
![]()
What is the difference?
|
#3
|
|||
|
|||
![]()
I want posts displayed in the thread (any thread), sorted by postid.
Reason for this is, that I have an RSS import situation, where many posts are posted at exactly the same time, while postid is always increasing. |
#4
|
||||
|
||||
![]()
Since you are talking about the order of posts in the showthread page, did you happen to look at the showthread.php page for the $posts query? That's where it should be.
|
#5
|
|||
|
|||
![]()
I don't know much about vbulletin and programming used there, but in showthread.php, I've found many referenced to ORDER BY post.dateline $postorder.
Can you point me to a correct one to get my posts sorted by postid? |
#6
|
||||
|
||||
![]()
It sounds like you want to ORDER BY post.postid instead of post.dateline.
|
#7
|
|||
|
|||
![]()
Hi and thanks for your help. At this point I know it should be post.postid, what I asked for is something else:
I've found many referenced to ORDER BY post.dateline $postorder. Can you point me to a correct one to get my posts sorted by postid? |
#8
|
|||
|
|||
![]()
I still don't get it. What RSS feed post many post in hte same thread with all the same timestamp? I can not really think of a situation that would behave like that.
|
#9
|
|||
|
|||
![]()
Example:
If you try to sync some RSS feed (any) to your forum at lets say 10 AM, you'll find, that every post synced to your forum at that time, will be posted at exactly the time of RSS sync (10 AM). It's not taking date and time from each element inside RSS feed, which is how it should work in the first place. Anyways, just an update: I've changed all instances of 'ORDER BY post.dateline' to 'ORDER BY post.postid' in showthread.php and my posts are finally sorting as they should. Btw. it is important to mention, that I am running RSS to post mod |
#10
|
||||
|
||||
![]()
What version of vB do you use? AFAIK, newer versions of the vB3 series include an RSS Feed Manager which does what your hack does.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|