WordPress.org

Ready to get started?Download WordPress

Forums

Disqus Comment System
Please add-> wp_notify_postauthor($comment_id) (7 posts)

  1. gleenk
    Member
    Posted 1 year ago #

    Could you please add this in your core next time? as descrived here: http://wpdailybits.com/blog/notify-post-author-for-new-comment-disqus/45

    From:
    $comment_id = $commentdata['comment_ID'];
    update_comment_meta($comment_id, 'dsq_parent_post_id', $comment->parent_post);
    update_comment_meta($comment_id, 'dsq_post_id', $comment->id);

    To:
    $comment_id = $commentdata['comment_ID'];
    update_comment_meta($comment_id, 'dsq_parent_post_id', $comment->parent_post);
    update_comment_meta($comment_id, 'dsq_post_id', $comment->id);
    wp_notify_postauthor($comment_id);

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. roadrashtx
    Member
    Posted 7 months ago #

    Did this ever get resolved or is this still a manual fix? Seems like disqus would have already had this option in the plugin.

  3. timocouckuyt
    Member
    Posted 7 months ago #

    Would love to know this too... A much requested feature.

  4. timocouckuyt
    Member
    Posted 7 months ago #

    One possible solution could be to hook into the "wp_insert_comment" action and use the wp_notify_postauthor function when the 'comment_agent' data variable contains the Disqus string :-)

  5. markguyver
    Member
    Posted 5 months ago #

    I'm interested to know how to resolve this issue also.

    I'm against the solution provided at the following link because it requires modification of the Disqus plug-in code which interferes with updating the Disqus plug-in.

    http://wpdailybits.com/blog/notify-post-author-for-new-comment-disqus/45

    I found another solution on GitHub that is not ideal either (linked below). The problem is that it requires exposing an endpoint (the php/sendnotification.php file) to receive a callback whenever a comment is posted.

    https://github.com/disqus/DISQUS-API-Recipes/tree/master/notifications

    Ideally the Disqus plug-in should be able to check the WordPress comment notification setting and then use the wp_notify_postauthor( $comment_id ); function if notifications are enabled.

  6. LD Jackson
    Member
    Posted 5 months ago #

    I don't mind using the solution provided at the link, but with one caveat. When I make the change, I start receiving two different emails notifying me of comments on my blog. One comes from Disqus and the other comes from the blog itself. I have changed the discussion settings to prevent that, but it doesn't seem to take affect. Still receive two emails.

  7. markguyver
    Member
    Posted 5 months ago #

    One problem with the solution provided at the link is that it won't work for WordPress VIP customers; since VIP provides the plugin as part of their plugins repo, it cannot be modified. I happen to be developing for a site that is hosted by WordPress VIP.

    Also, the duplication of emails makes sense if you are an author on your blog as well as the owner of the Disqus account that is being used. However, if you have multiple authors on your site, the vast majority of people writing will not receive notifications as only the owner of the Disqus account receives those.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic