Issue Details (XML | Word | Printable)

Key: MDL-11984
Type: Sub-task Sub-task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Petr Skoda
Reporter: Howard Miller
Votes: 1
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-17205

Allow an option in "Online Users" block to just show the number online not the names

Created: 31/Oct/07 10:23 PM   Updated: 09/Dec/08 06:40 PM
Return to search
Component/s: Blocks
Affects Version/s: 1.8.3, 1.9
Fix Version/s: 1.9.4

Participants: Chris Potter, Howard Miller, Petr Skoda, Séverin Terrier and Tim Hunt
Security Level: None
QA Assignee: Tim Hunt
Resolved date: 01/Dec/08
Affected Branches: MOODLE_18_STABLE, MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
In some cases a list of users online (potentially) on the front page of the site is inappropriate for privacy reasons. However, it would be good to have an indication along the lines of "nn users online" as an option.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Séverin Terrier added a comment - 20/Nov/08 05:11 PM
It would also be good to (be able to, as an option) show numbers of connected user, even if the names are shown.

Because online users are limited to 50 (fixed value) users...


Petr Skoda added a comment - 01/Dec/08 12:46 AM
new capability block/online_users:viewlist which may be used to restrict viewing of list of online users, if cap not allowed only number of users dispalyed, I hope this will be also faster because only one query used now (insetad of two); for BC reasons enabled by default in all legacy roles; also if number of users is >= 50 the number is displayed

thanks for the report, please test


Chris Potter added a comment - 05/Dec/08 02:10 AM
Just a report... I am testing this on 1.8, not 1.9, however... I noticed that the only way to get the role to work is to assign a site-wide role. I was looking at this to assign someone in particular (one student) this role. Is it the fact that I "copied/pasted" it or is this intended behavior?

Petr Skoda added a comment - 05/Dec/08 02:37 AM
This will not be backported into 1.8.x, in fact 1.8.x is getting only critical and security fixes, please upgrade to latest 1.9.x if possible.

Chris Potter added a comment - 05/Dec/08 02:44 AM
Thanks for the info Petr. I'd upgrade if my faculty were ready. Keep up the good work!

Tim Hunt added a comment - 09/Dec/08 06:40 PM
Reviewed code and tested.

(Note, if you want to test this, you need to remove the block/online_users:viewlist capability from both the Student and Authenticated users roles.