Old modules and plugins

Note: This database has been replaced by the Moodle Plugins Directory.

Small Hack: Users Upload Hack

Type: Small Hack
Requires: Moodle 1.7
Status: Contributed
Maintainer(s): Peter Majewski

I'll bet your users would like to have opportunity to upload their own files into your Moodle. It's not normally possible with Moodle 1.7. It is possible with File Manager block, but:

  1. It's a block - not very friendly to novice users and is not working very well with blogs.
  2. There is a problem with letting everyone see your files without not user friendly manipulations (shares thing)

As long, as File Manager is useful for users to professionally manage their files, I've done a little hack to HTML editor, so that every user can upload files to his own /user/ID directory when he has no managefiles capability. He just need to click "Add image" icon in HTML editor and will see full files editor instead of simple standard one.

It works in forums and blogs for now. And it's a nice thing to course publishers - they can upload images and multimedia files that they would like to add to the description of a course.

You just have to upload 4 files into /lib/editor/htmlarea folder or if you have newer or older files, check what I changed and copy it to your files.

Every time I've modified something in file, I've added before modification:

// modified for Ekademia.pl by MajewskiBC.pl

end after modification:

// end of modification

Except for userfiles.php which is new file made of coursefiles.php and have many but similar changes (You will find info at the beginning of the file)

TO DO:
  1. Capability to manage it better
  2. Maybe user quota
Have fun ;)
Peter Majewski
Ekademia.pl


Record added by Piotr Majewski - Saturday, 14 June 2008, 9:11 AM
Last modified - Saturday, 14 June 2008, 9:12 AM