userdir "returnfolder" module

userdir "returnfolder" module

Janne Mikkonen -
回帖数:37
Core developers的头像
Hi all,

I made some finger practicing and the outcome was return userdir module. It's based on Teemu's returnfolder.

Are there any interested testers? It'll need some polishing fist, but It could be out by weekend...

- Janne -
回复Janne Mikkonen

Re: userdir "returnfolder" module

Chardelle Busch -
Core developers的头像

Hi Janne,

I have a test site and love to test blocks and modules.  I'm looking for a good way for users to upload an assignment to be checked by the course facilitator on a weekly basis but with no time limitations like the assignment module--so basically an open return folder.  Feedback on the assignments could be given via the dialogue module. 

What is the return userdir module?

回复Chardelle Busch

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Hi Chardelle

It this but made to module.

I call it Return/user folder or directory module because I have some other plans for it, so eventually it isn't just a returnfolder.

If you have Moodle version 1.5 dev then you could try It and give your opinion about it. It's not ready yet but it should work in test usage.

I'm actually having problems with restoring, hopefully I'll learn how Eloy's backup/restore libraries work.

- Janne -
回复Janne Mikkonen

Re: userdir "returnfolder" module

Teemu Sumi -
I can help you with restoring problems. In this week I made backup and restore  functions to work with my own Form module. Form module will be ready soon.


Teemu
回复Teemu Sumi

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Thanks Teemu

I appreciate it 眨眼

Backing up goes well without any errors but does all the necessary data go into moolde.xml. That's one thing that needs to be checked out.

Restoring runs half way through but stops when actual (second table) data should be restored...

- Janne -
回复Janne Mikkonen

Re: userdir "returnfolder" module

Chardelle Busch -
Core developers的头像

Hi Janne,

I was waiting for 1.5 to become a little more stable before uploading it, but when I do I'll test your user directory module. I had tested Teemu's returnfolder, but that was a long time ago and I think it has changed some since then.

And Teemu,

What's your Form module?  Sounds like something I've been thinking about for awhile--I want to test that too!

Cool guys!

回复Chardelle Busch

Re: userdir "returnfolder" module

Teemu Sumi -
It's a form tool of that famous and cool Data module. Data module is some kind of super module big grinbig grinbig grin which can do anything so that's why it's not ready yet (I have no idea who's doing that). Maybe tomorrow form module is ready for testers. You can make forms of your own taste with that.


Teemu
回复Teemu Sumi

Re: userdir "returnfolder" module

Ger Tielemans -

Would be fantastic! (And the results go to the database?)

Is there a page in moodle.org where you can see who is working on what?

回复Ger Tielemans

Re: userdir "returnfolder" module

Teemu Sumi -
I just made form tool of my own and when I told that to Martin, he said that have I thought about Data Module. So I am just guessing what Data Module would be like. Form module is ready for testers today. Form tool writes everything to database and reads everything from database.  All the form tools I have seen use text file.


Teemu
回复Teemu Sumi

Re: userdir "returnfolder" module

Jacob Romeyn -
Is the form tool fully customizable  so that for example data could be taken from the gradebook  and a student report card generated?
回复Chardelle Busch

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Chardelle

Well I've installed it in version 1.4+ and it's working a ok 眨眼 so your installation doesn't need to be 1.5 dev.

Teemu

Open lib.php and write this replace move_uploaded_file part with (line 263):

if (!(move_uploaded_file($upload->tmp_name, $newfile))) {
        // Try to copy file
    if(!(copy($upload->tmp_name, $newfile))) {
        error($struploadproblem);
    }
}


So basically you'll try to use copy function if move_uploaded_file fails. Why it fails? Are there any error messages on screen or error_log?

- Janne -
回复Janne Mikkonen

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
You can also test it at location http://edu.jaiko.fi/dev

Student accounts
student1:bart
cartman:meatball

Teacher account
teacher:homer

- Janne -

回复Janne Mikkonen

Re: userdir "returnfolder" module

Jacob Romeyn -

Hi Janne

I was checking out the return folder at: http://edu.jaiko.fi/dev

I uploaded a html file and deleted it again and then the upload function disapeared.  I logged in as teacher again but no upload functionsurprise

What happened?

Jacob

回复Jacob Romeyn

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Hi Jacob

The teacher interface do not include upload function. Only student's can upload files to teachers.

Would it be better if teacher could also direct (and upload) files back to students?

- Janne -
回复Janne Mikkonen

Re: userdir "returnfolder" module

Jacob Romeyn -
It would be good if it could work both ways.
回复Jacob Romeyn

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Sure thing 微笑

I'm also thinking about grading, comments and versioning.
回复Janne Mikkonen

Re: userdir "returnfolder" module

Chardelle Busch -
Core developers的头像

The module looks great Janne.  The one thing I was thinking was to be able to add feedback (comments) to an uploaded file and it sounds like your plans will take care of everything. 

The only thing I can think of is that instead of having the Show All option to be clicked for each file, have the option be in setting up the module.  So you could make the entire folder either a private one (student can only see their files) or an "open" folder (everyone can see all of the files), or by group.

回复Janne Mikkonen

Re: userdir "returnfolder" module

Teemu Sumi -
Those changes didn't help. Still the same Error message:

