11320 Commits

Author SHA1 Message Date
moodler
fb830a1b60 Merged isteacher fix from stable 2005-02-08 07:45:53 +00:00
moodler
3dcdf943a2 Some better feedback about lack of XSLT functions 2005-02-08 07:23:04 +00:00
moodler
9ff5e44a93 Added Blackboard restore using XSLT. Works with BB 5.5 and BB 6.0.
Completely untested by me but it LOOKS like it should work.  It's quite
standalone, and is basically a single function call during the restore
precheck which looks in the backup to see if it's a BB file, then
converts it using XSLT.

Apart from a little tidyup and renaming, I added a check so that it
should just silently fail if XSLT functions aren't available

Many thanks to Ziba Scott <ziba@linuxbox.com> who wrote it!
2005-02-08 07:19:49 +00:00
moodler
9c41fb8eb4 Merged from stable bug 2513 2005-02-08 06:22:04 +00:00
martinlanghoff
d6a49dab9f Merged from MOODLE_14_STABLE - fix_course_sortorder() bug #2509 - Should fix overlaps when moving categories with large gaps -- affects only mysql. Prevent from landing even near the newly assigned range during the temporary shift. 2005-02-08 03:42:20 +00:00
mjollnir_
0bedb18792 Removing mdl_ in sync_metacourse 2005-02-08 03:39:40 +00:00
defacer
8a47e075b3 Changing the way that applicable formats for each block are defined:
The format for each page is now the same as the id attribute of the
BODY tag, which in turn is a simple function of the script's relative path:

The format for e.g. a quiz view page is "mod-quiz-view". The format for the
site index is "site-index". Exception: the format for courses is not just
"course-view", but "course-view-weeks" etc.

Obviously the applicable_formats() override for each block should now take
this into account. The matching rules now are:

* You can specify the full format, e.g. "mod-quiz-view" => true
  will allow the block to be added in quizzes
* Prefixes match the full page format, e.g. "mod" matches ALL activities
* You can use "*" as a wildcard, e.g. "mod-*-view" matches just the view.php
  page of all activities
* These rules interoperate, thus "mod-*" is the same as "mod"
* "all" remains as a catch-all situation
2005-02-08 02:59:44 +00:00
mjollnir_
bb64b51aa3 First cut of email to module (or core) processing.
This patch contains:

* email_to_user will set the envelope sender to a special bounce processing address (based on $CFG settings)
* email_to_user will accept (and set) a reply-to header, to be generated by the module calling the function.

* new functions:

	* generate_email_processing_address - ALWAYS use this to generate the reply-to header. reply-to header will look like this:

	(LIMIT: 64 chars total)
	prefix - EXACTLY four chars
	encodeded, packed, moduleid (0 for core) (2 chars)
	up to 42 chars for the modules to put anything they want it (can contain userid (or, eg for forum, postids to reply to), or anything really. 42 chars is ABSOLUTE LIMIT)
	16 char hash (half an md5) of the first part of the address, together with a site "secret"

	* moodle_process_email - any non-module email processing goes here (currently used for processing bounces)

* bounce handling:

	* config settings for bounce threshold and ratio (and whether to handle bounces at all)
	* if too many bounces occur against any given user, user_not_fully_set_up will force an email address change
	* associated functions (over_bounce_threshold, set_send_count, set_bounce_count)

* handling emails to noreply address (see below)

