Step 1
Download the attachment and unzip recentComments.cfm into blog_root/includes/pods.
Step 2
Edit blog_root/tags/layout.cfm to add the Recent Comments pod among the other pods in the sidebar menu.
<cfinclude template="../includes/pods/recentComments.cfm">
Step 3
Edit blog_root/addComment.cfm to add the refresh logic for Recent Comments pod.
Find this:
<cfif isDefined("url.delete") and isUserInRole("admin")>
<cfset application.blog.deleteComment(url.delete)>
<cfset comments = application.blog.getComments(url.id)>
</cfif>
Change to this:
<cfif isDefined("url.delete") and isUserInRole("admin")>
<cfset application.blog.deleteComment(url.delete)>
<!--- reset the comments pod cache upon deleting comment --->
<cfmodule
template="tags/scopecache.cfm"
cachename="pod_recentcomments"
scope="application"
clear="true"/>
<cfset comments = application.blog.getComments(url.id)>
</cfif>
Step 4
Save files and browse to test. From now on, every chanage you make to the pod will require a blog refresh with the ?reinit=1 parameter.
Step 5
Edit the number of comments to display and the amount of text for each comment, found in recentComments.cfm. Edits to pod content require that you refresh the blog using the ?reinit=1 parameter while logged in.
<cfscript>
maxRecentComments = 3;
maxRecentCommentLen = 120;
</cfscript>