Not signed in (Sign In)

Categories

Vanilla 1.1.5 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.
  1.  # 1
    Auto close discussion after an expiration date.



    Read the documentation very carefully.

    First before you do anything. Download, install and enable jQuery ext

    Now download, extract and copy this extension in your extension Folder

    Enable Discussion Expiration. refresh page
    You will see a new Heading under "Extension Options" called Discussion Expiration
    Click on it and select the Categories you want the Discussion to expire.
    Picture 2

    Just because you have the ability to choose all the categories doesn't mean you have to. Think long and hard about which categories should have this capability. If you have a category about Events, then this will be perfect for it.
    There is a permission you can set that will allow members of a particular role to expire all discussion in any categories. This is for Moderators and admins. Set the permission in Roles & Permissions page

    When you create a new Discussion and select the appropriate category, you will see a new date field appear.
    Picture 2

    Use the included Date Picker to pick an expiration date.
    Picture 3

    Once the expiration date has passed the Discussion will be automatically closed.
    The discussion isn't deleted, hence it can still be searched.


    Support this extension


  2.  # 2
    Lookin good!
    •  
      CommentAuthorVaz
    • CommentTimeMay 22nd 2007
     # 3
    Can you please tell me what the 'expiration' actually is? Does the discussion get closed or deleted? Thanks.
  3.  # 4
    closed.
    i should mention this
    • CommentAuthorjeffk
    • CommentTimeMay 25th 2007
     # 5
    I love it man! Thanks for stepping up to the request.
    • CommentAuthorjeffk
    • CommentTimeMay 25th 2007
     # 6
    Help! This version totally stopped working. It does not appear when I select the specific category from the drop down (when it has been enabled). The Expiry field also appears on all categories when no categories are chosen.
  4.  # 7
    try loggin in as admin.
    let me know what happens.
    seems to be working on my comp

    in Line 84 of default.php I'm using this
    if ($Context->Session->User->RoleID != 4 ) { //User is not admin
    remove it if u want the old behaviour back.
    • CommentAuthorjeffk
    • CommentTimeMay 25th 2007
     # 8
    I can log in as admin and set all the settings and I see it for all cats being an admin.

    Its just acting REALLY odd. I am not even getting the calendar to pop. It wont appear like it used to when I select a category its active on. just weird.

    I will try on a test machine tonight. It may be something bad with jquery or something.
  5.  # 9
    if ur the admin then the appearing disappearing is disabled. so u can expire all discussions
    If ur not the admin then the appearing disappearing act is done.
  6.  # 10
    Schizo how come you just dont set up a permission for this extension to check by instead of seeing if the role id is 4? That's a pretty big issue if someone has their roles set up differently and permissions are so simple to create in vanilla..
  7.  # 11
    ok done. the admin can select the role that should not have the category restrictions.
  8.  # 12
    What do you mean? Just set up a vanilla permission so that admins can choose which roles have the permission to expire discussions in the same way you can choose what other stuff Roles can do.
  9.  # 13
    Uploaded version 1.0.2 of Discussion Expiration.
  10.  # 14
    Minisweeper I'll look into how to do that.
  11.  # 15
    OK I'll do that right now.
    have to fix the blog extension to use $Context->Configuration[$PermissionKey] as well
  12.  # 16
    Uploaded version 1.0.3 of Discussion Expiration.
    •  
      CommentAuthorhenson
    • CommentTimeJun 4th 2007
     # 17
    Why let the expiration date follow the discussion title?Just like

    Update Discussion Expiration 1.0.3 expired @ June 6,2007
    • CommentAuthorjeffk
    • CommentTimeJun 27th 2007
     # 18
    Sorry I got sidetracked setting up a bunch of new hires.

    I have tried installing the current version on a clean install of vanilla and unfortunately, I cannot get it to work properly in IE. It works prefect in Firefox, but in IE, there seems to be a glitch. Lets say I have

    Category A
    Category B
    Category C

    and discussion Exp available on Category C. In IE, when I change it to C, it does not appear (it does in firefox). The only way to get it to work is by having all Categories enabled and thus no display toggle.

    Anyone else experience this?
    • CommentAuthorjeffk
    • CommentTimeJul 17th 2007
     # 19
    Thanks! Its a great extension and I can't wait to implement it
    • CommentAuthorjeffk
    • CommentTimeJul 17th 2007
     # 20
    Oh, if you have a "test" system, you can just uninstall IE7 from add / remove programs. After reboot, it will revert back to 6
    • CommentAuthorjstubbs
    • CommentTimeAug 4th 2007
     # 21
    I don't get the date picker showing - using MAMP on localhost, so maybe its because of that...

    Is it possible to get a list of the closed discussions, then have the option to delete them?
    • CommentAuthorjeffk
    • CommentTimeAug 7th 2007
     # 22
    Are you trying in it IE? If so there is a bug with the javascript. Try it in Firefox. If it works, your setup is fine.

    I have let MySchizoBuddy know and he is looking into it.
    • CommentAuthorjstubbs
    • CommentTimeAug 7th 2007
     # 23
    Hi, thanks for the reply. I use Safari on OSX with MAMP as a localhost.

    The date picker does not display in FF either - I assumed it might be the relative paths or something like that, but in FF, Firebug gives this error:

    $(".date-pick") has no properties
    [Break on this error] $(".date-pick").datePicker();
    • CommentAuthorjeffk
    • CommentTimeAug 7th 2007
     # 24
    Did you install AND enable jquery? Is it the latest version? It needs it to run and that may be why you are getting that error.

    Outside of that, I don't know. May be a conflict with another extension or some other bug that is specific to safari.
    • CommentAuthorjstubbs
    • CommentTimeAug 7th 2007 edited
     # 25
    JQuery 1.1.6 is what I have - and yes, its enabled. I have JQThickBox too and that works fine, so I don't think its jQuery.

    Don't know about a conflict with another extension - but its not just Safari, the date picker does not show in Firefox either.

    Edit: I have this issue too with another extension:
    Discussion Tags # 20

    Maybe its related?
  13.  # 26
    Was jQuery enabled before the other extensions?
    • CommentAuthorjstubbs
    • CommentTimeAug 9th 2007 edited
     # 27
    Yes, it was. I shall remove jQuery and try again, then report back..

    Edit: No change after removing, then replacing jQuery (and enabling it first)
    • CommentAuthorjeffk
    • CommentTimeSep 9th 2007 edited
     # 28
    .
    • CommentAuthorjeffk
    • CommentTimeSep 28th 2007
     # 29
    Bump...
  14.  # 30
    me looking into it.
    • CommentAuthorjeffk
    • CommentTimeSep 29th 2007
     # 31
    Great! thanks
    • CommentAuthoralex9
    • CommentTimeOct 1st 2007
     # 32
    Is it possible to have the discussions deleted upon expiry?
  15.  # 33
    yes it is.
    Any one knows of javascript debugging tools for IE6?
    • CommentAuthoralex9
    • CommentTimeOct 2nd 2007
     # 34
    Oh, thanks!
  16.  # 35
    open default.php.
    change line 88 to this
    $jde(".date-pick").datePicker();


    anything else broken or not.
    • CommentAuthorjeffk
    • CommentTimeOct 4th 2007
     # 36
    I have adjusted that line, logged out, deleted cache, and re-logged in and no difference.
  17.  # 37
    ok Line 110
    change it to this
    $jde(document).ready(function(){
    $jde("select.CategorySelect").change(function(){Toggle();});
    Toggle();
    });
  18.  # 38
    Uploaded version 1.0.4 of Discussion Expiration.
    • CommentAuthoralex9
    • CommentTimeOct 11th 2007 edited
     # 39
    Okay, I've installed the latest jQuery ext - installed it prior to this install - and still, all I see is this:
    ===============
    Below is a list of open discussions with their respective expiration dates.
    There are no "open" discussions pending expiration.
    ===============

    "open" is underlined.
  19.  # 40
    well thats because u might not have any discussions pending expiration
    have u tried to expire a discussion
    • CommentAuthoralex9
    • CommentTimeOct 13th 2007
     # 41
    Oh.. okay, I see it now. Only the person who starts a discussion, can set the expiration date. Is there any way for the admins to do this category-wide?

    Also, how can I modify the script to delete instead of close?

    Thanks btw for the reply..
  20.  # 42
    Look at Roles and permissions for admin
    their should be a new permission "Discussion expiration not restricted to categories"
    check that and admins will be able to expire any discussion regardless of category
    • CommentAuthoralex9
    • CommentTimeOct 15th 2007
     # 43
    Thanks again.. okay, I have checked that permission.. but how do I (admin) go about expiring a discussion category-wide?

    I mean, as it is, an admin could edit any discussion and apply an expiration date... but is there a way to apply the expiration to an entire category with one click?
  21.  # 44
    Ahh no there is no way to expire an entire category with one click. although it can be easily done via a simple database query
    • CommentAuthoralex9
    • CommentTimeOct 15th 2007
     # 45
    Okay, thanks.

    Can I modify the script to delete instead of close?
  22.  # 46
    you can delete the discussion manually using Comment removal extension
    Auto delete is a really bad idea. it can wipe out out lot of posts from the database because you have to delete the discussion and all associated comments as well. and if their is a mistake you can say goodbye to your entire database. Really bad and high risk.
  23.  # 47
    I can add expiring entire categories feature, if you can tell me how are you going to use it. Why do you need this feature?

    One useful feature would be to add a default expiring of categories.
    For eg. By default expire all new discussions after 30 days of creation if they belong to a specific category
    However, what use will that be? an example scenario will be usefull
    • CommentAuthorjeffk
    • CommentTimeOct 18th 2007 edited
     # 48
    I cannot get this to work. The IE 6 bug is fixed but now it gives me

    A fatal, non-recoverable error has occurred
    Technical information (for support personel):

    Error Message
    An error occurred while creating a new discussion.
    Affected Elements
    DiscussionManager.NewDiscussion();

    The error occurred on or near: Field 'DateExpire' doesn't have a default value

    I have tried on a new install of Vanilla 1.2 and 1.3.

    Did I miss a step?

    Update: this happens when a exp date is included or excluded.
  24.  # 49
    Did the latest update cause this problem or you never got it working anyway
    you can try line 24 in default.php to this
    $query = "ALTER TABLE `".$Configuration['DATABASE_TABLE_PREFIX']."Discussion` ADD `DateExpire` date NOT NULL default '0000-00-00';";


    I doubt that will fix it cause you already have altered the table, can you check your database and check what default values are being entered for DateField
    Btw when does the error actually occur
    • CommentAuthorjeffk
    • CommentTimeOct 22nd 2007
     # 50
    my site is behind a vpn right now. I will set it up on my public server this week....

    I will follow up with more details later this week since I am swamped with work right now.