* new script - admin/process_email.php

	This script needs to be called from your mail program for anything starting with the 4 char prefix described above (and optionally, the noreply address)
	It will bounce emails to the noreplyaddress, with a friendly "this is not a real email address" message

	It will break down and unencode the email address into moduleid and validate the half md5 hash, and call $modname_process_email (if it exists). Arguments to these functions are: $modargs (any part of the email address that isn't the prefix, modid or the hash) and the contents of the email (read from STDIN).

* associated string changes/additions

* changes in config-dist.php to give clues as to how to set this up.

MODULE WRITERS!

take a look at new functions moodle_process_email and generate_email_processing_address  in moodlelib.php for ideas about how to

	* encode and unencode the arguments your module needs to do the processing
	* how to deal with multiple "actions" for any given module.

Martin Langhoff <martin@catalyst.net.nz> will be writing up some PROPER documentation, containing amongst other things config settings for different mail servers (this was developed against Postfix).  Feel free to email me with any feedback on the code or design, penny@catalyst.net.nz.  Or post on the developer fourm.
2005-02-08 02:57:14 +00:00
defacer
b70b8fe1e0 Adding test for empty db password. 2005-02-08 02:43:36 +00:00
defacer
f6b8182732 This isn't quite ready yet, but get this diff out of my sight... 2005-02-08 02:42:29 +00:00
defacer
83a305a7e7 Renaming some $course to $courseid to make it clear to anyone reading the code... 2005-02-08 01:34:14 +00:00
mits
fb347d6c4d translated some. 2005-02-08 01:08:48 +00:00
stronk7
fff86611a2 Small typo (bug 2512)
(http://moodle.org/bugs/bug.php?op=show&bugid=2512)

Merged from MOODLE_14_STABLE
2005-02-08 01:07:45 +00:00
defacer
86a956a42a Fixing this to not show notices if a block doesn't have an id attribute. 2005-02-08 00:53:55 +00:00
defacer
0fdce319fb Centering the contents of the "add blocks" block. 2005-02-08 00:24:33 +00:00
defacer
d49a3fc5a8 Removing the inline style, migrating to styles_layout.css 2005-02-08 00:22:37 +00:00
koenr
8c3270ef5c xhtml compliance 2005-02-08 00:12:17 +00:00
defacer
685416485b This is now automatically done, no need to do it twice. 2005-02-08 00:12:11 +00:00
defacer
e1f76e76a9 Give an id attribute to the "Add Blocks" block so that the new hide/show
provisions in weblib don't print notices.
2005-02-08 00:00:21 +00:00
defacer
3524435159 The W3C valid way to write script tags is <script type="text/javascript">. 2005-02-07 23:56:54 +00:00
koenr
de1315e3d5 forgot to commit 2005-02-07 23:54:25 +00:00
stronk7
0183a6c48e One minor problem restoring categories in XHTML solved 2005-02-07 23:45:19 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
stronk7
1bbf415fe8 Now the restore process is XHTMLised 2005-02-07 23:28:52 +00:00
anvergara
d160861fdf Cambiado "Periodo de Matriculacin" por "Periodo de vigencia de la matrcula" y cambiada la explicacin correspondiente. 2005-02-07 23:24:54 +00:00
anvergara
7f29369723 Changed the enrolperiod string 2005-02-07 23:23:20 +00:00
borinsky2407
c546ca5d81 by c.borowski 2005-02-07 23:18:29 +00:00
borinsky2407
e4c54f455b by c.borowski@web.de 2005-02-07 23:17:43 +00:00
borinsky2407
c2418e53a4 *** empty log message *** 2005-02-07 23:02:29 +00:00
koenr
6c3c1c96a1 xhtml compliance -de_du done 2005-02-07 22:37:16 +00:00
mjollnir_
a45ee54ee1 Removing PHP notice in metacourse assign courses page (bug 2479) 2005-02-07 21:10:25 +00:00
mjollnir_
832e87dfd8 Fixing formatting problem (extraneous <p>) 2005-02-07 21:04:53 +00:00
skodak
3dfd307fe0 maybe fixed double posts, fixed javascript errors, solved problems with reloading 2005-02-07 20:33:44 +00:00
koenr
fb4b8fc8aa another go to get the notation of the be language correct. Hope this is the right one. 2005-02-07 18:27:43 +00:00
koenr
b08c38b0dc removed untranslated markdown.html and a temporary file 2005-02-07 18:04:01 +00:00
stronk7
5dc2d8ef3a deleted some negations used to test the restore metadata process. :-) 2005-02-07 17:58:50 +00:00
stronk7
0e90d8ec2c Some strings needed to backup & restore metacourse info. 2005-02-07 17:55:12 +00:00
stronk7
cee6968fa1 Now metacourses are working in restore too!
Please test them!!
2005-02-07 17:52:58 +00:00
moodler
7c37216deb Nolink is not only for glossaries 2005-02-07 15:06:13 +00:00
moodler
27888a2038 Disable $CFG->forum_trackreadposts completely when the user is a guest
or not logged in.
2005-02-07 11:58:49 +00:00
moodler
da17a899d7 Added class and id to print_table, and id to print_simple_box 2005-02-07 11:08:37 +00:00
koenr
4593b527fb xhtml compliance
removed head, html and body tags. Not allowed here since they are provided by moodle when parsing the page.
2005-02-07 10:41:52 +00:00
koenr
c459de0b1e xhtml compliance
removed head, html and body tags. Not allowed here since they are provided by moodle when parsing the page.
2005-02-07 09:41:29 +00:00
mjollnir_
ffed6bf316 Better fix for 2479. This time I'm 99.999999% positive it's fixed ;) 2005-02-07 09:32:24 +00:00
mjollnir_
835c8061b6 Removing db ids (found their way in from copying sql - bad) from last patch 2005-02-07 09:27:03 +00:00
mjollnir_
178ccd11c0 Fixing bug 2479. Can't figure out a way to do it with a left join at this stage but the query doesn't look too bad. Anyone who thinks they can figure out a more elegant way for it is welcome\! 2005-02-07 09:22:07 +00:00
villate
f83ea5e9c5 Translation of the teacher's manual (almost complete) 2005-02-07 08:54:28 +00:00
defacer
52b2223dec Some corrections. 2005-02-07 04:54:04 +00:00
moodler
106137d877 Fixed PARAM_ALPHA 2005-02-07 02:13:18 +00:00
moodler
333f44dab0 Handle longtimenosee of zero 2005-02-07 01:23:44 +00:00