martinlanghoff [Tue, 25 Jan 2005 06:05:21 +0000 (06:05 +0000)]
Merged from MOODLE_14_STABLE
Importing validateurlsyntax.php from http://www.canowhoopass.com/guides/regex/index.php as of 15/Dec/2004, provides
- validateUrlSyntax()
- validateEmailSyntax()
- validateFtpSyntax()
mjollnir_ [Tue, 25 Jan 2005 04:33:02 +0000 (04:33 +0000)]
Update for meta courses. New table renamed from meta_course to course_meta (and upgrade script provided in mysql.php and postgres7.php) and new field in course table renamed from meta_course to metacourse. Associated changes in code. Please test me!
defacer [Tue, 25 Jan 2005 03:01:09 +0000 (03:01 +0000)]
Oops, I committed this along with the function renames by mistake. Anyway,
now fixing a small cosmetic glitch and giving the correct commit message:
The latest and greatest version of the blocks documentation is here... Lots
of work and polishing to make it as useful as possible. I daresay that it's
pretty complete for its purpose now.
urs_hunkler [Sun, 23 Jan 2005 22:36:00 +0000 (22:36 +0000)]
First I extracted 3 css files from "styles.php": "layout.css", "typographie.css" and "color.css". This leads to better handling and the files can be better overlooked. When woring on the color you find only this definitions in one file, them sam econcerns to typhographie and layout (positioning, measurement of objects, borders etc.)
I started to resort the css files and added comments to make them easier readable and understandable.
defacer [Sun, 23 Jan 2005 21:38:01 +0000 (21:38 +0000)]
According to the final comments in SC#65:
Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.
The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
dhawes [Sun, 23 Jan 2005 16:16:28 +0000 (16:16 +0000)]
latest changes to rss_client block. Now uses latest magpie file for fetch, parse and cache. Still caches the result string as well to avoid excessive file reads and network hits. Fixed bug where non-admin users were not seeing the add/edit feeds link within the block when all users are allowed to edit. Now uses moodles' format_text function on entire block contents.
dhawes [Sun, 23 Jan 2005 15:47:31 +0000 (15:47 +0000)]
Magpie 0.7.1 - all relevant files. Simplog had been using only one of these files and it was renamed. Simplog had written an Atom feed parser based on magpie and was losing out on much of the magpie functionality because of it. This latest release supports Atom feeds so the need to for separate objects is gone. By using the full release upgrades become easier in the future. We also gain some of magpie's lost feature set such as the use of a modified Snoopy http client for retrieving feeds instead of an fopen() call - which means that php.ini does not need to be modified to turn allow_url_fopen to On.
dhawes [Sun, 23 Jan 2005 15:35:45 +0000 (15:35 +0000)]
RSS and Atom now handled by latest version of magpierss (magpierss.sourceforge.com). class.RSS.php was a renamed include file from magpie which was 2 versions old. I've reworked the code to use the official magpie release which should allow for easier upgrades in the future.
gustav_delius [Sat, 22 Jan 2005 22:27:16 +0000 (22:27 +0000)]
There is now a mechanism by which question types can have their own setup options. Because this does not change anything unless it is used I hope it is o.k. that I am submitting this without asking first. This is based on code by Mad Alex.
urs_hunkler [Fri, 21 Jan 2005 14:21:14 +0000 (14:21 +0000)]
This is in principle the theme I've shown in the forums. I changed the colors and made it XHTML 1.0 suitable. It relies on the new DIV framework I added to the course, forum and the wiki pages. The layout-table with named cells is used for the course pages.
For an overvies of the DIV framework and the DIVs in the header and footer please look at http://moodle.org/mod/wiki/view.php?id=2935&userid=0&groupid=0&wikipage=CoursePage
The CSS is not yet well structured - it's just working for a starting. For the offical release I'll have to rebuild the CSS to match the final needs. It's lacking an easy CSS for beginners too.
Please tell me, if you find some bugs or have some remarks - or if you just like it ;-)