MyBB Community Forums

Full Version: Prune old PMs + optimize DB v1.0.0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
New version v0.8 was released. Just fixed 2 typos in code, please update!
work on mybb 1.6 ?
I dont knwo, try and you will see. Let us know
I second the suggestion about limiting it to certain usergroups. That would make this complete Smile

Thanks for this otherwise as it's much needed.
Sorry, it wont happen. This plugin is for deleting old read pms, so you can adjust it for your purposes, feel free to take sources
[b]Parse error[/b]: syntax error, unexpected end of file in [b]********/inc/tasks/task_prunepms.php[/b] on line [b]31[/b]

Hi, when activating this plugin, i got that error. And, it seem not working, (old PMs were not deleted) when i clicked "run task now" in task manager.
I had installed the plugin but hadn't run it yet, I tried so today but the task doesn't seem to actually despite it saying that it ran successfully. I viewed the task log and it doesn't show up there.

I looked at the code for the task and noticed this:

UPDATE mybb_users u SET 

My DB is named something else so I changed that to say mydb_users instead but it still doesn't work when I run it. Do I have to change something else as well?

Thanks,
......
Yes, it is:

$secs = 3*24*3600; // 3 days - this must be in seconds - which means 24 (hours) x 3600 (seconds) * 3 (days)

Ï have to check code - it was working fine last time when I checked. Many things could change in MyBB core, so give me some time to check and fix Smile
I will release a new version soon... any suggestions?
Pages: 1 2 3 4 5