Moodle Plugins directory: CUL Activity Stream Block | Moodle.org
CUL Activity Stream Block
Activity stream block
=====================
The block has a dependency on moodle-message_culactivity_stream which creates and populates the table it uses.
The block selects and displays a list of the users messages from the table {message_culactivity_stream}. Each message includes a link to view the notification subject and one to remove the message from the users feed. With JS enabled, the block checks for new notifications every 5 mins. It also appends older messages as the users scrolls down the list. If the block is displayed on the site page then all course messages are included. If the block is displayed on a course page then only course messages for the containing course are displayed.
The block identifies course messages by displaying a course image (the first image file uploaded to the course summary files area) or a gravatar (if the course has no course image). The messages are required to include the course id for this to work. The event data sent to the message lib does not always include the course id or any useful/consistent way of identifying the course that the message originated from. If the message cannot be linked to a course id, the avatar will be the user from picture or a gravatar if none exists.
There is a core code patch for adding the course id to messages: https://tracker.moodle.org/browse/MDL-47162
The block has a setting to choose a gravatar type but this will
only work if the core code setting 'enablegravatar' is enabled. So in
summary, the avatar for a message defaults in the following order:
Requirement - course id and image uploaded to course summary files.
1. Course image centred horizontally and vertically
Requirement - course id and 'enablegravatar' is enabled
2. Course gravatar
Requirement - course id
3. Moodle image /pix/u/f2
Requirement - user from image uploaded
4. User image
Requirement - 'enablegravatar' is enabled
5. User gravatar
6. Moodle image /pix/u/f2
We have used it on prod in 2.7 for six months, we tested in 2.8 and I see Graham is running it in prod on 2.8 so it would be an idea to list it for those versions as well as 2.6
I am happy to let you know this plugin received the Reviewers' choice award. Well done!
We've installed the suite on a 3.8 site and discovered that if the block is present in a course then the Add activity or Resource link is disabled. Remove the block and the function returns.
We're also wondering if it's possible to use this block on the Dashboard, so that a student can see their activity stream across all of their courses in one place.
How do you add the activity stream block to the Dashboard? We're lookin at the Default Dashboard and only have the CUL Upcoming Events block available.
https://tracker.moodle.org/browse/MDL-65837
https://moodle.org/mod/forum/discuss.php?d=377578#p1559908
Do you why that might be?