Adding automatic timer-based posts to MyBB?
#1
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!
Reply
#2
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.
Reply
#3
Thanks!
Reply


Forum Jump:


Users browsing this thread: