883 Commits

Author SHA1 Message Date
moodler
546b301b44 Don't print group pictures if none is defined 2004-02-10 14:36:12 +00:00
moodler
7721c69499 save_user_image ---> save_profile_image so it works for groups too 2004-02-10 14:24:36 +00:00
moodler
35067c438f print_group_picture is more simple again, uses JPEGs
Put the fancy PNG code in a new function for later print_png()
2004-02-10 14:22:20 +00:00
moodler
0e2585ac0f Reject Opera when it is pretending to be IE 2004-02-10 14:20:44 +00:00
moodler
8eaa4c61d5 The text caching is now sensitive on the temporary variable
$CFG->currenttextiscacheable

Any filter can set this to FALSE and the current text will not be cached
2004-02-10 09:59:46 +00:00
moodler
e11dc9b682 Another little hack to complete the course-level forcelanguage 2004-02-10 08:10:04 +00:00
moodler
d523d2ead1 Some configuration options now added to the Configuration page.
opentogoogle

  textfilters

  cachetext

They should upgrade cleanly from anything you may have in config.php
2004-02-10 05:05:28 +00:00
moodler
45121ffbf3 text_cache --> cache_text much better 2004-02-09 13:10:19 +00:00
moodler
f0aa2fed24 Removed a small bit of debugging code 2004-02-09 12:33:44 +00:00
moodler
d363047eb0 TEXT CACHING
------------

I have a site which really needs this, so I went ahead with it already.

This add-on will cache formatted texts in the database and use them
for a specified timeperiod.

By default it is disabled.   Enable it with:

  $CFG->cachetext = 600;   // in seconds
2004-02-09 12:27:34 +00:00
moodler
0cc6fa6a1f Emails can take on course language as well 2004-02-09 08:49:54 +00:00
moodler
b3153e4b7d Small hack to force a particular language within a course.
No interface on course/edit.php ... I want to try this on
moodle.org for a while to try and stop the encoding problems
2004-02-09 07:31:04 +00:00
moodler
6b1ce6b2e0 Some wording changes. 2004-02-08 09:52:24 +00:00
moodler
0ad4eb5f63 Add institution to the data returned about course students 2004-02-06 12:03:30 +00:00
moodler
4da1a0a1db Improvements to the way the log upgrading works.
Centralised with an interface now.
2004-02-05 09:55:50 +00:00
moodler
9b591be622 Better error messages for restricted users 2004-02-04 12:59:05 +00:00
moodler
b5abf3e824 Fixed a Typo - thanks Bruno Vernier 2004-02-04 06:16:59 +00:00
moodler
d4469f2a84 Clean up of insert_record with some better error-checking 2004-02-03 15:18:41 +00:00
moodler
791b42ee1d Add framename target for logs links 2004-02-03 10:21:20 +00:00
moodler
95d4575736 If there aren't many logs to process, then do it now during the main
upgrade, but otherwise, tell the upgrader to run the separate script
at admin/upgrade_logs.php later on.
2004-02-03 04:56:22 +00:00
moodler
35faf19e80 SOme extra information when upgrading old logs 2004-02-03 02:27:33 +00:00
stronk7
0180f73f48 Now, this function can be called twice from the same page.
In participants list, when showing teaches, the country of
the students was not showed.
Please, check. I haven't found problems with this, but...
2004-02-01 12:07:36 +00:00
fiedorow
36268d0271 Added all the presentation and content tags from the MathML 1.01 specification 2004-01-31 22:02:01 +00:00
moodler
b56fad0b50 Upgrade process can be long, so flush regularly 2004-01-31 15:33:12 +00:00
moodler
69d79bc31f OK, some big improvements to the logs.
Logs now include a field called modid which contains the coursemodule id.

This makes it now possible to

   - see complete logs per-activity

   - do backup/restore of logs

The upgrade process will currently try to scan all the old logs and
rebuild this field based on available data (especially forums).

