miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Private Messaging addon for miniBB Allow your miniBB-forums members communicate with each other tet-a-tet with the Private Messaging add-on!
Custom Tutorials and Modifications miniBB Community Forum / Custom Tutorials and Modifications /
Short link for this topic:

Mass Topics Locking addon (was: close topic after a month not used)

Author simmering
Forums Member
#1 | Posted: 22 May 2006 13:03
Is it possible to close topics which aren't used after a month?
I've got lots of topics where were no reactions for over a year, someone reads the topic after a year and gives a reaction which is totaly outdated.
I can do it manually, but thats quite al lot of work!
Author Paul
CEO
#2 | Posted: 22 May 2006 15:36 | Edited by: Paul
There is no built-in function, but mysql command for it is quite simple:

update minibbtable_topics set topic_status=1 where topic_last_post_time<'2006-05-01 00:00:00';

Specify your own topics table name and starting date.

You can write a simple PHP script that connects to database and executes this command, and put this script into crontab scheduler, for example...
Author Paul
CEO
#3 | Posted: 4 Apr 2007 04:31 | Edited by: Paul
Ok I've got sponsored by by ItchyBrainsCentral and implemented tiny version of this addon.

Click here to download. Study readme.txt file for installation and post any suggestions/notices in this thread.

The addon works like suggested: admin choses the certain date and the script selects all topics with the lates reply made EARLIER than this date, i.e. after this date, no new replies were made.

For example if you specify March 1, 2007 at the time there is April 1, 2007, you will lock all topics which have new reply made as early as on February 28, 2007.

Only available to admin of course.

Thanks.
Custom Tutorials and Modifications miniBB Community Forum / Custom Tutorials and Modifications / Mass Topics Locking addon (was: close topic after a month not used) Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts