New filemanager and others

New filemanager and others

by Teemu Sumi -
Number of replies: 58
You can download some Moodle extras on EXTRA.

Installation is like 1.2.1.

It works only with MySQL but it's easy get it to work with PostgreSQL. The reason I haven't done it yet, is I can't test any other database. Could somebody help me? I can't test Windows neither.

This packgae contains new filemanager which allow you to share directories with other courses. Resources can use those uploaded files.

Private Folder is for messages, which can be sent also to outside your course.

Returnfolder is like student's portfolio and teachers can publish student's files within course.

There is also stuff of other peoples (Hotpot and dialogue).

When 1.3 comes I will make some improvments.


Teemu
Average of ratings: -
In reply to Teemu Sumi

Re: New filemanager and others

by Tim Allen -

Teemu,

Thanks a lot for your work on this.  I want to have a look at it, but the link doesn't seem to be working.  sad

Tim.

In reply to Tim Allen

Re: New filemanager and others

by Teemu Sumi -
I checked the link and it works. Please try again. I can send emails up to 8 MB. Can I send it to you?


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by Timothy Takemoto -
I tried the link and it did not work of me either.

Is your name a version of the biblical name Timothy/Timote?

Tim
In reply to Timothy Takemoto

Re: New filemanager and others

by Teemu Sumi -
Oh no! what is error message?

Finnish name Timo or Timoteus is biblical name. Teemu is not. Pronouncing of Teemu and Timo is quite different. For an english speaker Timo is easy. Teemu is not pronounced at all like "feed" or "Team". If you know how to pronounce spanish word "Mesa" you should have the idea. BTW I think that Sumi is japanese word (dark ?) and name. I have polish roots and the name was originally Sawicki. My grandfather and his his sister changed that. Sumi is pronounced like in japanese, only letter S is little bit different. It would be interesting to see the correct spelling of "Sumi" in japanese way.


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by Tim Allen -

Teemu,

I'm getting:

Cannot find server or DNS Error
Internet Explorer   sad

You could upload again or send it to me at webmasterATdiscoverlanguageDOTcom and I hope it will go through (not sure about the email limit there, how big is the file?).

(PS I like "Timotheus", it means "honoring God", sounds rather august even though I am not really religious.  Also an interesting relation is "tadhg" which is pronounced like "teague" which has been used as a Gaelic verson of Tim (or vice versa?) and means "poet, philosopher".  However, this name apparently has sometimes been used in a derogatory way to refer to Nationalists in Ireland.)

Thanks,   smile

In reply to Timothy Takemoto

Re: New filemanager and others

by Teemu Sumi -
No I know. That address is a fairly new name in DNS. The domain "opitaan.fi" has been used only two weeks. DNS servers around the world must update their records first.

That file is that normal Moodle tar.gz size (6 MB).


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by Teemu Sumi -
You can download 1.3.1 version from here.

Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by Genner Cerna -

Is this compatible with 1.3.2?

In reply to Genner Cerna

Re: New filemanager and others

by Teemu Sumi -
I will do 1.3.2 version as soon as possible. It doesn't take too much time.


Teemu
In reply to Genner Cerna

Re: New filemanager and others

by Teemu Sumi -
You can download 1.3.2 version from here. I removed the 1.3.1 version (replaced by 1.3.2 version). So,  the name of the file hasn't changed.

Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by Teemu Sumi -
You can download 1.3.2 version from here.

Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by W Page -
Hi Teemu!

Did you mean 1.3.3 version instead of 1.3.2??

WP1
In reply to W Page

Re: New filemanager and others

by Teemu Sumi -
Yes. It should be 1.3.3. surprise

You can download 1.3.3 version from here.

Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -
Hi,

how do I have to install this new feature? I have made a moodle update, as usual, but the shared files module doesn't work for me. I go to the files and I press "share", but nothing happens. It seems as if my moodle install is blind to that. I did something wrong, but I don't know what. Any help?

Thank you all in advance, specially to Teemu. I have seen how this new characteristic works in the Mickey/Donald demo and it is wonderfull!

Pau
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
Did you go to the configure/variables and pressed "Save Changes" (as admin)? Then you should see some errors and some success. Errors are normal if you are upgrading, because we don't want to delete any old table. Check if your database has the table "mdl_shared_dir".


Teemu


In reply to Teemu Sumi

Re: New filemanager and others

by Genner Cerna -

I really like this feature, hope this will be included in the next official release of moodle...

May the force be with you....

In reply to Teemu Sumi

Re: New filemanager and others

