Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • CoolKiwiBloke 12 posts 51 karma points
    Jan 04, 2015 @ 21:09
    CoolKiwiBloke
    0

    Contact Form

    I'm using uCommentsy as a contact form, and ideally each comment would be deleted once its been emailed out. Is that possible?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Jan 05, 2015 @ 04:35
    Nicholas Westby
    0

    You could avoid rendering out the partial that displays the comments. Or comment out the part of the code that lists out the comments.

  • CoolKiwiBloke 12 posts 51 karma points
    Jan 05, 2015 @ 04:37
    CoolKiwiBloke
    0

    Hi Nicholas - sorry I wasn't clear, I was just trying to avoid clogging up the database. They aren't being displayed anywhere. Thanks

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Jan 05, 2015 @ 04:40
    Nicholas Westby
    0

    You could create a scheduled task that deletes the comments periodically: http://our.umbraco.org/wiki/install-and-setup/scheduled-tasks

    A scheduled task in Umbraco is just a URL that Umbraco periodically visits. WHen you create that page, you can have the code look for all comment nodes and delete them (uComments creates comments as Umbraco content nodes).

Please Sign in or register to post replies

Write your reply to:

Draft