74 Commits

Author SHA1 Message Date
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
vyshane
3f763c86cf Fixed Bug #5057 - hidden teachers aren't completely hidden 2006-04-10 08:49:15 +00:00
nfreear
2bf0e5e2a9 Accessibility: added title to envelope link, replaced img width/height (OU-Bugz: 697,736) 2006-03-15 10:42:50 +00:00
nfreear
73bb9da7e5 Accessibility: added Alt text for envelope/message link (existing lang string); converted <div> to <ul>, inherit existing classes & styles. 2006-03-01 11:18:33 +00:00
toyomoyo
16ee05ad8f merged, limit of students displayed = 20 2006-01-04 05:22:53 +00:00
gustav_delius
9c22e022cb Now uses print_user_picture() instead of custom code 2005-09-29 14:26:25 +00:00
urs_hunkler
340c48485e I replaced the center and font tags in this sideblock with <div class="message">. 2005-08-03 11:07:13 +00:00
urs_hunkler
e99e17fe69 I removed the inlinestyle for the userentry in the sideblock "online user" and added the class "listentry" to the div. The properties of th inline style are now defined in styles_layout.css and stylews_fonts.css. 2005-05-27 17:28:16 +00:00
moodler
dd189d93ab Fixed messaging links in blocks 2005-04-21 11:34:34 +00:00
moodler
a9d9b46af8 Guests can't use messaging 2005-03-17 20:39:30 +00:00
defacer
3ef642d96a Implemented discussion from bug 2547:
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
  instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
moodler
d2b059c6c9 FIxed some links for compliance 2005-02-12 03:51:18 +00:00