View Full Version : Query for postcount of a post?
superjeff
05-30-2008, 03:37 PM
Hi all, i'd like to make a query to take the postcount of a specific post having its id.
For example, this is the post 1536335 and knowing this i'd like to know the postcount in the thread.
Any ideas?
Marco van Herwaarden
05-31-2008, 07:35 AM
Sorry i don't understand. The 'postcount' of a single post is always 1.
superjeff
05-31-2008, 12:28 PM
I'd like to do a query that "replay" me 2 if, for exemple, i ask for post 1536862 (yours)
Lynne
05-31-2008, 02:25 PM
So basically, given the postid, you want to find out how many posts are in the thread that contains that postid?
superjeff
05-31-2008, 03:30 PM
No.. this is to easy :)
given the postid, i want to find out the postcount of the postid.
Thanks
Lynne
05-31-2008, 05:18 PM
OK, I think I see. Your post above me is postid 1537117 and it has a postcount of 5 in this thread. Writing the query really depends on where you want to use this information because obviously it is already available to you in this thread.
superjeff
06-01-2008, 07:18 AM
The only usefull variable cached are the postid and the threadid
Marco van Herwaarden
06-01-2008, 08:54 AM
You would need to count the number of posts in the thread that have a dateline <= to the post you are looking for.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.