John Hesch

Echoing my thoughts and interests

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.

Comments are closed.

Graytone | Design: Tenant Report

Welcome to johnhesch.com, a blog about my life, projects, and interests. I have been blogging for over 10 years in one form or another.