Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthortimfire
    • CommentTimeMar 31st 2008 edited
     # 1
    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.

    ===============================================
    PREVENTING CONFLICT WITH "GUEST POST" EXTENSION
    ===============================================

    The extension "Guest Post" can potentially bypass Auto Close and allow users to post new comments to old discussions. To prevent this conflict, simply install Auto Close AFTER installing the "Guest Post" extension. If Auto Close has already been installed, install and enable "Guest Post", and then DISABLE and RE-ENABLE Auto Close.

    ===============
    VERSION HISTORY
    ===============

    Version 1.3
    - Changed name of style sheet from "AutoClose.style.css" to "AutoClose.css".
    - Added "AutoCloseConfig" class.
    - Fixed issue with trying to add Menu tab on sign in/out page.
    - Changed discussion list query to show archived discussions on (discussion-)filtered views.
    - Fixed page title on "Archive" & "Auto Close Settings" pages.
    - Added default tab position values & "Archived Discussions" section to readme.
    - Tweaked code.

    Version 1.2
    - Added interface for changing extension settings.
    - Added "archiving" option.
    - Added "Customizing the Extension" to readme.

    Version 1.1
    - Added feature to exempt Whispers.
    - Added feature to exempt specific Categories.
    - Added "Using the Extension" to readme.
    - Tweaked code.

    Version 1.0
    - Initial release.
    •  
      CommentAuthorWanderer
    • CommentTimeMar 31st 2008
     # 2
    Brilliant add-on timfire and a very useful note about GuestPost too.

    Now this is what I call "cool" !
    • CommentAuthorfysicsluvr
    • CommentTimeApr 13th 2008
     # 3
    how would I change this to only be active for a certain category (news category)? Also, can the admin re-open a discussion (permission based or not)? And one more thing: Could I allow users to 'petition' to reopen a discussion (more of a request than anything) like "this discussion has been inactive for 28 days and has been closed. Click here to request that it be reopened" And if a certain number of unique users click on it within a certain period, it notifies the admin OR automatically reopens it. (15 users over the course of a year vs. 15 users in 2 hours...)
    • CommentAuthortimfire
    • CommentTimeApr 14th 2008
     # 4
    fysicsluvrhow would I change this to only be active for a certain category (news category)?

    That's easy. First, in the "Manual Settings" section, add an array that contains all the categories you want the extension to work in:

    [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'])) {


    fysicsluvrAlso, can the admin re-open a discussion (permission based or not)?

    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.

    fysicsluvrAnd one more thing: Could I allow users to 'petition' to reopen a discussion (more of a request than anything) like "this discussion has been inactive for 28 days and has been closed. Click here to request that it be reopened" And if a certain number of unique users click on it within a certain period, it notifies the admin OR automatically reopens it. (15 users over the course of a year vs. 15 users in 2 hours...)

    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.
  1.  # 5
    Uploaded version 1.1 of Auto Close.
  2.  # 6
    Uploaded version 1.1 of Auto Close.
  3.  # 7
    Uploaded version 1.1 of Auto Close.
    • CommentAuthortimfire
    • CommentTimeApr 16th 2008
     # 8
    Sorry for the rapid uploads, I had to fix a couple of typos in the readme. In version 1.1, I added the option to exempt Whispered discussions & specific Categories (as fysicsluvr suggested).

    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.
  4.  # 9
    Uploaded version 1.2 of Auto Close.
    • CommentAuthortimfire
    • CommentTimeMay 14th 2008
     # 10
    I added a settings page, so admins no longer need to manually change settings. I also added an "archiving" option to hide old & inactive discussions.
    • CommentAuthorMrKool
    • CommentTimeMay 21st 2008
     # 11
    I installed this extension and getting many errors.
    I m facing following problems
    1.After expiration period the post deleted.
    2. No archiving tab
    3. No way to get back archive posts
    4. If post expires. and somebody arrive from search engine or from link . If give bunch of errors. for eg. If discussion id 3 expires and someone opens from old link or come from seach engine. It will give you pages of errrors
    • CommentAuthortimfire
    • CommentTimeMay 21st 2008
     # 12
    MrKool,

    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?
  5.  # 13
    Uploaded version 1.3 of Auto Close.
    • CommentAuthortimfire
    • CommentTimeMay 28th 2008
     # 14
    Version 1.3 fixes some minor issues I found.
Add your comments
    Username Password
  • Format comments as