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
Howard Miller made changes - 31/Oct/07 10:24 PM
Field Original Value New Value
Assignee Martin Dougiamas [ dougiamas ] Howard Miller [ howardsmiller ]
Petr Skoda made changes - 11/Nov/08 10:32 PM
Link This issue has been marked as being related by MDL-17205 [ MDL-17205 ]
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 made changes - 30/Nov/08 01:17 AM
Assignee Howard Miller [ howardsmiller ] Petr ?koda [ skodak ]
Petr Skoda made changes - 30/Nov/08 01:18 AM
Parent MDL-17205 [ 29354 ]
Issue Type Improvement [ 4 ] Sub-task [ 5 ]
Petr Skoda made changes - 30/Nov/08 09:55 PM
Status Open [ 1 ] In Progress [ 3 ]
Petr Skoda made changes - 30/Nov/08 09:55 PM
Fix Version/s 1.9.4 [ 10300 ]
Petr Skoda made changes - 30/Nov/08 09:55 PM
Affects Version/s 2.0 [ 10122 ]
Petr Skoda committed 4 files to 'Moodle CVS' - 01/Dec/08 12:42 AM
MDL-11984 blocks: 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
ADD blocks/online_users/db/access.php   Rev. 1.1    (+0 -0 lines)
MODIFY version.php   Rev. 1.902    (+1 -1 lines)
MODIFY lang/en_utf8/block_online_users.php   Rev. 1.4    (+2 -1 lines)
MODIFY blocks/online_users/block_online_users.php   Rev. 1.59    (+63 -39 lines)
Petr Skoda committed 4 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 01/Dec/08 12:43 AM
MDL-11984 blocks: 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; backported from HEAD
MODIFY version.php   Rev. 1.563.2.328    (+1 -1 lines)
MODIFY blocks/online_users/db/access.php   Rev. 1.1.2.2    (+43 -0 lines)
MODIFY lang/en_utf8/block_online_users.php   Rev. 1.2.8.2    (+2 -1 lines)
MODIFY blocks/online_users/block_online_users.php   Rev. 1.54.2.4    (+49 -40 lines)
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


Petr Skoda made changes - 01/Dec/08 12:46 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Petr Skoda made changes - 01/Dec/08 12:46 AM
Link This issue has been marked as being related by MDL-17205 [ MDL-17205 ]
Mitsuhiro Yoshida committed 14 files to 'Lang CVS' - 01/Dec/08 12:17 PM
MDL-16651 Translated a new string for scorm.
MDL-16417 Adding translated lang files for googledocs/picasa plugins.
MDL-17464 Translated a new string for course report log.
MDL-11984 Translated a new string for block online users.
MDL-17473 Adding a translated lang file for Picasa Web Albums Plugin.
MDL-13202 Translated a new string for install.
Brushed up translated strings and help files for 'user list', the meaning is same.
MODIFY ja_utf8/install.php   Rev. 1.45    (+7 -1 lines)
MODIFY ja_utf8/README   Rev. 1.881    (+1 -1 lines)
ADD ja_utf8/repository_picasa.php   Rev. 1.1    (+0 -0 lines)
MODIFY ja_utf8/chat.php   Rev. 1.29    (+3 -3 lines)
MODIFY ja_utf8/admin.php   Rev. 1.321    (+2 -2 lines)
MODIFY ja_utf8/scorm.php   Rev. 1.42    (+3 -2 lines)
ADD ja_utf8/portfolio_googledocs.php   Rev. 1.1    (+0 -0 lines)
MODIFY ja_utf8/moodle.php   Rev. 1.332    (+2 -2 lines)
MODIFY ja_utf8/block_online_users.php   Rev. 1.5    (+2 -1 lines)
MODIFY ja_utf8/bulkusers.php   Rev. 1.10    (+3 -3 lines)
ADD ja_utf8/portfolio_picasa.php   Rev. 1.1    (+0 -0 lines)
MODIFY ja_utf8/coursereport_log.php   Rev. 1.3    (+2 -1 lines)
MODIFY ja_utf8/help/bulkusers/lists.html   Rev. 1.3    (+2 -2 lines)
MODIFY ja_utf8/help/bulkusers/selectedlist.html   Rev. 1.5    (+1 -1 lines)
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!

martignoni committed 1 file to 'Lang CVS' - 08/Dec/08 12:14 AM
MDL-11984 New string translated
MODIFY fr_utf8/block_online_users.php   Rev. 1.3    (+3 -2 lines)
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.


Tim Hunt made changes - 09/Dec/08 06:40 PM
Status Resolved [ 5 ] Closed [ 6 ]
QA Assignee timhunt