107 Commits

Author SHA1 Message Date
skodak
636069a369 MDL-8021 resource "Link to a file or web site", when created, doesn't open in a new window - fixed recourse typo 2006-12-29 20:16:50 +00:00
skodak
1936c10e54 fixed obsoleted use of course->category to find site course - now used SITEID instead MDL-1899 2006-11-12 08:55:13 +00:00
toyomoyo
e22482a73e fix for MDL-7300, mssql not null problem 2006-11-03 08:46:50 +00:00
skodak
a69be0d861 improved handling of resource file/directory references when renaming and deleting files in file manager. It is now fully configurable too. MDL-6132 2006-09-25 14:12:46 +00:00
toyomoyo
d02eededf7 adding capabilities 2006-09-06 08:55:23 +00:00
skodak
f9d5371b28 new function get_coursemodule_from_id() is now used for obtaining of valid $cm from coursemodule id SC#283 2006-08-08 22:09:55 +00:00
skodak
dbfa9ccd8d Bug #5996 - block+resource=problem; merged from MOODLE_16_STABLE 2006-07-03 06:26:38 +00:00
skodak
d2b23346c9 block editing now uses PARAM_BOOL 2006-04-23 20:58:06 +00:00
skodak
1b1d34225b incorrect usage of clean_filename() replaced with clean_param($text, PARAM_SAFEDIR) 2006-03-04 12:37:29 +00:00
stronk7
f0c6abbfe9 Now delete_instance() in resource classes receives the
full $resource record instead of the $id alone. Needed
to be able to specialize such method in some resource types.

Merged from MOODLE_15_STABLE
2005-12-06 00:02:40 +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
moodler
0440482f1d Two methods added to allow resources to be displayed with the course
blocks. Uses the outstanding Page class code by Jon P. (SE)
2005-08-14 05:34:56 +00:00
moodler
3714735752 Hide repository type by default 2005-07-15 07:22:23 +00:00
moodler
3cc633011d Hack fix for course languages in resources (bug 2922) 2005-04-15 07:05:59 +00:00
moodler
713d78eafa New feature for resources ... Local File Resources
A Resource Parameter controls this (it defaults to OFF).

When on, you see a third button when selecting a file, which lets
you select a LOCAL file on your own filesystem (but it isn't uploaded).

The local file is included in the web page when viewed.  All users see
a link that helps them set up a user_preference for the location of
these files on their own system (usually a CD_ROM drive).
2005-04-02 12:11:27 +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
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
moodler
9fad2dec0f Removed $THEME from around the place 2005-02-01 03:46:20 +00:00
ikawhero
2e708fa096 General tidy up of code, changes for XHTML and accessibility compatibility. 2005-01-18 09:46:01 +00:00
moodler
6aac6eef8c Access fixes, merged from stable 2004-11-11 07:44:14 +00:00
moodler
657e7903b6 Some changes for XHTML compatibility 2004-10-07 08:08:56 +00:00
moodler
79035d46c7 Merged resource->type checks from stable 2004-09-29 03:12:31 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
moodler
339352427c Merged new settings from stable 2004-08-28 17:20:55 +00:00
moodler
7c990f68d6 Fixed window choices on resources so that they use a radio button now.
bug 1741
2004-08-14 11:54:32 +00:00
moodler
3d30a455cb Lots of little cleanups and these new things:
- Reference resources are now history -> converted to HTML pages
      (the backup/restore has been taken care of, Eloy)

  - HTML pages and Text pages can now have popups!

  - Summaries are not shown when they should be blank (eg if they
    just contain a <br /> as the HTML editor usually inserts.

  - Fixed some notices for PHP 5
2004-08-08 14:33:23 +00:00
moodler
6da4b2618f The resource types are now always displayed in a standard order
no matter what the language.
2004-08-02 19:11:15 +00:00
moodler
427c8ccb1a Files starting with a slash are treated as URLs too 2004-08-01 06:36:42 +00:00
moodler
8588f87283 Fixed URL detection 2004-07-30 09:47:41 +00:00
moodler
1aef6fb798 Fixed lots of bodgy little things 2004-07-28 06:56:59 +00:00
moodler
85e8239eac Fix popups and icons for resources 2004-07-26 16:21:56 +00:00
moodler
d18830fe31 Merged in the new resource structure to TRUNK 2004-07-25 14:32:05 +00:00
moodler
99a9b2d4c3 External resources where we don't know the type are given the web icon 2004-05-29 06:24:23 +00:00
moodler
7e62329aa0 Use the folder icon for Directory resources 2004-05-02 17:18:48 +00:00
moodler
7ba54e1b78 A new resource type called Directory ... it simply lists all the
files in a directory to make them available to students.
2004-05-02 15:10:04 +00:00
moodler
7e1500acd7 WEBLINKs and WEBPAGEs can have icons too 2004-04-26 15:44:25 +00:00
moodler
9d361034ec Much requested: Uploaded resources are now shown using the relevant icon. 2004-04-26 15:31:22 +00:00
moodler
83891eda00 New defaults for popup window settings, which is window off, but all
sub-settings on.

These default defaults can be defined on the page

  Admin -> Config -> Modules -> Resource -> Settings
2003-12-09 04:00:33 +00:00
willcast
bf46cd2267 - Adding error trapping to the fetching function and giving error messages accordandly.
- Adding Moodle as the web agent!!! :)

PLEASE, edit the new language strings if necessary.
2003-11-28 03:27:24 +00:00
moodler
b2b8471e63 Removed some tabs 2003-11-28 02:19:20 +00:00
moodler
3bfe3922c2 A few rearrangments in the new code for filtered external pages 2003-11-28 02:11:02 +00:00
willcast
8367faba8b - External webpage resources now are parsed and automatic links are added to the glossary terms... Only if $CFG->filterexternalpages is enabled. 2003-11-27 19:09:47 +00:00
willcast
af65e103df - External webpage resources now are parsed and automatic links are added to the glossary terms... Only if $CFG->filterexternalpages is enabled. 2003-11-27 19:04:36 +00:00
moodler
5e91dd3f36 Another setting to allow a default URL in webpage and weblink 2003-11-26 11:47:51 +00:00
moodler
66c2503062 Added a new setting called "resource_websearch" ... it is simply a
URL that is offered to users as a place to to find URLs.  By default
it's google.com, but could easily be a local repository of files.
2003-11-25 08:01:52 +00:00
moodler
8dddba42ce Modularised some of the processing for "extra" information such as
information for popup windows on resources and labels
2003-10-22 13:14:56 +00:00
stronk7
84caf038de Included resource_get_participants() function. 2003-09-07 22:01:47 +00:00
moodler
5925d0ef5b New configuration screen for the resources module 2003-08-18 17:46:51 +00:00
moodler
86aa7ccfdf New feature - "Web link" resources can now specify a popup window
fullscreen is currently the only feature left out of this .. I had
trouble getting it to work consistently so I've left it out as being
more troubles than it's worth.
2003-07-20 13:53:31 +00:00