Extending the forum plugin

Extending the forum plugin

by Niels Vroman -
Number of replies: 2

I would like to add a functionality to the existing forum plugin. The functionality I want is that I can select a published date when creating a post in a forum. When I select a date a week in the future, the post will be published (and shown to the user) a week in the future.

I think the following need to happen:

  • Add a published_date field to table mdl_forum_posts
  • Change query that shows the posts in the forum (select posts where published date is in the past)
  • Change cron that sends notifications of forum posts (that only published posts will be sent)

Now I'm wondering if there's already a plugin that provides this functionality. I've searched in plugins but couldn't find any with this functionality. And how can I code this functionality? I don't think it's good to overwrite the core code of the plugin. How can I extend this plugin with clean structure/code? Can you help me on my way?

Attachment Schermafbeelding 2017-06-22 om 14.57.30.png
Average of ratings: -