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.
Discussion Expiration
This discussion has been closed.
Comments
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
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.
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
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.
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
I will follow up with more details later this week since I am swamped with work right now.
Technical information (for support personel):
Error Message
The "DiscussionExpirationForm" class referenced by "DiscussionExpirationForm" does not appear to exist.
Affected Elements
ObjectFactory.NewObject(); "
--------------------
Default.php
--------------------
-------------------------To get the post.php page to display correctly-------
Changed Line #78 -
(From) include( $Configuration["DISCUSSIONEXPIRATION_PATH"] . 'library/Function.DiscussionExpiration.php');
(TO) include($this->Configuration["DISCUSSIONEXPIRATION_PATH"] . 'library/Function.DiscussionExpiration.php');
(OR TO) include('library/Function.DiscussionExpiration.php');
--------To get the settings page to load after enabling this extension-----
Changed Line #130 -
(From) include( $Configuration["DISCUSSIONEXPIRATION_PATH"] . 'library/PostBackControl.DiscussionExpiration.php');
(TO) include($this->Configuration["DISCUSSIONEXPIRATION_PATH"] . 'library/PostBackControl.DiscussionExpiration.php');
(OR TO) include('library/PostBackControl.DiscussionExpiration.php');
Cool extension idea. With a little elbow grease it seems like a good starter script to enabling several different date oriented possibilities other than just closing discussions.
i dunno what the deal was
r u sure everything is ok in it?
maybe I did something wrong