Comment Moderation Notification (11 posts)

  1. hesed2
    Posted 10 years ago #

    Is there a way to let people know when their comments have been submitted for moderation? It would be nice if, when this happens, they were redirected to a page that said something like "Your comment has been submitted for moderation and will be posted soon, please don't resubmit your comment".

    Since you can elect be emailed when a comment needs to be moderated, there must be some way to do this, but I have not idea how to go about it. Any ideas?

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    I have this inside <head> and I know it did work, but as what I write doesn't get moderated, and Spam-Karma takes care of the rest of business ......

    <?php if ($_GET['moderated'] === 'true') { ?>
    <script type="text/javascript"><!--
    window.onload= function(){
    alert ("You comment was successfully processed!nnHowever, it has been placed into moderation.nnPlease be patient and do not resubmit your comment.");
    <?php } ?>

  3. Mark (podz)
    Support Maven
    Posted 10 years ago #

    That has processed incorrectly.


  4. hesed2
    Posted 10 years ago #

    Thanks for the response...So just putting that javascript in the header of my index.php file (or is it the comments-popup.php) should do the trick?

  5. hesed2
    Posted 10 years ago #


  6. holographic
    Posted 10 years ago #

    I used that bit of javascript with my 1.2 - I seem to remember you also had to edit wp-comments-post.php so that moderated=true was added to the url though...

    anyway, with 1.5 I now have this bit of code in the comments.php file:

    <?php if ($comment->comment_approved == '0') : ?>
    <em>Your comment is awaiting moderation.</em>
    <?php endif; ?>

    pinched straight from the default Kubrick comments.php file ;)

  7. hesed2
    Posted 10 years ago #

    Hmmm, that didn't quite work. I just put the comment.php file from Kubrick 1.5 into my theme, the posted a comment using a bugus email address so it would get moderated, this is what I got:

    test Says: Your comment is awaiting moderation.
    March 3rd, 2005 at 11:53 pm

    test again

    It posted the comment and the warning!

  8. hesed2
    Posted 10 years ago #

    If you post a two comments too quickly (like within 15 seconds) you get a message telling you to wait a couple seconds, can anyone tell me where that is, maybe I could adabt something from that.

  9. Hesed, sorry I didn't get here sooner. This is what you're looking for:


    (FYI, v1.3 = v1.5 for this hack)

  10. hesed2
    Posted 10 years ago #

    Thanks for the link macmanx...

    I'm using popup comments and have just figured out how to get it to reload the comment page when a comment is posted, but to do that I had to replace $location = get_permalink($comment_post_ID); with something else. So I'm not sure how to make both of these hacks work together. Any ideas?

  11. hesed2
    Posted 10 years ago #

    Anyone have any idea?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.