Comment Moderation Notification

Posted December 23, 2004

Tonight I received a comment to one of my posts and it was placed in moderation probably because it was just a few words and a link. WordPress thought is was Spam. One of the problems with WordPress is that the commenter is not notified if their comment is held in moderation for one reason or another.

I found a hack that creates a JavaScript popup if the comment goes into moderation, alerting the commenter that their comment needs to wait for approval.

It's a pretty simple hack. Replace some code in wp-comments-post.php and add some JavaScript to index.php. At first it didn't work for me because the instruction indicate that the JavaScript needs to be added into the head section of index.php. In my install, WordPress 1.3, the JavaScript needed to be added after

PHP:

  1. <?php wp_head(); ?>

and within the head section of index.php.

Categories

WordPress

 

Made with WordPress and the Semiologic CMS | Design by Denis de Bernardy