Prune old PMs + DB Optimize

by Eldenroot 7 Stars 979 Downloads

Simple plugin which automatically checks for old read/unread PMs and deletes them automatically + optimizes forum tables in MyBB automatically.

Project Details

Description

Simple plugin which automatically checks for old read/unread PMs and deletes them automatically + optimizes forum tables in MyBB automatically.
  • read PMs after 30 days
  • unread PMs after 90 days
-> you can set your own values in prunepms.php located in /tasks folder


Thanks to @Jones H and @Euan T @Supryk

Installation
  • Just upload all files into your forum and activate it in the ACP.
  • Add a notice into your private template - tutorial here:

    Quote:Do you wanna show a notice for all users inform them about automatic deleting PMs? If yes, please follow these steps:
    1) Go to your ACP 
    2) Open template group "Private messaging templates" and open "private" template 
    3) Find this: 
    {$emptyexportlink}</span>
    4) Add after this: 
    <span class="smalltext" style="float: right; color: #000; font-weight: bold; cursor: help;" title="Read PMs will be deleted after 30 days, unread PMs will be deleted after 90 days automatically.">Read PMs will be deleted after 30 days, unread PMs will be deleted after 90 days automatically!</span>
    5) Save the template, you are DONE! 


Downloads Support
  • Please write your problems/ideas here in our support thread.
How to update
  • Deactivate plugin
  • Copy and overwrite old files with new ones
  • Activate plugin