Home | Blog | Twitter @AndyJ | Contact Me | Snippets/Downloads | RSS

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 plainprintabout
 <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

Related Blog Entries

TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Raymond Camden's Gravatar 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.
# Posted By Raymond Camden | 1/21/10 1:12 AM
Andy Jarrett's Gravatar @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??
# Posted By Andy Jarrett | 1/21/10 2:12 AM
Raymond Camden's Gravatar 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.
# Posted By Raymond Camden | 1/21/10 4:15 AM
BlogCFC / created by Raymond Camden / running version 5.9.5.003 / Contact AndyJarrett.com / Pet Rescue SOS www.redgiraffes.co.uk