Blocks: Discussion Feed
Moodle Discussion Feed
This block displays the latest discussions from a course on a frontpage, dashboard page, or course home page. It will allow a user to reply to any post. In addition, on a course home page, it will allow a user to create a new discussion if there is a forum of type "general forum" available within the course. This block uses functionality from the course_discuss block and a forum is linked to a course implicitly by the block so it can be used to store any new discussions.
This plugin requires installing the block_course_discuss plugin first: https://moodle.org/plugins/block_course_discuss
Guidelines for use
* Note: Each course will require a valid forum activity module and the block plugin course_discuss will need to be installed prior to this plugin.*
As per the course_discuss block, this plugin will silently assign itself to a relevant forum in the course to use when the block is first rendered on a course page, if it can and if one is not assigned already.
The block should be added to a block region that will appear on the frontpage, dashboard page and course homepage
When using Adaptable, this can be achieved by adding the block to the dashboard page in the desired block region. After that, also add it to block region "Course page slider region" that appears on the frontpage in the admin section. Configure this block to appear on all pages. Then, in any course page, configure the block to only appear on any course main page. This is very important, as the block will otherwise attempt to render twice on the dashboard page, potentially causing performance issues.
Please be careful not to add this to block regions in way that could cause the block to be loaded more than once on a page!
How do I get set up?
Installs at /blocks/discussion_feed
Site-wide configuration options are available under: Site Administration -> Plugins -> Blocks -> Course Discuss
The following settings are available:
Days back to show latest posts for. This is the number of days in the past to show latest posts.
Max length of post to show. Maximum length of post to show to limit the number of characters.
Use caching. Switch on caching (uses Moodle cache API). This is strongly recommended as this block does make quite a few database calls!
Cache Expiry time. Cache expiry time in seconds (TTL).
Currently no per Instance block settings are available.
Please note that from version 1.3.1, the following are now language strings instead of settings (in block_discussion_feed.php):
- Message to display when no forum updates available for showing on dashboard. (language pack string name: "nocontentdisplaymessagetext")
- Message to display when no forum exists and the block appears on a course page. (language pack string name: "displaynoforumexistsmessagetext")
- Moodle 3.4, 3.5, 3.6
This block has been developed and tested with Adaptable 1.7.2 onwards, which includes a block region that will specifically appear on the relevant pages. It will probably work with other themes, however it will need to appear in an appropriate block region that renders on a frontpage, dashboard page and course homepage.
- Manoj Solanki (Coventry University)
- Jeremy Hopkins (Coventry University)
### Licenses ###
Licensed under: GPL v3 (GNU General Public License) - http://www.gnu.org/licenses