28 votes

UComment

Important: UComment 1.2 is an update for Umbraco 4.7+ only - see change summary below

Standalone comment component (seperated from blog4umbraco) for umbraco, easily add comment functionality to any umbraco document you wish.

Note: Package is built for .net 4 - You can download the source and build for .net 3.5 if you wish.

Very Important: The Ucomment moderation dashboard control conflicts with the Umbraco 4.7 change password dashboard control. You need to remove the latter for comment moderation to work at present.

Package will install:

  • UComment Form Macro (the ajax form)
  • UComment List Comments Macro (sample xslt that lists comments for a document)
  • Dashboard Comment moderation control
  • UCommentLibrary xslt extension
  • UComment base methods
  • Creates a Comments table

Using the package:

Comment form uses jquery and jquery.validate, so first add these scripts:

<script type="text/javascript" src="/umbraco_client/ui/jquery.js"></script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js"></script>

Also required:

jquery form plugin: http://www.malsup.com/jquery/form/

jquery metadata plugin: http://plugins.jquery.com/project/metadata

Note: In version 1.1 you can just set the RegisterScripts Macro property to true in order to automatically include the scripts.

Afterwards simply add the UComment Form Macro and the UComment List Comments Macro to your template.

<umbraco:Macro Alias="UCommentListComments" runat="server"></umbraco:Macro>
<h3>Leave Comment</h3>
<umbraco:Macro Alias="UCommentForm" runat="server"></umbraco:Macro>

Enabling Spam filtering:

You can enable Akismet spam filtering by setting a valid apiKey in the /umbraco/plugins/UComment/UComment.config file

Comment Migration:

The project source code includes a command line app that allows you to migrate legacy Umbraco blog comments (nodes) to the UComment database.

Comment Events:

Version 1.1.1 includes two events that can be subscribed to when comments are created:

  1. CommentCreated
  2. CommentSpam

See http://ucomment.codeplex.com/SourceControl/changeset/view/50464#936417 for a reference implementation.

1.2 Update

Summary of changes:

- Use 4.7 attributes to configure Xslt and Rest (Base) Extensions.
- Code cleanup and general refactor.
- Moved delete logic to domain object.
- Added comment delete event.

Package owner

Tim Geyssens

Tim Geyssens

Tim has 15373 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Tim Geyssens
  • Created: 13/01/2010
  • Current version 1.2
  • License MIT
  • Downloads on Our: 8.8K

External resources