Comment Timer module provides an easy-to-use JS timer for the given content type's nodes, with Views support.

When a comment is to be submitted for a node that has enabled Comment Timer support, two textfields and two buttons will show up below the comment form. The first one is empty: if you enter a HH:MM:SS value there, that value gets stored. The second textfield is a counting timer. The first button resets that counter to 00:00:00, the second one pauses/continues the counter. You may update the counter while it's paused: if you enter a proper HH:MM:SS value, the counter will continue from there; if you have entered something else, the counter will continue from where it was paused.

Timing information is stored both for the comments and the nodes, with Views support for both.

Drupal 6 only

Manipulating timing information is done via hook_comment() and hook_nodeapi() to keep it in sync. A checkbox is provided at the admin interface to add timing information to the comments' text; if it's unchecked, timing information is only available for themers as $comment->comment_timer.

Drupal 7 only

Manipulating timing information is done via the appropriate hook_comment_*() and hook_node_*() functions to keep it in sync. Three checkboxes are provided at the content type edit form:

  • for enabling Comment Timer for the given content type,
  • for displaying (extra) field label on the comment,
  • for displaying (extra) field label on the node.

Dependencies

Drupal core's comment module.

Development is sponsored by KYbest.

Project Information

Downloads