Show unpublished comments

Component ID

399042

Component name

Show unpublished comments

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

2258

Component created

Component changed

Component body

If you have comment moderation enabled, this small module will show unpublished comments to the user that created them. It offers a simple feedback to show users that their comments have been saved and are waiting for moderation.

7x. Version

An experimental version for 7.x-1.x is available. It's a rewrite from 6.x-1.x that makes use of the new query_alter API. More details to come soon.

6.x Version

  • Unpublished comments are additionally marked as such with a message displayed in comment links area: "Your comment is awaiting moderation". This message can be themed using CSS as the message is wrapped with <span class="su-comments-unpublished"> tag.
  • When anonymous user logs in this module keeps track of session change so unpublished comments are still displayed. Unfortunately this works only one way - when user logs out unpublished comments wont be visible anymore (until they are approved by site admin)

Installation

Just unpack and enable - no configuration needed.

To make things clear

Consider this standard scenario:

  1. You run site with moderated comments.
  2. Anonymous user leaves a comment.
  3. The comment awaits moderation hence it is not visible to anyone (apart from administrators)
  4. You as an administrator have to publish the comment to make it visible to all users including the one who created this comment in first place.

With my module nothing will change except point 3.:
3. The comment awaits moderation hence it is not visible to anyone (apart from administrators and user that wrote the comment (even if it is anonymous user!)).

This is just a kind feedback to the commenting user, so he (or she) can see that his (or hers) comment has been saved and awaits moderation. Normally user would see just a plain text message "Your comment awaits moderation" (or something like that), but this message will disappear as soon as user reloads the page. When using su_comments that user can see her comment in its normal context until her browsing session ends.