PDA

View Full Version : In "newreply_post_complete", how can I get the post number for the given thread?



Chris Stewart
Thu 22nd Jan '09, 9:37pm
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?

SNN
Fri 23rd Jan '09, 12:06am
Possibly the same way that it is referenced in a post?
$post['postid']

It would appear so from the code in the file `newreply.php.`

Chris Stewart
Fri 23rd Jan '09, 9:05am
Yeah, I actually found it in the newreply_post_complete hook as "$threadinfo['replycount']".