The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#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.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|