Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Changing BlogCFC's comment approval

One little thing thats bugged me with BlogCFC with moderated comments is the need to go from List > View Comment < back to list to approve. Silly I know but still ... So I've added the following on the comment.cfm page in the admin section

view plain print about
1<input type="button" name="approve" value="Approve" onclick="location.href='#application.rooturl#/admin/moderate.cfm?approve=#comment.id#'" />

All this does is add the button "Approve" to the view comment page to smooth out the flow of the process

Comments Comments (3) | Print Print | Send Send | 1423 Views

Related Blog Entries
(Comment Moderation is enabled. Your comment will not appear until approved.)
Did you put this on comments.cfm? I think you mean comment.cfm. My problem with this is - what if the user made a slight edit to the text, then hit your button. The edit would be lost.
@Ray. Hmmmm good point. I suppose Ive never made a tweek to a users comment. Maybe using using Js(jquery) we could just hide the Save button unless the text box is edited in which case we hide the Approve button and just display Save??
I don't know. Maybe the table view of comments could have a way to view the text inline - so you could approve it there.
BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .