Commit Graph

165 Commits

Author SHA1 Message Date
skodak ff8889d8cf MDL-7861 still some icons left ;grr previous commid had wrong MDL id 2007-01-08 20:38:03 +00:00
skodak 0d905d9f34 MDL-7861 new class .icon and .iconsmall 2007-01-08 09:14:05 +00:00
skodak feaf5d06db MDL-8015 improved file uploading
- changed file upload api in formslib
- fixed blog attachments and related code in file.php
- fixed glossary attachments
- fixed embedded images in forum posts and blogs - only gif, png and jpeg; the problme was that svg were embedded using img tag which was wrong, the same applied to other picture formats unsupported by browsers (please note that student submitted svg should be never embedded in moodle page for security reasons)
- other minor fixes
2006-12-28 21:21:44 +00:00
skodak 7150b8ae20 MDL-7434 all images that convey information should have alt text to convey that information - part 3 2006-11-26 16:20:19 +00:00
toyomoyo baecd8cd72 dropping studentcanpost in glossary, MDL_7170 2006-11-15 03:15:59 +00:00
jamiesensei a02c77dc6e glossary form migrated to formslib
and other formslib forms now using $COURSE global
2006-11-13 07:52:01 +00:00
toyomoyo 7ee256eed3 fix for MDL-7474, provide alt text for ascending/descending icons in glossary 2006-11-13 02:20:47 +00:00
skodak 810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
stronk7 6f4bdb9c9b Prevent +/- operators (REGEXP) on glossary searches for MSSQL and Oracle. MDL-7312
Merged from MOODLE_17_STABLE
2006-10-31 20:34:12 +00:00
skodak eebc919280 MDL-6940 - I decided to rewrite the glossary comments UI, the original code (pre 1.8) was not nice at all, it is IMHO more readable now and the forms implementation could be greatly simplified; this can also serve as sample trusttext implementation outside of forms code 2006-10-28 21:55:19 +00:00
toyomoyo 6cb34d443d merged replacing studentcanpost with capability 2006-10-23 02:49:05 +00:00
vyshane 583b57b42d Changed <module>_print_recent_activity() functions so that they don't use $isteacher. However, I've left the $isteacher parameter in the functions, for backward compatibility so as not to break thrid party modules. Should we remove the parameter now? 2006-09-24 14:01:50 +00:00
toyomoyo 9c37662f22 replacing deprecated funciton calls with capability calls 2006-09-19 09:16:24 +00:00
toyomoyo 26663a2386 replacing isteacher with viewfullname capability 2006-09-06 02:14:20 +00:00
stronk7 0703d22ede One less reserved word. glossary->comment is out! 2006-09-04 20:37:27 +00:00
toyomoyo 81e956b964 added some capabilities 2006-08-30 08:43:17 +00:00
skodak cf8eaebb06 fixed warning in glossary recent activity from deteted entries 2006-08-26 19:38:32 +00:00
skodak b3e570450f removing some isteacher()s from glossary 2006-08-26 19:19:36 +00:00
skodak 7d8a3cb06a trusttext:
* proposed by Martin Dougiamas
 * implemented by skodak

Usage:
1/ change enabletrusttext to yes in site settings (it is off by default) or set it in config.php
2/ assign moodle/site:trustcontent capability to users whose text submitted in glossary entries, comments, forum posts etc. should not be cleaned == they can use javascript or any other forbidden tags in glossary and forums...

done:
 * core
 * glossary (without proper upgrade)

to do:
 * data cleaning in upgrades
 * forum, blocks and some other places (MD decides)
