44 Commits

Author SHA1 Message Date
Andrew Davis
c52b4db52d MDL-46465 mod_chat: assorted coding style fixes 2014-07-28 10:01:41 +08:00
David Monllao
6536217c78 MDL-34466 mod_chat Replace all instances of get_context_instance() with respective context_XXXX class in mod/chat 2012-07-27 13:26:04 +08:00
Petr Skoda
cdbea7eed1 MDL-31607 use full course object for require_login() if already available
This eliminates 1 db query.
2012-04-22 17:41:47 +02:00
Sam Hemelryk
eb38d45b4e MDL-29189 course Minor fixups after code review 2011-09-13 11:17:18 +12:00
Sam Hemelryk
8ebbb06adf MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:27 +12:00
Charles Fulton
9250bf8172 MDL-26238 remove deprecated second parameter from groups_get_group() calls 2011-02-06 18:15:36 +01:00
Dongsheng Cai
1d5bd3d2ed MDL-24941, fixed nopermission error when student entering scheduled chat session 2010-11-17 07:56:40 +00:00
Petr Skoda
0a0a507c95 MDL-21535 hidden activities now handled in require_login(), removing duplicate code 2010-02-15 16:12:53 +00:00
Petr Skoda
a685593466 MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions 2010-01-16 15:39:56 +00:00
samhemelryk
eb588b22ab mod-chat MDL-19804 Added PAGE->set_url calls and removed deprecated functions 2009-09-23 07:08:43 +00:00
samhemelryk
296b589efd mod-chat MDL-19804 Updated print_header and build_navigation to OUTPUT and PAGE equivalents 2009-09-07 04:08:56 +00:00
dongsheng
4314c0bcf5 "MDL-14949, add a new capablity chat:talk to enable readonly chat user, merged from 1.9" 2008-12-16 04:58:40 +00:00
dongsheng
6e5f40eadc MDL-14650, create a new table chat_messages_current to save latest 8 hours messages, could improve performance. The expired message will be deleted in chat_cron function 2008-07-24 03:15:03 +00:00
dongsheng
5c2f6a7fb1 "MDL-14129, fix print_error" 2008-06-15 12:24:36 +00:00
skodak
d3bf6f92f6 MDL-15104 chat dml conversion 2008-06-08 15:49:36 +00:00
dongsheng
2f52a088bf "MDL-14129, fix print_error" 2008-06-06 08:46:48 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
mattc-catalyst
a12e11c13a MDL-10888: groupings - mod/chat - update to work with groupings 2007-08-27 02:28:35 +00:00
Martin Langhoff
08103c9364 cvsimport fixups 2007-07-07 14:18:30 +12:00
moodler
6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
skodak
810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
toyomoyo
f9a59efa64 adding some capabilities 2006-08-29 08:43:59 +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
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
martinlanghoff
930413b133 mod/chat: Normal method - introducing "Stream" updates.
This is an alternative version of jsupdate.php that acts
as a long-running daemon. It will feed/stall/feed JS updates
to the client. From the module configuration select "Stream"
updates.

The client connection is not forever though. Once we reach
CHAT_MAX_CLIENT_UPDATES (currently 1000), it will force
the client to re-fetch it.

This buys us all the benefits that chatd has, minus the setup,
as we are using apache to do the daemon handling.

Chat still defaults to the normal update method, which is now
optimised to take advantage of keepalives -- so this change is
safe. The instructions in the config page also indicate that this
mode may not be well supported everywhere. It hasn't been
tested on IIS for starters.

In terms of relative cost -- if each hit on jsupdate.php incurs
on ~20 db queries and delivers one update to the client, each hit
on jsupdate takes ~20 queries, and then roughly 2~3 queries to
serve each of the next 1000 updates. On busy sites, the difference
is huge.

There is still room for enhancements in both keepalive and stream
update methods. I am pretty sure we can trim DB queries more.
2006-04-19 02:20:48 +00:00
stronk7
b49f9e8932 And chat is using current_charset() too.
Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:31:29 +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
a32c7772c6 fixed deleting of old users when using chatd, other minor fixes, reverting of changes in chatmsg - found some weird problems in FF 2005-02-10 19:14:53 +00:00
skodak
475bd5cb71 fixed problems with forced course language 2005-02-08 21:30:47 +00:00
skodak
3dfd307fe0 maybe fixed double posts, fixed javascript errors, solved problems with reloading 2005-02-07 20:33:44 +00:00
skodak
516121bd0d radical chat clean up, see forum for details 2005-02-03 20:39:27 +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
moodler
fdff1f63a3 Fixes when displaying lists of users in group mode 2004-04-08 15:12:35 +00:00
moodler
6a5b5a20f4 Ack! Stupid typo fixed - thanks, Bobo! 2004-04-08 14:28:38 +00:00
moodler
bded7f70b5 Get coursemodule so the groups checking works correctly 2004-03-12 13:29:33 +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
moodler
315915628d Keep guests out of chat 2003-11-03 10:22:24 +00:00
moodler
fcd3a1ee42 New feature - chat scheduling. Can now set a time for the next chat,
as well as rotating weekly or daily period.

Also some small fixes.
2003-07-25 06:47:06 +00:00
moodler
f7e648da70 Some minor improvements 2003-07-07 09:45:08 +00:00
moodler
1515a89e2d Very early version of new chat module, made by Martin using ARSC as
an inspiration.

Works OK already on most newish browsers .. see mod/chat/README.txt for details.
2003-07-07 06:44:16 +00:00