![]() |
In "newreply_post_complete", how can I get the post number for the given thread?
I'd like to grab the post number of the new post that has just been created. Anyone know what variable I can use to grab it? I've tried:
$post['postcount'] $postcount $threadinfo['postcount'] $postcount_query['count'] And they each return nothing. Thoughts? |
The value is not actually calculated at that point. It would require fetching all the posts in the thread and counting it.
|
Yeah, I actually found it in the newreply_post_complete hook as "$threadinfo['replycount']".
|
"replycount" is the total number of replies in the thread. But I guess that will work in your situation as it is the latest reply.
|
All times are GMT. The time now is 01:03 PM. |
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:
|