Video comments in Drupal

I had some time left over today and I spent it porting David Meade's Wordpress plugin to Drupal. It has almost identical features: A couple of extra fields are added to comment forms allowing each commenter to link to a video and a video thumbnail. Those videos are then played inline in the comment thread if the Embed QuickTime Drupal module is turned on.

Installation notes

  • Download and enable the module
  • Go to access control and give yourself access to "administer video comments" and give your commenters "post video comments"
  • Edit the content type(s) you wish to enable video comments for and enable them
  • Download the Drupal 5 version of Embed QuickTime module and install if you want videos to play inline

You get two extra values on the comment object to use in your template. If you're using Embed QuickTime you would add the following to comment.tpl.php

<?php if ($comment->video && $comment->video_image): ?>
  <div class="hvlog">
    <a href="<?php print $comment->video; ?>" rel="enclosure">
      <img src="<?php print $comment->video_image; ?>">
    </a>
  </div>
<?php endif; ?>

This is not the first time I've dabbled in video comments. This post from August 2004 accepted video comments. That was around the time I wrote long posts about how to create a distributed video commenting system.

3 comments

This is exactly what I need, but for drupal 6.

A port is very easy. I have uploaded a Drupal 6 version of the module now. See above.

which one is easy? drupal5 or drupal 6 If you appreciate help. thanks

Add your comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p>
  • Lines and paragraphs break automatically.

Recent photos

About the blog

This is the personal website of Andreas Haugstrup Pedersen: commentary on media, communi­cation, culture and technology. Read more»