miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

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

Author simmering
Registered
#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
Lead Developer
#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
Lead Developer
#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 Support Forums / 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

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums 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 Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB