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

Auto Close/Move/Delete Thread Inactivity [Deleted]

Discussion in 'Add-on Releases' started by Brivium, Jan 13, 2013.

Thread Status:
Not open for further replies.
  1. Brivium

    Brivium Well-Known Member

    ******* submitted a new resource:

    Auto Close/Move/Delete Thread Inactivity (version 1.0.0) - This hack can close/move/delete the zero post threads that was created before X days.

    Read more about this resource...
  2. ArnyVee

    ArnyVee Well-Known Member

    Thanks for sharing *******! Definitely a useful add-on :)
  3. 0xym0r0n

    0xym0r0n Well-Known Member

    I'm sorry I'm just skimming (and working on 4 hours of sleep) but I assume I can set this to individual forums? Not all forums?
    Kintaro and danswano like this.
  4. LondonDragon

    LondonDragon Active Member

    Looks like its for all forums by default :( would be great if you could apply it on a per forum basis!
  5. ArnyVee

    ArnyVee Well-Known Member

    ^ What they said, +1
  6. craigiri

    craigiri Well-Known Member

    I'm confused by the title!

    Can this close even large threads that have not seen a NEW post in "X" months?
  7. 0xym0r0n

    0xym0r0n Well-Known Member

    I suppose I should be a guinea pig and try this out...
    ArnyVee likes this.
  8. Jeff Fuqua

    Jeff Fuqua Well-Known Member

    This seems to be working well for me as it's locking old threads. However, I'm getting some Server Error Logs messages:

    ErrorException: Undefined index: enabled - library/*******/ThreadInactivity/CronEntry/Action.php:48
  9. craigiri

    craigiri Well-Known Member


    I have two questions:

    1. Would you consider adding the ability to select which forums you want to lock or delete threads?

    2. If I manually unlock a thread which has been locked, would this add-on then lock it again? If so, would it do it right away (if no posts are added)?

    It would be nice if threads could be exempted from it - or, unlocked after your add-on locked them, and have them stay that way!

    I would gladly pay for this add-on!
  10. Slavik

    Slavik XenForo Moderator Staff Member

    Nice idea, I think it needs some more options though as others have said.

    1) Select per node
    2) Include threads with replies which have had inactivity
    gldtn likes this.
  11. craigiri

    craigiri Well-Known Member

    I installed - it installed fine, then I tried running the cron with it set to long ago (1000 days)....to see if it worked. I got server errors as below....

    XenForo_Application::handlePhpError() in *******/ThreadInactivity/CronEntry/Action.php at line 48
    call_user_func() in XenForo/Model/Cron.php at line 356
    XenForo_Model_Cron->runEntry() in XenForo/ControllerAdmin/Cron.php at line 204
    XenForo_ControllerAdmin_Cron->actionRun() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /path/in/server/talk/admin.php at line 13
    ErrorException: Undefined index: enabled - library/*******/ThreadInactivity/CronEntry/Action.php:48
    Generated By: webbie, 1 minute ago
    Stack Trace
    #0 /path/in/server/talk/library/*******/ThreadInactivity/CronEntry/Action.php(48): XenForo_Application::handlePhpError(Array)
    #1 [internal function]: *******_ThreadInactivity_CronEntry_Action::runDaily(Array, Array)
    #2 /path/in/server/talk/library/XenForo/Model/Cron.php(356): call_user_func(Array)
    #3 /path/in/server/talk/library/XenForo/ControllerAdmin/Cron.php(204): XenForo_Model_Cron->runEntry()
    #4 /path/in/server/talk/library/XenForo/FrontController.php(310): XenForo_ControllerAdmin_Cron->actionRun(Object(XenForo_RouteMatch))
    #5 /path/in/server/talk/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch()
    #6 /path/in/server/talk/admin.php(13): XenForo_FrontController->run()
    #7 {main}
    Request State
    array(3) {
      ["url"] => string(134) "http://www.hearth.com/talk/admin.php?cron/threadInactivityDaily/run&_xfToken=2%2C1359239468%2Ca6ff40e3eb6bb6224327d8b0d65e7d52556fafdb"
      ["_GET"] => array(2) {
        ["cron/threadInactivityDaily/run"] => string(0) ""
        ["_xfToken"] => string(53) "2,1359239468,a6ff40e3eb6bb6224327d8b0d65e7d52556fafdb"
      ["_POST"] => array(0) {
  12. Kerby

    Kerby Active Member

    How about a new feature: "auto-prefix" threads after x days with a selectable prefix?

    in example in my situation it would be "done" and only in forum/node "support".
    Miz and Kintaro like this.
  13. gldtn

    gldtn Well-Known Member

    +1 was about to suggest this.. I have a forum on my board which my mods now have to watch the status of the tread and change it manually.. would be nice to be able to auto change to a set prefix after X amount of days on a per forum basis!
    Miz likes this.
  14. Kintaro

    Kintaro Well-Known Member

    do you confirm that can't be possible to select nodes? :(
  15. ggace

    ggace Active Member

    Suggestions or support dead for this modification? Haven't seen a response from the author. I too am really looking for Slaviks suggestion:

    I am willing to donate to the cause if need be.
  16. Brivium

    Brivium Well-Known Member

    @all: We will have an upgrade version soon. Please wait
    TsinJu, Rudy and ggace like this.
  17. Daniel 'RTRD'

    Daniel 'RTRD' Well-Known Member

    Got this on XenForo 1.2 when running the Cron:
    Can you make it work on 1.2? :)
  18. Wesker

    Wesker Well-Known Member

    Keep getting this error in 1.2

    invalid call_back method
  19. Brivium

    Brivium Well-Known Member

  20. Wesker

    Wesker Well-Known Member

    Still getting the error

    Please enter a valid callback method (*******_ThreadInactivity_CronEntry_Action::runDaily).
Thread Status:
Not open for further replies.

Share This Page