1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Truncate Forum Cron Entry [Deleted]

Discussion in 'Add-on Releases' started by Jon W, Jun 23, 2012.

  1. Jon W

    Jon W Well-Known Member

    Waindigo submitted a new resource:

    Truncate Forum Cron Entry (version 1.0.0) - Adds a cron entry to delete all threads in specified forums at a given time.

    Read more about this resource...
  2. shawn

    shawn Well-Known Member

    I'm a little confused by the description. It deletes all threads when it runs? Or it deletes all threads that are a certain age?
  3. Jon W

    Jon W Well-Known Member

    Deletes all threads. Wouldn't be too much work to make it only delete threads of a certain age if you are interested in contributing towards that.
  4. shawn

    shawn Well-Known Member

    I was actually working on it last night. Haven't determined for sure that my method for determining the cutoff date is going to work, though.
  5. Jon W

    Jon W Well-Known Member

    What method is that?
  6. shawn

    shawn Well-Known Member

    I found this last night:

    And it was pretty informative, but I still had some trouble figuring out what I needed to feed into the xF methods to get the results I want.

    I was going to try $cutoffDate = strtotime('-' . $options->metExpirationInterval . ' day'); and then use that in the conditional array for getThreads to compare against last_post_date.

    Right now, I'm mainly interested in moving threads that haven't had a reply in X days, but deleting them and then moving all the deleted threads would work equally well.
  7. Jon W

    Jon W Well-Known Member

    Sounds good to me.

    The conditional you will need to add to the array is:
    last_post_date => array("<"$cutoffDate)
    Do take a look at my add-on though if deleting is what you want, because it looks like my method for deleting is very similar to that of Fuhrmann's for moving. You should just be able to copy and paste the bits that you need.
  8. Sukrams

    Sukrams Member

    I just choosed only one noode, but it deleted nearly my whole forum... Why could this happen?
  9. Jon W

    Jon W Well-Known Member

  10. X_Plaza

    X_Plaza Active Member

    This addons can't delete big forum. I have a forum with 100.000 posts -> Overload :(
  11. Jon W

    Jon W Well-Known Member

    This add-on was intended for emptying a small forum at a specific time every night. I doubt that even the busiest forums get 100,000 posts in one forum on their busiest day.

    It looks to me that, as a fellow developer, you are just looking for an excuse to give a fellow developer a bad review. Bad form!
  12. Jon W

    Jon W Well-Known Member

    This resource has been removed and is no longer available for download.

Share This Page