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.
Auto Close
Eliminate "discussion resurrection"! A simple extension that prevents users from adding new comments to old discussions, Auto Close removes the comment box from discussions that have remained inactive for a set amount of time.
Includes the option of "archiving" (ie, hide) old & inactive discussions, as well as exempting Stickies, Whispers, and specific Categories.
Includes the option of "archiving" (ie, hide) old & inactive discussions, as well as exempting Stickies, Whispers, and specific Categories.
0
Comments
Now this is what I call "cool" !
[ln ~16] $Configuration['AutoClose_CategoryID'] = array('1', '2', '3'); // Etc.
Then, change the if-condition at line 47 as follows:
[ln 47] if (($CommentGrid->Discussion->DateLastActive + (60 * 60 * 24 * $CommentGrid->Context->Configuration['AutoClose_Length'])) < time() && !($CommentGrid->Context->Configuration['AutoClose_OpenStickies'] && $CommentGrid->Discussion->Sticky) && in_array($CommentGrid->Discussion->CategoryID, $CommentGrid->Context->Configuration['AutoClose_CategoryID'])) {
Yes, posting to old discussions is permissions-based. Simply adding a new comment to an inactive discussion will reset its status and open it back up. That would take a lot of work, more than what the extension is right now! I don't think I want to mess with that, I like the extension nice and simple. On my forum, if someone wants to continue an inactive discussion, I just tell them to start a new one with a link to the old one.I realized there is a slight "quirk" with (non-whispered) discussions that contain whispered comments. If a discussion contains a whisper as its final comment, Auto Close will determine the inactive period differently for the author & recipient of the whisper as it does for everyone else. In effect, the discussion will remain "open" longer for those two users than it does for users who can't see the whisper.
It's a pretty minor thing, but it's worth noting in case a auto-closed discussion suddenly re-opens.
1) I assume you mean that posts disappear, rather than being deleted from the database, right? The posts re-appear if you disable the extension, right? Do the posts re-appear if you disable the "Archive" option?
2) I have to ask the simple questions first---you're tried clicking the "Create Menu Tab" option (the option is off by default), right? You're saying that when you select that option, the Panel link disappears but no tab shows up? Does the Panel link appear if you re-click the "Add Discussion Filter" option?
3) See above.
4) Now this I'm not sure about, there's very little difference between new & old discussions. What versions of Vanilla and PHP are you using? What are the specific errors you're getting?
edit: if I put 1 day then it wont't list in archiv. why? If I change my computer time, possible?
Vanilla 1.1.8
PHP 5.2.9