MyBB Community Forums

Full Version: Adding automatic timer-based posts to MyBB?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

Are there any currently existing plugins which perform automatic posting based on timers?

What I'm looking to do is to have the forum software make an automatic post to a thread if the OP doesn't make a special 'Update Post' within a fixed time period.

If no plugin of this nature exists, are there any hints on how I could implement this?

Many Thanks!
Hints:
1. Create a task file which will do the checking/updating. Examples are in the inc/tasks folder. Use posthandler to insert posts.
2. Insert a task record for the file to the mybb_tasks table: https://github.com/mybb/mybb/blob/featur...#L780-L796 Fill at least all required columns (title, file, enabled, any time value, nextrun - you can use fetch_next_run()).
3. Remove the task record on deactivation/uninstallation.
Thanks!