by Janne Mikkonen -
Picture of Core developers
You need to take care this slashargument problem. It must check variables first.

(!$CFG->slasharguments) ? "?file=/": "/";

Otherwise it's seems to work a ok on Windows smile. Keep it up wink


- Janne -

ps. Would return folder be more extensible if it be implemented as module?

 
In reply to Janne Mikkonen

Re: New filemanager and others

by Teemu Sumi -
Thanks Janne!

I forgot the slasharguments from Returnfolder. I'm going to fix that soon. It takes some time to make Returnfolder module but I'm going make that anyway.


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -
Hi,

yes, my database has the mdl_shared_dir table with fields:
  • id
  • dir
  • orig_course
  • dest_course
but nothing, seems to be working; the fields are empty the whole time. When I check a course to share files with, nothing seems to happen. I think I had done something wrong during the upgrading. I will try to install a new version of moodle from the begining to see what happens.

Thanks for all!,

pau
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
It looks like that this feature is not ready yet.What is your server's OS?


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -

I'm running moodle in a Windows XP under Apache HTTP server (Apache 2.0).

I have updated another installation. At the beginning there have appeared so many errors such as "Table 'mdl_config' already exists" and finished with "Error: Main database NOT set up successfully". After that I have entered the admin page and there have appeared some logs telling me everything was updating correctly. All the old features seem to work fine, but I'm still beeing unable to share files.

I have found something in the logs, I hope it will be of some help,

Error: Turn off debugging to hide this error.

SELECT * FROM pgenfa_log_display WHERE module = 'course' AND action = 'view'

Found more than one record in get_record_sql !

Array
(
    [course] => Array
        (
            [module] => course
            [0] => view
            [action] => view
            [1] => course
            [mtable] => course
            [2] => fullname
            [field] => fullname
        )

)

Thank you,

               pau

In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
Can you select the courses, which can see the directory?  After pressing "Save Changes" is the color of that directory's folder image still yellow?
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -
That's precisely the problem. I can select the courses that can see the directory. Then I press "Save Changes" and I'm back to the folder's page, but it is still yellow and if I go to the courses that are supposed to see the directory, I can't see it. The "share" doesn't become "shared" neither, and if I press "share" again, I see exactly the same courses to be selected as before. So it seems to me that the problem is that moodle doesn't know I'm selecting any course. It is as if that page couldn't communicate with moodle.

pau
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
OK. The problem is data submit. I will change the code today. Have you tried Return folder yet? It may have similar problem when you try to publish students' files.


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -
I send you part of the error.log file of the apache server. Maybe it could provide some help. (The folder I am trying to share is called kk.)

Thanks a lof,

pau
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
Yes. I found what I was looking for. Data submit is the problem. error.log was very useful.


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -
I have been trying with the Return folder. It seems to have the same problem. As a student I can upload a file, but as a teacher I can't do anything. When I mark the "show" or the "remove" boxes, nothing happens. I couldn't see the file neither. Some window pops up with the message: "No input file specified." I'm sending you the error.log in that case, also.

Pau
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
I'm going to fix that too.

Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by W Page -
Hi Teemu,

Just for educational purposes.  How did you know from looking at the Apache error logs Pau sent you that there was a problem with the "Data Submit" & the "Return folder"?

Thanks in advance.

WP1
In reply to W Page

Re: New filemanager and others

by Teemu Sumi -
There is that "to_everybody" line. It's a column at the "mdl_course". That column is missing and Return Folder needs it. Data Submit is the problem, because there's a line with "undefined variable" and "returnfolder.php"

Teemu
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
Replace file "moodle/files/share.php" with this attachment. If it works, I have solved the problem.


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -
Wonderful!
Thank you very much Teemu, now it works fine.

                Pau
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
Replace the file "moodle/user/returnfolder.php" by this attachment. I hope it works.


Teemu
In reply to Teemu Sumi

Re: New filemanager and others

by pau cervera -
Hi Teemu,

I've been playing with the Return folder. It seems it is not working properly yet.

Students can upload files. As a teacher I can mark the "Show" box and then other students can see the uploaded files. But "Show files to all course's students..." doesn't work for me. I can't "Remove" neither. It seems it's same problem as yesterday.

I send you the error.log file.

Pau
In reply to pau cervera

Re: New filemanager and others

by Teemu Sumi -
Table mdl_course needs one column. You can do it this way:

alter table mdl_course add to_everybody int(1) unsigned not null;

This should fix "Show files to all course's students...".

I'm certain that I can fix file deleting. Can you see this message after selecting the files to be removed (and after "Save Changes"):

Are you sure, that you want to remove all the selected files

