Announcement

Collapse
No announcement yet.

In "newreply_post_complete", how can I get the post number for the given thread?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
    Console Racing Review

  • #2
    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.`

    Comment


    • #3
      Yeah, I actually found it in the newreply_post_complete hook as "$threadinfo['replycount']".
      Console Racing Review

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X