Commit Graph

85 Commits

Author SHA1 Message Date
Rossiani Wijaya 2c484717e1 MDL-33815 Online Users block: Add query condition to filter out deleted users and lastaccess date greater than now 2012-10-11 16:06:00 +08:00
Dan Poltawski 10aeaf0f74 MDL-26568 block_online_users - reporting incorrect number of users
When over 50 users were online the count used in the listing was incorrect
2011-10-25 23:34:46 +02:00
Petr Skoda 801dea0605 MDL-26262 fix online users block error on non-course pages 2011-02-06 22:04:44 +01:00
Petr Skoda fb7dd39ce7 MDL-26045 fix invalid sql join when separate group mode enabled 2011-01-19 15:40:20 +01:00
Petr Skoda 629e12fd81 MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL 2010-08-25 08:43:42 +00:00
Martin Dougiamas 0f47bf5809 MDL-22320 Fixed links to messaging (no longer to popup) 2010-07-12 13:13:09 +00:00
Petr Skoda 3a11c09f5b MDL-21676 user_picture refactoring, reenabling email requirement - towards Gravatar support 2010-07-04 18:36:34 +00:00
Petr Skoda 8571833f0b MDL-23069 moving version and cron info into standard version.php - finally, yay! 2010-07-04 12:18:22 +00:00
Andrew Davis f816273a3e blocks MDL-22564 removed some commented out old code and set online users popup height and width to what they apparently should be 2010-05-26 02:05:58 +00:00
Andrew Davis eaed2fd163 ajax MDL-22286 removed references to the previous version of the JS function openpopup() 2010-05-05 02:05:58 +00:00
Dan Marsden 8702d4a0e0 Online users XHTML MDL-22302 thanks to Daniele Cordella for report. 2010-05-05 01:08:57 +00:00
Petr Skoda 4bbe3bd83f MDL-22054 converting block name strings to pluginname
AMOS START
 MOV [blockname,block_online_users],[pluginname,block_online_users]
AMOS END
2010-04-11 11:31:03 +00:00
Petr Skoda 4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Petr Skoda 812dbaf7d5 MDL-21198 improved/simplified $OUTPUT->user_picture() + regression fixes, performance fixes and detected performance problems when printing user avatars 2009-12-27 19:47:21 +00:00
Petr Skoda b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Petr Skoda 4ca6cfbfd4 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:00:47 +00:00
samhemelryk 4cdb8d70ae blocks MDL-19791 Upgrade deprecated function calls 2009-09-30 06:54:07 +00:00
nicolasconnault cda9c83d16 MDL-19790 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:39 +00:00
tjhunt e92c286c20 block contexts: MDL-19098 every block should have a context
even non-course and sticky blocks.

The parent context is block_instances.parentcontextid.

The block context should be used for checking permissions directly
related to the block, like moodle/block:view or moodle/site:manageblocks.

However, if the block is displaying information about the current page,
for example the participants block showing who 'here', then it may be
better to use the context of the page where the bloack is appearing -
in other words $this->page->context - to check permissions about the
user's ability to see participants here.

Or, if the block is displaying something stronly related to courses,
for example, a course meny block, the block should probably use the
context for $this->page->course to check permissions.
2009-07-13 08:37:34 +00:00
tjhunt 6b608f8f50 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 10:53:31 +00:00
tjhunt f4d76b9cdf blocklib: MDL-19010 fix some minor problems with existing blocks. 2009-06-05 08:28:45 +00:00
tjhunt f474a4e583 blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php 2009-05-07 08:55:10 +00:00
tjhunt cb6402296c blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks 2009-05-06 09:28:26 +00:00
tjhunt 3179b0006a blocklib: MDL-19010 Fix blocks that were relying on ->instance in an unfortunate way 2009-05-06 09:15:33 +00:00
jerome 59eaa9ac49 online user block MDL-15325 optimize the display of the message icon/link (instantiation out of a loop), merged from 1.9 2009-01-09 00:56:45 +00:00
jerome 593bebe099 online user block MDL-15325 Online Users Block didn't perform capability check when displaying messaging icon, merged from 19 2009-01-08 07:40:01 +00:00
skodak 283ebb7147 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 2008-11-30 15:42:48 +00:00
skodak f28f2d9022 MDL-14679 towards blocks conversion 2008-06-02 20:15:51 +00:00
moodler 433c242f1a Merged new block versions from 1.9 2008-03-03 11:43:32 +00:00
skodak dd97c32868 MDL-12945 a slightly bigger patch for performance in recent activity and various group related issues + some other fixes - see list of subtasks in tracker; merged from MOODLE_19_STABLE 2008-01-24 20:33:50 +00:00
martinlanghoff e88370a6a3 blocks/online_users: Remove SQL "id,id" which causes errors on Oracle - MDL-12425
Credit for the fix goes to Dennis Rochford <Dennis.Rochford@usq.edu.au>
2007-12-04 06:25:56 +00:00
skodak ffc536af8e MDL-7380 converted various places to use new groups API 2007-09-08 20:53:05 +00:00
toyomoyo 15e3eb6053 merged fix for MDL-9613, spliting the queries into 2 for site/course block respectively 2007-09-06 06:25:40 +00:00
skodak 1d68419596 MDL-10383 - deprecated groups_members_from_sql and friends - we do not need them anymore because we reverted to 1.7 style groups in 1.9 2007-08-15 19:28:11 +00:00
toyomoyo 9477c1ecca merged fix for MDL-9613, broken SQL in online user block 2007-07-09 02:54:35 +00:00
Martin Langhoff 08103c9364 cvsimport fixups 2007-07-07 14:18:30 +12:00
toyomoyo b0365fce35 merged fix for MDL-9613 2007-04-30 02:56:46 +00:00
toyomoyo a1f5b4ae03 merged fix for MLD-7544, hidden users show up on participants block 2007-04-23 03:06:01 +00:00
moodler 97e7e624f7 Merged MDL-6553 from 1.8 stable 2007-04-04 07:24:14 +00:00
skodak 440d164869 MDL-7861xhtml strict and css fixes in blocks 2007-01-09 23:45:24 +00:00
Martin Langhoff f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
moodler 9d5210af22 Merged tidy-ups from stable 2006-10-23 07:46:57 +00:00
moodler 1ce1944e33 Merged fixes for guest display from stable 2006-10-20 05:16:12 +00:00
moodler b725019e3f Merged fix related to MDL-6020 2006-09-19 04:53:56 +00:00
moodler 71832a910b Fixed some typos 2006-09-14 06:54:54 +00:00
toyomoyo 174526f4f1 changed code to use the new user_lastaccess table instead of the log table 2006-09-12 07:38:46 +00:00
toyomoyo cc398c7262 adding caapabilities 2006-09-04 08:45:08 +00:00
vyshane 01199ea958 Updated to use new Roles System. Plus some fixes. 2006-08-16 08:54:07 +00:00
moodler 1a2ea6f488 Merged $course -> $COURSE fixes from 1.6 stable 2006-05-29 08:17:57 +00:00
tjhunt 450a0a7db7 Merge from stable branch: Convert tabs to spaces in files where there were only a few rogue tabs. 2006-05-17 16:47:44 +00:00