• I have WordPress configured to hold all comments for moderation. Unfortunately, I have users trying to make the same comment several times because they aren’t getting any feedback telling them that their submission was successful. Currently what the user sees after submitting a comment is the same thing they would see if they were to just refresh–not ideal. When a user submits a comment, I would like a message to appear at the top of the screen to the effect of “Your comment has been received.” Any help would be appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • What theme do you use? Since 1.5 this feature is automatically there in WordPress.

    Open ‘comments.php’
    Find this line
    <input name="submit" type="submit" tabindex="5" value="<?php _e("Say it!"); ?>" />

    Above that, add this (I’ve included the above for reference)
    <p>
    <blockquote>
    Comment moderation is in use. Please do not submit your comment twice - it will appear shortly
    </blockquote>
    <input name="submit" type="submit" tabindex="5" value="<?php _e("Say it!"); ?>" />
    </p>

    There are other ways too …

    Thread Starter robday

    (@robday)

    Moshu: I’m using a modified version of Dave Shea’s WordPress Default. Since it’s the old default, I suppose it doesn’t take advantage of some of the newer features. I’ll poke around the Kubrick theme and see if I can find an example of what you’re talking about. Any additional direction would be very welcome.

    podz: I already have that sort of a static notice in place, but I would like to display something conditionally–like a “submission successful” message.

    Thanks for your help, folks.

    Dave Shea – that’s the Classic. In Default (aka Kubrick) you’ll find the code in comments.php around line 32 and it’s neighbourhood .

    Thread Starter robday

    (@robday)

    I see that it posts a note just above the comment. What I was wanting was to have a notice appear that the message had been received but only appear right after the comment was submitted.
    I think this will get me started. If I have to I suppose I can just conditionally display my message after checking whether any of the form elements were submitted.
    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Comment received notification’ is closed to new replies.