39 Commits

Author SHA1 Message Date
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
65bcf17b95 MDL-13450 and MDL-13303 - sorry for changing forum API so late, but it was needed; major perf improvement for forum; fixed printing of user pictures; merged from MOODLE_19_STABLE 2008-02-13 17:03:25 +00:00
tjhunt
38e179a4ed MDL-11741 - Convert core modules to take advantage of recent improvements to build_navigation.
This check-in removes about 400 lines of code. I hope I have not screwed anything up. I would be grateful if people could review this change, and keep an eye on the navigation bar in modules.

Any navigation bar bugs you find in the near future, feel free to file them in the tracker and assign them to me. Thanks.

If not to many problems are found, I think I would like to backport this to 1.9 stable, but I am not sure that is a good idea. Opinions to the General Developer Forum please. I am about to start a thread there.
2007-10-12 15:55:49 +00:00
mattc-catalyst
a12e11c13a MDL-10888: groupings - mod/chat - update to work with groupings 2007-08-27 02:28:35 +00:00
mattc-catalyst
01e3838853 MDL-9473: Initialise navlinks array before use
Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:55:24 +00:00
mattc-catalyst
3b27b0fe21 MDL-9615: Correct incorrect use of term breadcrumbs
- $crumbs -> $navlinks


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-07-05 04:40:48 +00:00
mattc-catalyst
70c6c0ad70 MDL-9474: Updated build_navigation() to use global $COURSE
- Removed $course parameter from build_navigation()
- Updated all calls to build_navigation()


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-23 21:11:10 +00:00
mattc-catalyst
160addd2b2 Breadcrumbs: mod/chat changes
- Modified to use build_navigation() for breadcrumb generation.
- Removed print_header method as base class now provides this
  functionality.


Author: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 20:59:17 +00:00
toyomoyo
d3981e3804 MDL-7861, chat realated xhtml strict fixes, changed stlye in notice_yesno 2007-01-09 04:50:07 +00:00
skodak
80aede31d3 fixed capabilities in chat recent activity, removed broken optimization from message insert, fixed closing of box MDL-7313; merged from MOODLE_17_STABLE 2006-10-31 21:07:00 +00:00
moodler
0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler
dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
skodak
f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +00:00
moodler
bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00
moodler
78c98892d1 More efficient chat listings (less database calling) 2006-04-18 07:14:21 +00:00
stronk7
200371e9f7 Now chat->name works under filterall. 2005-03-27 11:36:54 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
skodak
516121bd0d radical chat clean up, see forum for details 2005-02-03 20:39:27 +00:00
moodler
68c3b07794 FIx for display of first session, from stable 2004-12-08 13:47:06 +00:00
mjollnir_
1604a0fc2b Merged from MOODLE_14_STABLE: More small sql tweaks to avoid invalid postgres sql 2004-11-23 02:05:47 +00:00
moodler
2defdcd7d5 Changes for XHTML and accessibility compliance 2004-10-19 10:34:02 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
1c61c8d6bc fixed capitalization and quoting of attribute values 2004-09-12 15:06:29 +00:00
gustav_delius
90fcc576ea Removed notices by introducing new function print_header_simple() which works on site as well as in courses without extra logic. 2004-08-21 20:20:58 +00:00
moodler
b46792fe1e Some fixes for delete groups sessions 2004-02-24 07:21:52 +00:00
moodler
a43b24985f Moving headings 2004-02-24 07:00:13 +00:00
moodler
84a2fdd706 Preliminary support for groups in Chat.
It's not well tested yet - I'm hoping to do some testing on moodle.org
with some real people and get this refined enough for the Beta release
later today.
2004-02-24 06:35:57 +00:00
stronk7
8f583218df Added missing cmid parameter when calling add_to_log() function. 2004-02-16 19:31:26 +00:00
moodler
27ac57c086 Chat sessions can now be deleted 2004-01-16 13:14:42 +00:00
moodler
7cc9a05edf Make sure teacher override is there 2003-11-28 15:37:27 +00:00
moodler
8f6ca087e9 DIsplay names using the fullname function 2003-11-28 15:35:41 +00:00
moodler
315915628d Keep guests out of chat 2003-11-03 10:22:24 +00:00
moodler
582de679a2 Some improved popup windows / links for user pictures 2003-07-24 02:25:23 +00:00
moodler
319ea04166 Better formatting on IE 2003-07-21 05:31:23 +00:00
moodler
1ec3c09b6b Was cropping first/last message - fixed now 2003-07-21 05:08:46 +00:00
moodler
d861debecc Make session link translatable 2003-07-21 04:20:01 +00:00
moodler
a669b1f5f9 Ah! Now we're getting somewhere - chat reports look quite nice now! 2003-07-21 04:08:32 +00:00
moodler
9df9138a77 A bit more usable now 2003-07-21 03:37:53 +00:00
moodler
22a4491ae9 Some new code related to the new reports - uploading for testing on
other server - still very early
2003-07-21 03:16:19 +00:00