193 Commits

Author SHA1 Message Date
moodler
f5e1319ec3 Merged SC139 from stable 2005-07-12 08:00:51 +00:00
defacer
281d70ac2d Merging from STABLE:
Three improvements:

1. $nomoodlecookie = true. I just found out about this undocumented(?) hack(?)
   in lib/setup.php which is the perfect way to suppress some warnings. We
   don't need a session cookie for the chatd.

2. If allow_call_time_pass_reference is Off, socket_getpeername can't work.

3. Suppress "call time pass by reference is deprecated" messages for
   socket_getpeername, we don't have any choice here.
2005-07-08 03:51:38 +00:00
stronk7
25ef0370d5 Improved automatic relinking in backup and restore. Credits go to skodak.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)

Note: Everything is merged from stable but the quiz module because it has
other changes not merged for now. I've skyped a message to Gustav about it.

Merged from MOODLE_15_STABLE
2005-07-04 18:56:03 +00:00
stronk7
894ff63f8f Tabs are out 2005-05-16 22:22:31 +00:00
defacer
380bf7a6d3 Simply usertimezone(), baby! ;-) 2005-04-27 03:44:52 +00:00
moodler
b35e1a9ab9 No chat for you! (guests) 2005-04-25 19:10:14 +00:00
moodler
d071637f39 Fix chat display to show timezones correctly 2005-04-25 16:40:39 +00:00
skodak
38be9b3117 fixed compatibiltiy with PHP 4.1.0 2005-04-24 19:18:41 +00:00
moodler
7f3f41ecfb Added some reportlink classed to the report links 2005-04-13 07:45:47 +00:00
moodler
494b9296e9 Renamed get_user_timezone to get_user_timezone_offset, because Jon has
plans for that function name
2005-04-08 07:42:50 +00:00
stronk7
8a5f8d79d1 chat-report log action is now restored properly. 2005-04-02 00:33:44 +00:00
martinlanghoff
a9a9bdba55 Merged from MOODLE_14_STABLE - insert_record() - major efficiency improvements for Postgres databases on insert. Also fixed many calls to insert_record() which discard the returned record id to not ask for the record id. 2005-04-01 05:55:10 +00:00
stronk7
200371e9f7 Now chat->name works under filterall. 2005-03-27 11:36:54 +00:00
moodler
a71efae327 WHen deleting a chat, delete the messages etc too. Bug 2792 2005-03-27 05:56:23 +00:00
defacer
3f95436073 Respect $CFG->showblocksonmodpages. 2005-03-16 03:26:21 +00:00
moodler
6e0c7c2175 New strings to turn Blocks editing on and off 2005-03-14 01:34:18 +00:00
moodler
b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00
skodak
e2a1a0fa49 SERVER_ADDR is not defined in IIS, changing initial value to 127.0.0.1 2005-03-12 21:26:54 +00:00
moodler
8f7dc7f1c7 Variety of small fixes, but mostly related to how the recent activity
block is constructed.  A new function exists to pump these notes out
in a standard way :  print_recent_activity_note.

Module dependencies also updated because of this.
2005-03-10 13:30:57 +00:00
defacer
6912a9ecb8 Fix for bug 2669:
Quizzes and Chats in the front page had the site shortname twice in the navbar.
2005-03-02 22:35:09 +00:00
defacer
dffd4bb948 You know you are beyond hope of redemption when you make "API uniformity" changes. ;-) 2005-03-02 05:56:24 +00:00
defacer
664923229c Since $PAGE knows where the adminblock should be printed, let it do the printing. 2005-03-02 05:47:39 +00:00
defacer
3615b2b259 Simplifying to death using the new blocks_setup() 2005-03-02 05:19:47 +00:00
defacer
c4d588cc24 Added require_once for pagelib.php.
Now deleting courses with these activities in works just fine once more!
2005-02-28 04:23:52 +00:00
defacer
880d86758b Each mod is responsible to deleting its own blocks; what I had in mind for
centralizing this wouldn't work out. Use the flexible page_import_types so that
we don't create one more dependency when writing new code.
2005-02-28 04:18:13 +00:00
defacer
f16bbfd5a8 Add hooks for exporting the page types used by each module. 2005-02-28 03:59:57 +00:00
moodler
3b9f38bc5d FIxed popup window for users in chat window 2005-02-25 12:40:03 +00:00
moodler
b9795750e5 Er, last fix was in wrong frame. :-) 2005-02-25 12:35:20 +00:00
moodler
18212a7afe Try to make all links "pop out" of the frame 2005-02-25 12:28:02 +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
68eb9f32e4 added style sheet to message panel 2005-02-13 16:30:16 +00:00
stronk7
95e72c12d0 Now retrieving only needed fields! 2005-02-13 00:42:29 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
skodak
e7fbd0b3f2 Chatd cleanup finished, from now on only bug fixing. 2005-02-12 10:54:25 +00:00
skodak
2debdf0476 FF issue seems to be solved by explicit call to document.close() 2005-02-10 19:25:42 +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
moodler
89f688b6c6 Removed some THEME 2005-02-10 18:22:31 +00:00
defacer
4f0d565da6 Bringing Quiz in line with Martin's "make Chat into a showcase for pages" idea. 2005-02-10 01:59:11 +00:00
moodler
37dfb27974 Moved chat PAGE stuff out of core as an example 2005-02-09 16:44:35 +00:00
defacer
5ccb85f048 Voila! Blocks support now in chats! 2005-02-09 15:47:22 +00:00
skodak
475bd5cb71 fixed problems with forced course language 2005-02-08 21:30:47 +00:00
skodak
a776c371e7 fixed typos in chat_force_language(), added encoding to message page, minor cleanup 2005-02-08 21:23:19 +00:00
moodler
b61aed4297 Fixed up some layout issues in the configuration files 2005-02-08 09:23:21 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
skodak
3dfd307fe0 maybe fixed double posts, fixed javascript errors, solved problems with reloading 2005-02-07 20:33:44 +00:00
skodak
9824495127 detection of oversized requests from clients 2005-02-06 10:06:25 +00:00
skodak
342769e94d typo in javascript code, message submit did not work :-( 2005-02-04 22:58:28 +00:00
skodak
2ac0d13b6f reverted some unfinished changes in chatd - enter message 2005-02-04 21:14:19 +00:00
skodak
94b3dde15b update code clarification - thanks Eloy! 2005-02-04 00:43:45 +00:00