Warning
: Unable to create '/home/mediamaisteri/5/moddata/userdir/1/77/file_1099299384.doc': No such file or directory in /var/www/mediamaisteri/moodle/mod/userdir/lib.php on line 263

Warning: Unable to move '/tmp/phpGTwhHe' to '/home/mediamaisteri/5/moddata/userdir/1/77/file_1099299384.doc' in /var/www/mediamaisteri/moodle/mod/userdir/lib.php on line 263

Warning: Unable to create '/home/mediamaisteri/5/moddata/userdir/1/77/file_1099299384.doc': No such file or directory in /var/www/mediamaisteri/moodle/mod/userdir/lib.php on line 265


It shows that Max size is 0 kB in file uploading page but I adjusted that to 5 MB when I created the activity.


Teemu
回复Janne Mikkonen

Re: userdir "returnfolder" module

Teemu Sumi -
move_uploaded_file() doesn't work on my system. mixed I DON'T BELIVE THIS!!!  I can't debug it because file uploading doesn't work.


Teemu
回复Janne Mikkonen

Re: userdir "returnfolder" module

Jaime Alamo -
Thanks Teemu and Janne.

I've installed the returnfolder module in the production site after having seen it working in the mediamaisteri web. No doubt, it will work properly. I'll tell you if any problem.

Instead of "returnfolder toward one teacher" it could become a "sharefolder" that could be shared with :
  1. One teacher (as now) for grading, comments, ... or, just for storage and so, be able to include images in journals, forums, wikis, dialogues, ...
  2. the group he/she belongs to, to help in collaborative works, i.e. extending it to be group aware.
  3. the whole course participants.
At this moment, I don't understand a student's private area hidden to the teacher, neither open outside the course. But may be instances in which these could be useful as well, as Chardelle suggests.

And yes! it will be useful for the teacher to upload files also.

回复Janne Mikkonen

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Small update: Backing up and Restoring should work now and It also should be PostgreSQL compliant.

Nothing more at this time.

- Janne -
回复Janne Mikkonen

Re: userdir "returnfolder" module

Teemu Sumi -
Works fine!

 My original Returnfolder's feature requests came from Janne Orkola and Mats Rajalakso. I just coded what those guys suggested.


Teemu
回复Teemu Sumi

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Yes! I know 眨眼

I just couldn't help my self 大笑 大笑

Here is a version with versioning included...
回复Janne Mikkonen

Re: userdir "returnfolder" module

Chardelle Busch -
Core developers的头像

Hi Janne,

Ok, is this for 1.5?

Just installed userdir_new on test site and get error: Parse error: parse error, unexpected '=', expecting T_STRING or T_VARIABLE or '{' or '$' in /..../test/mod/userdir/view.php on line 128

Also, you might put the lang file into a lang folder just to make it more clear where it should go.

Chardelle

回复Chardelle Busch

Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Ups! Just an careless programming there 脸红 I've included fixed version for you.

Basically yes, although it needs some enhancemets for the latest version 1.5dev.



回复Janne Mikkonen

Vast: Re: userdir "returnfolder" module

Klaus Kuusela -
 Are these modifications now ready ?

I upgraded from 1.4.3 to 1.5.1 and unzipped userdir_new_fixed.zip but userdir didn't work anymore. View.php gave me an empty page...
回复Klaus Kuusela

Re: Vast: Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
I haven't look at this module after that last post, so it's highly possible that it doesn't work with version 1.5.1.
回复Janne Mikkonen

Re: Vast: Re: userdir "returnfolder" module

Jaime Alamo -
I fixed it for 1.5.1 two or three days ago smile. Just for the use of :
  1. mimetypes,
  2. the sesskey,
  3. version,
  4. the "mdl_" -> "prefix_" for mysql (it was already this way for postgres7)
It is an import activity in my teaching.  Thanks to  Janne and Teemu.

One additionwink, that maybe someone will not like: When added to course 1 (site main page) it doesn´t allow to select "to which administrator is sent" (it is hiddenly sent to main admin). So it becomes a nearly "private personal folder" in moodle cool

May be other differences around. I don't remember ... (Spanish es_es lang, ...)

Also this last version hasn't been in production. May have some bugs , so take care and test it first. And tell me about them.big grin




回复Jaime Alamo

Re: Vast: Re: userdir "returnfolder" module

Janne Mikkonen -
Core developers的头像
Great job Jaime 满意 (since I don't have time for this module right now, you're a life saver, man 大笑)
回复Jaime Alamo

Re: Vast: Re: userdir "returnfolder" module

Paul Nijbakker -
Ahem, far from me to beg, but Moodle version 1.6. is out and I was wondering if anyone could find the time to make this much-loved module compatible? (pretty please?) smile

Rgrds,
Paul.
附件 beg.gif
回复Janne Mikkonen

Re: userdir "returnfolder" module

Adma Lim -
Hi, is this returnfolder module available for version 1.9 /1.9.1?


i read about it with much interest from http://docs.moodle.org/en/Return_folder_module


回复Adma Lim

Re: userdir "returnfolder" module

Paul Nijbakker -
Hi Adma,

As far as I know the Returnfolder module was supplanted by the Database module with which you can achieve the same functionality (and much more).

Rgrds,
Paul.