STILL TO DO:  alter all the non-forum modules to send the coursemodule id
2004-01-31 14:47:57 +00:00
moodler
3d35e6b732 Putting in a placeholder when counting or gettig users in group 0
(return nothing for now)
2004-01-31 04:03:46 +00:00
moodler
0720313b30 get_course_students can now look for groups as well (doesn't handle
group 0 yet)

get_course_users is more robust (fixes the journal report problem etc)
2004-01-31 03:30:31 +00:00
gustav_delius
c7cdd6ec82 moved the database update code to where it belongs 2004-01-30 21:40:31 +00:00
gustav_delius
3d94772d47 better logging of forum mail errors, see http://moodle.org/mod/forum/discuss.php?d=4865. Required the addition of an extra optional argument $user="" to add_to_log() 2004-01-30 18:21:56 +00:00
moodler
5ea64f4b2f Error message for restricted users 2004-01-30 09:55:57 +00:00
moodler
fcf9c45033 New paratmeter to insert_record called primarykey (defaults to "id")
and removed insert_record_old
2004-01-30 09:04:31 +00:00
moodler
cb98d3120c New function to restrict defined users 2004-01-30 08:25:49 +00:00
paca70
77e84a85f2 My php 4.3.4/postgres7.4 combination was thinking
that returned id-column was string and some modules were thingking that theres
insert error if return value is string.
Right now all id-colums is always integer so
this should be ok.
2004-01-30 07:45:36 +00:00
moodler
9fa6280580 When unenrolling students, remove them from groups too 2004-01-30 06:44:02 +00:00
moodler
bb8c36313c When adding a teacher, remove them as a student. 2004-01-30 05:59:33 +00:00
moodler
25be6cfff3 Upgrading ADOdb to 4.11 ... there were lots of little bug fixes 2004-01-30 03:11:47 +00:00
moodler
89f1cea654 Fixed problem with magic quotes 2004-01-30 02:25:02 +00:00
moodler
0892f7bd01 IMPORTANT! CRUCIAL CHANGE TO MAJOR FUNCTION!
Petri Asikainen rewrote insert_record to use ADOdb functions.  It might
be very slightly slower but it gets rid of all the horrible not-quite-working
PostgreSQL workarounds the old one contained.

It worked for him on PostgreSQL 7.4 and for me on MySQL 3.23 and 4.0.15,
so I'm checking it in.

Please test it thoroughly on your test systems.

Since it writes data it has the potential to stuff things up, so be
careful on production systems for a few days.
2004-01-29 15:27:21 +00:00
moodler
ba39fa10cc Change type of config->value to text (to allow longer info) 2004-01-29 04:13:55 +00:00
moodler
066af654c2 Bugfixes to set_user_preference 2004-01-28 14:47:39 +00:00
moodler
70812e39a0 Added new table called "user preferences" which can be used for
storing arbitrary preferences for each user.

Thanks to Jon Papaioannou for the first draft of this code
which I modified.
2004-01-28 14:14:19 +00:00
moodler
1d1a623391 Added msup 2004-01-28 04:42:30 +00:00
moodler
899da17470 Allowing <algebra> tag 2004-01-27 03:30:57 +00:00
moodler
6a903e0e83 Better for CSS 2004-01-26 11:47:20 +00:00
moodler
9586c1dd6b Er, much better wayto do dividiers 2004-01-26 09:54:40 +00:00
moodler
e21e20cfd7 Mod to print_table to allow dividers between rows (used on forum listing) 2004-01-26 09:48:00 +00:00
moodler
6a751fca5a Adding more tags for matsh 2004-01-26 09:15:12 +00:00
moodler
404afe6b86 Get groupmode when returning a list of instances 2004-01-26 09:13:47 +00:00
moodler
8a2c90768f Clarification to some group logic 2004-01-26 09:12:52 +00:00
gustav_delius
2e39d2f810 minor fixes, including bugs 997, 998 2004-01-25 19:37:04 +00:00