The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
The value is not actually calculated at that point. It would require fetching all the posts in the thread and counting it.
|
|
#3
|
|||
|
|||
|
Yeah, I actually found it in the newreply_post_complete hook as "$threadinfo['replycount']".
|
|
#4
|
||||
|
||||
|
"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.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|