Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Disable edit if comments is older than .. minutes.

edited April 2009 in Vanilla 1.0 Help
Hello, I'm looking for an addons that disable the possibility to edit a comment by his original poster if the comment date is older than XX minutes. Thanks !

Comments

  • Yeah, Vanilla is in dire need of restrictions on users editing their own posts.
  • THIS screams for a plugin ;-)

    Are you guys talking about Vanilla 1 or Vanilla 2?
  • +1 for this addon. Though I could care less for Vanilla 1, but Vanilla 2 is a must.
  • TiGR-
    Edit Timeout would be great if two things were changed:

    1 - The obvious. Users can just bypass and go straight to the URL to edit a post even if there is no link there.

    2 - Setting the timeout shouldn't be such a cumbersome drop down menu. Why not just a text field and a drop down with these options: Seconds, Minutes, Days, Weeks, Months, Years. This way, I can say in the plug-in options, "Stop users from editing their own posts after 90 seconds," for instance.

    But, really, since I can just go into the plugin source itself and modify #2, #1 is the more pressing issue.
  • @melatonin, new version uploaded, forms are no longer accessible via direct urls.
  • edited July 2010
    @TiGR, you're a savior!
    To go one step further, it'd be great if there was an option in the dropdown for "immediately" to prevent editing at all.
  • MarkMark Vanilla Staff
    @TIGR - I tried this plugin out, and I found that it was causing some other plugin options to be removed due to the way you preg_replaced the edit button. I started to work on your plugin to make it work in a different way, and I realized that it would just be a lot less code to put this in the core as an option. So, I added a single configuration setting that handles it. You can see the changes and commit here:

    http://github.com/vanillaforums/Garden/commit/5decbe370cbf8357648d30b401f9a72f49963303
  • TiGRTiGR
    edited July 2010
    @Mark, I am always on top of Git, so I've noticed your latest commits ;)

    This is good solution. However, the only thing could be changed, IMHO, is how user selects the timeout. Having timeout set in seconds is not very user-friendly, moreover, having timout less that 1 minute is nonsense, since in most cases users won't be able to finish edit within this time.

    I suggest making it in minutes or doing as @melatonin suggested.
Sign In or Register to comment.