If you can see this message, I know what's the problem.


Teemu

In reply to Teemu Sumi

Download problems

by Michael Penney -
Hi Teemu, I keep getting an operation timed out error when I try to download this?

I'd like to try it out, is there going to be a version available again soon?

Thanks!
In reply to Michael Penney

Re: Download problems

by Teemu Sumi -
The server is going down all the time. The traffic is quite heavy.


Teemu
In reply to Teemu Sumi

Re: Download problems

by pau cervera -
Sorry, yesterday I couldn't do anything.

I have just proved the new returnfolder.php and, after altering the mdl_course table, I think it is working properly.

I can see the message "Are you sure you want to remove all the selected files", but if I choose I want it, it works, so it's okay.

Very, very nice work. Thank you Teemu,

Pau
In reply to Michael Penney

Re: Download problems

by Teemu Sumi -
The latest version is here


Though the name of the file hasn't changed, I have updated it.


Teemu
In reply to Teemu Sumi

Re: Download problems

by Teemu Sumi -
I had to change the server. Download the latest version from here.


Teemu
In reply to Teemu Sumi

Re: Download problems

by Chardelle Busch -
Picture of Core developers

Hi Teemu,

Your student folder sounds like something I am looking for, and the other features sound very interesting.  I would like to try this but have a question.  I don't see a list anywhere of the files that you have made changes to.  Do we have to upgrade all of the files you have included in your zip (basically the entire moodle program)?  Or, could you have a version with only the files that have you have changed?  And then we would only have to upload those files to use your new features. 

Thank you,

Chardelle

In reply to Chardelle Busch

Re: Download problems

by Teemu Sumi -
It's always a compliment, when someone is interested in your work. The reason why this package contains whole Moodle is, that it would have been too time consuming to make instructions. You can upgrade Moodle 1.3.3 with this package. Nothing should be overwritten. Be sure that you backup your old database first. I have made changes to... well it's a long list thoughtful.


Teemu
In reply to Teemu Sumi

Re: Download problems

by Chardelle Busch -
Picture of Core developers

Okay Teemu,

I'll trust you.  But, I am assuming that at the least the theme file doesn't need to be upgraded.

Thanks

In reply to Teemu Sumi

Shared folders

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi, Teemu.

Thanks for putting up your work here. I would still really like to put the shared folders into Moodle, but it still needs a few more things before I can do that:
  • The publishing interface needs to be changed to make it work with longer lists of courses (possibly thousands).
  • It should be possible to say "Publish to all".
  • When a teacher is browsing a shared folder it should be clear what course it is from.
  • I also would like this whole sharing capability made optional, to be controlled by a configuration flag to enable/disable it.

If you have time could you package the current shared folders for me and I'll see what I can do to work on these. And of course if you would like to implement these things I would be extra grateful! big grin
In reply to Martin Dougiamas

Re: Shared folders

by Teemu Sumi -

I have made two publishing interfaces. When there are more than 50 visible courses, there are two multiselect boxes like suggested before.

I can do those other three things too by myself.

Because you can use shared files with scorm, resource files and resource folders, You need these files from the extra package:

moodle/files directory
moodle/mod/resource directory
moodle/mod/scorm directory
moodle/lang/en directory
moodle/lang/fi directory

You need only one table:

CREATE TABLE mdl_shared_dir (
  id int(10) unsigned NOT NULL auto_increment,
  dir varchar(255) NOT NULL,
  orig_course int(10) unsigned NOT NULL default '0',
  dest_course int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (id)
);


Teemu


In reply to Martin Dougiamas

Re: Shared folders

by Teemu Sumi -
OK. It's ready. I need to do some testing. I will send the files to you soon.


Teemu
In reply to Teemu Sumi

Re: Shared folders

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Thanks Teemu!  It probably won't make 1.4 but we can get it into 1.5 development anytime.
In reply to Martin Dougiamas

Re: Shared folders

by Chardelle Busch -
Picture of Core developers

Teemu,

Next time I'm in Finland, I will bring you a bottle of Jim Beam--a smokey Tennessee Bourbon Whiskey--good stuff.  I'm looking forward to testing this.

Chardelle

In reply to Martin Dougiamas

Re: Shared folders

by Teemu Sumi -
Resource module have changed quite a lot since 1.3.4.

How to make shared folders work with resources if you are using 1.5? It needs some work. I will do that.


Teemu
In reply to Teemu Sumi

Re: Shared folders

by Mike Jackson -

Is there a folder sharing solution that works with 1.5.x? I would really like to have some folders that are shared between courses.