The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to get the Post position in a thread (post #) for a given postid?
So I have a post-id and the thread-id for a post, but I cant figure out how to find out where in the thread this post is (the post #).
The reason I need to pull this data, is to figure out what page the post is on in a multiple page thread. I figure if I can find the post # then I can divide that number by the # of posts per page, to figure out what page the post is actually on. Thanks!! |
#2
|
||||
|
||||
Users can set their own number of posts per page. Also, some posts may be moderated, and some may be hidden (user in coventry or a user in your ignore list) and some could be deleted. Different people may see the post as a different post number. Additionally, different users may have their posts per page set to different numbers.
What exactly are you wanting to do and perhaps we can suggest a different way of going about it (because your way is not easy). |
#3
|
|||
|
|||
I don't have an operational vB3, but I think it's $post['postcount']
|
#4
|
||||
|
||||
I think nerbert is correct if you are just looking in the postbit for the postcount. But if you are trying to figure this out in your own query for some other purpose, it can be quite complicated.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|