2006-08-26 13:00:07 +00:00
moodler 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
moodler dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
moodler 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
skodak 95d5682927 Bug #6170 - Glossary bug: it displays nothing when autolinking to non-ascii text and other minor cleanup; merged from MOODLE_16_STABLE 2006-07-30 22:22:22 +00:00
skodak 24c1be8880 sanitize submitted numerical values; merged from MOODLE_16_STABLE 2006-05-26 11:39:12 +00:00
skodak 9cae379921 fixed typo, undefined $ents 2006-04-22 17:33:22 +00:00
skodak 9f79b50f05 fixed missing global $CFG - anyway it worked even without it :-D 2006-03-08 11:20:38 +00:00
skodak c07549b6e2 fixed coding style of unicode db detection 2006-03-06 20:30:00 +00:00
skodak 212039c0d8 utf8 related cleanup in glossary import and export code - please test 2006-03-03 19:49:08 +00:00
mjollnir_ f3221af9e5 Initial checkin of stats (from processing the log table).
I will write up some information about it for the developers wiki.
2005-09-01 04:14:31 +00:00
skodak 24fb69e111 removed file pop-ups 2; merged from MOODLE_15_STABLE 2005-07-12 18:53:14 +00:00
skodak d96624ca54 removed file pop-ups; merged from MOODLE_15_STABLE 2005-07-12 15:37:21 +00:00
stronk7 c07ca217f0 Using the time CSS class properly.
Merged from MOODLE_15_STABLE
2005-06-19 16:50:37 +00:00
stronk7 ece6d42744 Separate icons a bit...
Merged from MOODLE_15_STABLE
2005-06-09 23:29:10 +00:00
stronk7 894ff63f8f Tabs are out 2005-05-16 22:22:31 +00:00
stronk7 0f9a668f08 When we are printing a definition, avoiding concepts and
aliases of he entry itself, take out all the <a>...<a>
tags too!. Bug 3056.
(http://moodle.org/bugs/bug.php?op=show&bugid=3056)
2005-04-27 16:04:52 +00:00
stronk7 50aaf6fed6 Now some potential tab missing problem is solved. It causes some
problems with loooong tabs but Martin is solving it just now (long
images).
2005-03-30 17:59:49 +00:00
stronk7 5bd9aa933a Now glossary->name is working under filterall. It was really complex!
Just thinking about to add support for filterall inside:
   - category->name
   - concept->name
   - filter!
2005-03-30 11:14:19 +00:00
moodler 0f6d2c4cf5 Don't echo print_tabs 2005-03-15 09:47:03 +00:00
moodler 929f35f6d3 Using the new tab code (SE) 2005-03-15 09:25:03 +00:00
moodler a736e963a5 New log entry to show when a glossary entry is viewed 2005-03-10 14:38:04 +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
moodler a8466100f3 Removing THEME variable and replacing with CSS (SE) 2005-03-10 08:32:10 +00:00
moodler 3a26f0eac2 Some more style stuff (SE) 2005-03-08 09:44:26 +00:00
moodler f1e0649c1c Removed files/mimetype.php and put it into lib/filelib.php instead
where it always should have been.
2005-03-07 11:32:03 +00:00
moodler e19a635c98 Removing the old <nolink> tags. In some cases using both <span class="nolink">
and <nolink> together was causing some problems. (SE)
2005-02-25 12:36:27 +00:00
moodler 91b4cb6867 More style changes. Will it ever end? (SE) 2005-02-25 09:16:54 +00:00
moodler 9362b9b670 More CSS style changes. General tidy up, changed " to ' where appropriate. 2005-02-25 07:58:03 +00:00
stronk7 92fac4b251 Now 0 rates are supported in glossary. Bug 2582
(http://moodle.org/bugs/bug.php?op=show&bugid=2582)
2005-02-18 01:00:42 +00:00
stronk7 6c3512329b Done. Now:
- students only view entries from visible glossaries.
- teachers view any entry from their course and only visible from global glossaries.
- admins view any entry from any course and any entry from global glossaries too.

Part of bug 2566
(http://moodle.org/bugs/bug.php?op=show&bugid=2566)
2005-02-17 18:58:53 +00:00
moodler 5e497e4e7a Some more styles 2005-02-17 09:25:05 +00:00