Commit Graph

111 Commits

Author SHA1 Message Date
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
fd4d41c3b5 MDL-12945 fixed sql purity to make pg happy, fixed bug in user list of active chats; merged from MOODLE_19_STABLE 2008-02-14 16:12:53 +00:00
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
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
817fb4cb01 MDL-11674
Changing back an issue that could cause dataloss.
2008-01-09 02:13:52 +00:00
7ce4ce0aa4 mod/chat:chat_cron() - IS NOT NULL is better - MDL-11674 2008-01-08 22:36:17 +00:00
319038c39d mod/chat:chat_cron() delete stale chat messages with a single query, fast, and portable too! MDL-11674 2008-01-08 20:58:24 +00:00
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
0b5a80a1a5 MDL-7028 rewritten course reset + forum role_unassign cleanup fixes; merged from MOODLE_19_STABLE 2007-11-29 14:43:04 +00:00
82f66bed7b closing the $rs 2007-10-17 07:28:17 +00:00
b592b8040e MDL-11738 merged, chat message not shown 2007-10-17 07:18:56 +00:00
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
4388027c37 MDL-11674 fixed mysql incompatible SQL in chat cron 2007-10-09 16:46:04 +00:00
f0d3bb9e9c mod/chat: chat_update_chat_times() smarter
If cron hasn't run for a few days, it would take
several runs for chat_update_chat_times() to get things back on track.

Now it's all fixed in one go, saving a bit of DB traffic. It all adds
up...
2007-09-19 07:21:09 +00:00
b78f4cbd31 mod/chat: reduce number of queries in cron.
Delete stale msgs in one DB query rather than in 1-per-chat-instance.

(From 600 DB queries to 1 on a site with 600 chat instances.)

Also - a walkthrough of chat_update_chat_times(), which seems buggy.
2007-09-19 07:20:52 +00:00
a12e11c13a MDL-10888: groupings - mod/chat - update to work with groupings 2007-08-27 02:28:35 +00:00
927a78087c Merging from MOODLE_16_STABLE:
Fix for MDL-8515: Prefixing chat messages with a slash should not hide the
user's name unless it's a special command we handle.

I completely removed the emoticon handling case, but it seems like it was
not needed for a long time now? Emoticons work just fine without it.
2007-03-01 07:19:57 +00:00
4bf75b33b4 Applying new rs_xxx() functions everywhere. MDL-8134
Merged from MOODLE_17_STABLE
2007-01-29 19:16:33 +00:00
9152fc9938 MDL-8323 finished full conversion to proper $COURSE global - no more $CFG->coursetheme, $CFG->courselang - improved course_setup(), current_language() and current_theme(); and Chameleon theme fixes needed for global $COURSE
MDL-7962 chat seems to be completely broken in head (fixed wrong JS)
* reworked chat themes support
MDL-8338 Cron does not need cookies
MDL-8339 forum cron capabilities problems
* minor deprecated function current_encoding() cleanup
2007-01-28 21:18:08 +00:00
d3981e3804 MDL-7861, chat realated xhtml strict fixes, changed stlye in notice_yesno 2007-01-09 04:50:07 +00:00
32f0b38a4a MDL-8049 Remove all language=Javascript from javascript includes 2007-01-03 19:33:44 +00:00
dd2d45a878 MDL-8029 obsoleted ob_end_clean() emulation removed from chat 2006-12-30 21:10:23 +00:00
953eb6f315 MDL-8022 Chat accessibility - new gui_basic should integrated and fully working now
+ improved print_user_picture() to allow images with empty alt to prevent repetitive reading of usernames in jaws when username is printed next to avatar
2006-12-30 19:45:24 +00:00
6ee78ceeaf MDL-8022 chat accessiblity
- new gui_basic that can be used as fallback or accessible option to gui_header_js - it is not compatible with chat daemon
- todo: CSS styling, beeping, JS fallback code in view.php and noframes fallback in gui_header_js
- minor changes in messaging language strings
- minor coding style improvements
2006-12-29 18:33:41 +00:00
2222eb84bb Added CDATA to Javascript 2006-12-22 05:01:17 +00:00
264867fdeb add code to redirect to modedit.php from course/mod.php for activities adding / updating using new formslib
migrated chat/mod.html to formslib definition of form is in chat/mod_form.php
2006-11-09 18:25:58 +00:00
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
3d81c41e2e Merged fixes for AS keywords MDL-7207 2006-10-25 08:51:32 +00:00
0217757b09 DeLIMITing Moodle core. Now the new $limitfrom,
$limitnum parameters are used instead. MDL-7168

Merged from MOODLE_17_STABLE
2006-10-24 22:00:29 +00:00
1c45e42e3c adding capabilities 2006-09-11 08:56:23 +00:00
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
dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
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
be933850a7 Bug #6176 - locale setting on config variables page not functioning correctly; merged from MOODLE_16_STABLE 2006-07-30 10:39:21 +00:00
d96466d29f Moving from lastIP to lastip everywhere. Bug 5763.
(http://moodle.org/bugs/bug.php?op=show&bugid=5763)

Merged from MOODLE_16_STABLE
2006-06-09 10:04:43 +00:00
274f009184 mod/chat - fix another instance where empty $USER->lastIP was affecting us
The original commit was:

mod/chat - use empty value instead of erroring out if $USER->lastIP and getremoteaddr() don't yield any interesting value

Sometimes we can't get any useful IP for the user -- and this may even be a
valid situation. So fudge an empty value -- the DB needs it as the IP field
is NOT NULL.
2006-05-02 05:20:35 +00:00
f83edcb114 mod/chat - use empty value instead of erroring out if $USER->lastIP and getremoteaddr() don't yield any interesting value
Sometimes we can't get any useful IP for the user -- and this may even be a
valid situation. So fudge an empty value -- the DB needs it as the IP field
is NOT NULL.
2006-04-19 21:22:36 +00:00
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
d13ef2fbdc mod/chat - cope with missing $USER->lastIP
$USER->lastIP is sometimes not set properly during login, fetch it if we can
or error out clearly -- we won't be able to login the user to the chat if
we don't have an IP address to match him/her against.
2006-04-18 22:40:56 +00:00
5379d24992 A little HTML hint since styles are not working here for me somehow 2006-04-18 07:28:44 +00:00
78c98892d1 More efficient chat listings (less database calling) 2006-04-18 07:14:21 +00:00
0eda0a46b2 Fixed a typo 2006-03-24 14:44:55 +00:00
a2a3733666 iFIx up some styles for the MyMoodle overview 2006-03-15 04:01:10 +00:00
9ca0187e16 Chat module support for my moodle page 2006-03-14 22:28:28 +00:00
7b5aa1b725 case sensitive IP 2006-02-23 03:16:28 +00:00
0f4e83c173 Fixing up a problem in chat login - ip address is lastip not lastIP - member variables are case sensitive 2006-01-13 03:09:24 +00:00
970f144ef4 A slight improvement for my last edit, which could trigger a small bug.
I should go out and drink more often, it helps debugging! ;-)
2005-10-25 01:55:21 +00:00
72989350be Fix for bug 3794:
Times in chat messages are now displayed correctly to all users, with each
user's timezone and DST status taken into account.
2005-10-24 17:30:56 +00:00
aa5c32fda7 Extended theme support to the chat window. Bug 3376.
(http://moodle.org/bugs/bug.php?op=show&bugid=3376)

Merged from MOODLE_15_STABLE
2005-09-10 22:57:21 +00:00