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.