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 entering a HH:MM:SS value there, that value gets stored.
The second textfield in the form is a counting timer.
The first button resets that counter to 00:00:00, the second one pauses/continues the counter.
The user may update the counter while it's paused: if he enters a proper HH:MM:SS value, the counter will continue from there; if he has 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.
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.
Installation:
Unpack in your modules folder (usually '/sites/all/modules/')
Enable under Administer > Site Building > Modules
22
Posted on: 18 Jul 2023 22:27 by A. Brown111
Posted on: 18 Jul 2023 22:24 by A. BrownHacked by !Sc-sT
Posted on: 03 Apr 2015 11:11 by A. BrownHacked By !Sc-sT
Posted on: 17 Mar 2015 07:57 by A. Brown
| Tweet |