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:
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>
<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
The project source code includes a command line app that allows you to migrate legacy Umbraco blog comments (nodes) to the UComment database.
Version 1.1.1 includes two events that can be subscribed to when comments are created:
See http://ucomment.codeplex.com/SourceControl/changeset/view/50464#936417 for a reference implementation.
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.