I could also very much use this functionality on my Flarum install, so I had a look.
You don't need an actual scheduler for the ability to schedule the publishing and depublishing of discussions. What you could do is add date columns for scheduled_from
and scheduled_until
. Then you modify all your queries that get posts (but also search results as @luceos already mentioned) to only retrieve discussions within these dates. And created_at
should be something like ifnull(scheduled_from, created_at) as created_at
(in SQL, to illustrate).
I know in Eloquent it could be as easy as adding a scope. I'm still new to Flarum development and have so far only been adding to models and adding relationships. But is it possible to modify these queries too via an extension?
Anyone know of any examples, maybe?