File Manager Block (aka: My Files)

File Manager Block (aka: My Files)

by Michael Avelar -
Number of replies: 81
Here is the most recent working version of the File Manager block, better known as the My Files block. Features of this version:

-> Allows creation of folders and allows further categorization of files by applying categories to files/folders/links.
-> Implements built in help buttons to aid in the effective use of the block.
-> Allows sharing of files/folders/links/categories with other course users.
-> By using the built-in admin settings, accessible by the site admin, admin can set upload sizes, directory sizes, permission settings for sharing to other course members and allowing to share to everyone on the site from the main page, an enabling the file manager in general. Settings can be set for the three types of users, eg: teachers, students, and admins
-> Users main File Manager page shows file/directory sizes, and shows how much space they have remaining if directory size is set or total space if set to 'unlimited'.
-> Can share files/links/folders/categories to users in the current course. Can view shared objects from the current course or sitewide.
-> Implements the built-in zip function to allow zipping of files and storing the zip into the moodle api. Unzipping a zipped file uploaded to the site will retain folder structures, etc. (Currently, this feature overwrites other files/folders without warning)
-> Increased file security to prevent unauthorized access to files.


Try this block out and let people know of any bugs(esp. file security)/feature requests/etc so this block can continue development!

-Michael Avelar
HSU Programmer

Average of ratings: Useful (1)
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Michael Avelar -
I'm thinking I will work on adding features for this block section by section...eg: admin power, file management, filesharing management, etc.

-> Adding an option to the admin page to require students shares to be approved by a site teacher.
-> (Possibly?) Giving admin's a page to search/view all users files for appropriate content and allow them to delete shares/files. Also possibly have a table for user specific banning, allowing the admin to ban users who repeatedly upload inappropriate/copyrighted content.

Any suggestions/comments greatly appreciated!

Thanks,

Michael Avelar
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by David Cockayne -
It's a very nice block! good work smile

You asked for suggestions, so I was thinking it could be useful to be able to set the student allocation on an additive course by course basis.

I'm thinking of a scenario like this:
A site default per enrolled course is 5 mb per student
Photography course students get 100 mb
Music students get 35 mb

so if a student is enrolled on a normal course they get 5 mb

if a student is enrolled on 2 normal courses, they get 10 mb

if a student is enrolled on a photography course and 1 normal course they get 105 mb

the ability to set courses to have 0 effect on file privileges would also be good for all the induction & help courses that students can freely enrol on.

or maybe instead, have a per student allocation the way it exists now and have the ability to automatically increase it if they are enrolled on certain courses.

This isn't a critical need but would be useful for those few courses that have a genuine need for larger amounts of storage.

In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Mikko Syvänne -
Hi Michael!

I have noticed following problems with the File Manager version 2005042200 (from the zip-file: file_manager_4-12-2006.zip).

I would like you to know that I had a problem with Create new Category function in the "Add a Link" page. It gave me a following error message Unknown parameter type: PARAM_APLHAEXT. This was fixed by removing line 16 ( $from = optional_param(from, NULL, PARAM_ALPHAEXT); ) from the cat_manage.php.

And it also seems that your are unable to make first time installation of the File Manager block to the Moodle 1.6 beta 5 version (it gives you errors on the tables).

Yours sincerely

Mikko
In reply to Mikko Syvänne

Re: File Manager Block (aka: My Files)

by Luciano Rodriguez -
I had this same trouble installing the myFiles block into 1.6 beta 5.  I had to modify it in order for it to work.

You will have to start from the beginning but if you have attempted to install you will have to go into the SQL db and DROP TABLE:
  1. $     prefix_fmanager_admin
  2. $     prefix_fmanager_shared
  3. $     prefix_fmanager_folders
  4. $     prefix_fmanager_categories
  5. $     prefix_fmanager_link
**Note that prefix might say mdl in your database.  Just use whatever it says in your SQL database.

Next you will have to replace mysql.sql in your file_manager folder in the db folder.
here is the path
file_manager > db > mysql.sql
This is what I changed.
from this
INSERT INTO prefix_log_display VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'view', 'fmanager', 'name');

to this
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'view', 'fmanager', 'name');

Hope this works for you.  smile

--
    Luciano M. Rodriguez
In reply to Luciano Rodriguez

Re: File Manager Block (aka: My Files)

by Andy King -

Hi

I have just created a new installation of moodle (V1.6).  I am still pretty new o moodle and have come to a problem i can't overcome.  I use it in school and find the File Manager Block very useful (using 1.5.3) for students to be able to upload work and then access it from home.

Having installed the Block (latest version i think dated 4th April 2006) but i am getting problems - tables cannot be set up!!!

i have followed the message below but am unsure on the following sections in red:

You will have to start from the beginning but if you have attempted to install you will have to go into the SQL db and DROP TABLE:

  1. $     prefix_fmanager_admin
  2. $     prefix_fmanager_shared
  3. $     prefix_fmanager_folders
  4. $     prefix_fmanager_categories
  5. $     prefix_fmanager_link

**Note that prefix might say mdl in your database.  Just use whatever it says in your SQL database.

i have managesd to do the following OK

Next you will have to replace mysql.sql in your file_manager folder in the db folder.
here is the path
file_manager > db > mysql.sql
This is what I changed.
from this
INSERT INTO prefix_log_display VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'view', 'fmanager', 'name');

to this
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'view', 'fmanager', 'name'); 

Any help greatfully received

Andy 

In reply to Andy King

Re: File Manager Block (aka: My Files)

by Luciano Rodriguez -
So you are not able to setup the tables?  The steps I did was with 1.6 beta5.  I think it should be sort of the same.  I was having the hardest time installing.  I was able to get the tables installed but could not get the insert to work.  Did you already have the myfiles working in 1.5?

-luciano
In reply to Luciano Rodriguez

Re: File Manager Block (aka: My Files)

by Andy King -

Hi Luciano

have finally managed to access the tables and file manager now works to a certain extent.  though all text and buttons are surrounded by   (see attachment).  i am also getting the following error message:

Warning: file(/home/campsmo/public_html/moodle16/moodle/blocks/lang/block_lang.php): failed to open stream: No such file or directory in /home/campsmo/public_html/moodle16/moodle/lib/blocklib.php on line 25

any ideas would be greatfully received

Cheers

Andy

Attachment filemanager.gif
In reply to Andy King

Re: File Manager Block (aka: My Files)

by Michael Penney -
You lang files are not being read. Are you using utf8 on your site? You may need to put the lang/en files in lang/en_utf8 (at least that was what I had to do on our Moodle 1.6 beta site, haven't upgraded to 1.6 stable yet).
In reply to Michael Penney

Re: File Manager Block (aka: My Files)

by Andy King -

HI Michael

have installed en_utf8 language pack into moodledata/lang but made no difference!

Andy

In reply to Andy King

Re: File Manager Block (aka: My Files)

by Huw Smith -

I'm not sure if you have resolved this issue but I had exactly the same problem.

I have just got it to work properly by copying the block_file_manager.php file from the lang\en and copying it into lang\en_utf8 folder.

In reply to Huw Smith

Re: File Manager Block (aka: My Files)

by Curtis Barker -
That's was what I resorted to and it worked like a snap.
In reply to Luciano Rodriguez

Re: File Manager Block (aka: My Files)

by Christian Blessing -
Luciano,

I want thank you for the suggestion in getting myFiles to work. I did as you said and all's well.

Regards,

Christian Blessing
International School of Latvia
In reply to Luciano Rodriguez

Re: File Manager Block (aka: My Files)

by Jorge C.A. -
Hola Luciano, espero que puedas contestarme en español.
Estoy intentando instalar el blocks file_manager_4-12-2006.zip. Sigo las instrucciones adjuntas, y una vez entro en moodle como administrador, al principio parece que todo va bien pero el final me sale el siguiente error: "Block file_manager tables could NOT be set up successfully!".
Da la impresión que hay una tabla (que desconozco cual es) que no puede crear, actualizar o insertar algún registro.
Tengo la versión 1.6.3 de moodle y está instalado sobre Linux.

¿Sabrías que está pasando?

Saludos,
Jorge
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Moien Abadi -
Picture of Testers
Hi Dear Michael Avelar

I installed File Manager Block.
but when i want to enable it, i received this message: "Could not insert the \ record".
How can i solve this problem. let me know what's wrong?!!

regards,
SOE.

In reply to Moien Abadi

Re: File Manager Block (aka: My Files)

by Andy Tagliani -
Did you set the rights to upload files in the administration of the block? You must set the size of the files they can upload and you must set how many space the users have. Have you done this, click first on update, after confirm your settings.

Bye Andy
In reply to Andy Tagliani

Re: File Manager Block (aka: My Files)

by Mike Henry -
Hi!  I've been having the same problem with my install of the file manager.  I am running 1.6 and dropped the tables from the database and changed the mysql.sql file to get it to work.  But whenever I try to set anything in the Admin Settings, it gives me this error- Could not insert the \ record.  Yeah, so does anyone have any suggestions as to what is wrong?

Thanks,
Mike
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Andrea Gregory (Gordon) -

Hi Michael,

Have you managed to get any of those features you suggested (Giving admin's a page to search/view all users files for appropriate content for example) above to work yet.....????

I think a with the file manager block, the admin power to view any students' files to check if the content is appropriate, is a must!!!

Keep me updated!!!! smile

Thanks,

Andrea

In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Craig Szymanski -
Hello,
I just installed this to test it out. I like it.  I was wondering if there is a way to prevent the guest account from seeing the File Manager? Or am I missing something?
Thanks,
Craig
In reply to Craig Szymanski

Re: File Manager Block (aka: My Files)

by Michael Avelar -
No this is something I overlooked.  The next version I release will either disable the guest account from being able to upload files, or will give an option in admin settings to control guest account access.

- Michael Avelar
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Craig Szymanski -
Ok,
Sounds good. Thank you.

Another feature that would be nice is the ability to allow only certian file types (.doc, ppt, pdf, jpg, etc...) or restrict specific types from upload (.exe, .php, .cmd, etc).  I was looking around the forums and have not been able to find out how to do this with just the core moodle install, which has not been a big issue since only teachers have been uploading. Now that I might allow students to have a storage area I see a need for more protection. Has there been discussion about this somewhere and I missed it?

Thanks,
Craig
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Chandru Hiremath -

Michael,

Is it possible to share files by groups in addition to the existing functionality of sharing to users?

Thanks,

Chandru

In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Wijnhold Bolt -
I just installed the block and when trying to make a new folder I get the message:
Warning: mkdir(/var/www/html/tstmdl/moodledata/file_manager): Toegang geweigerd in /var/www/html/tstmdl/moodle/lib/moodlelib.php on line 3753 (Toegang geweigerd = Access denied)
How to solve? (With fpt I can make any directory).
In reply to Wijnhold Bolt

Re: File Manager Block (aka: My Files)

by Craig Szymanski -
This seems like the apache process does not have permission to create the directory.  My install is Debian and I had to make sure that www-data had  RW file permissions.
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Julian Woodruff -
Hello, Michael
Here at CSUS we are trying to figure out a way for audio files to be uploaded for use by music students while preventing students from being able to download & share them. My search of the forums turned up nothing closer than your announcement of 4/13, but maybe somewhere a faculty member or music librarian has looked into this. (I'm into the q just far enough to know that Fraunhofer is testing some MP3 technology to track uploads in peer-to-peer contexts using Watermarks--don't know whether that technology represents an answer here, or will in the future.)
Thanks for any help.
Julian
In reply to Julian Woodruff

Re: File Manager Block (aka: My Files)

by Michael Penney -
Hi Julian, uploading and sharing would be possible via myfiles, but preventing downloads is more problematic, since mp3 is an http streamed format, by design it downloads to the local machine as it plays.

You could use an rtsp format in conjunction with a streaming server (quicktime, windows media, etc.), though that may be more difficult for your students to use (and of course savvy students can also copy audio and video from rtsp streamed files).

It is a bit harder for students to copy files that are played in the Moodle flash player, perhaps adding code into MyFiles or Matt Oquist's portfolio module so that student mp3s are played through the flash player and not show a link would be a sufficient solution. There is also a Moodle podcast module, I haven't tried it yet but it seems it might open the possibility of controlling file access with Apple's DRM?
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Deon Metelski -
Hi Michael,

I was just seeing which files were able to be uploaded and it seems the MS office suite is fine, PDF's will not upload as well as video and audio files. Do you know if this is specified somewhere in the moodle core files or is it specified some how in your files. I would lik eto add the ability to upload pdf's and audio.

Thanks in advance,
Deon
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Geoff King -
Hello, I have tried to install this on our Moodle 1.6 install but it failed with the following messages.

file_manager

Error

Error

Error

Error

Error

Error

Error

Error


Block file_manager tables could NOT be set up successfully!
In reply to Geoff King

Re: File Manager Block (aka: My Files)

by Andy King -

Hi Geoff

I too had this problem and followed Luciano's instructions (Below) as well as updating the language package to UTF8 verison.  My block now installs and can be added to a page but still appears to contain errors.  Give it a go and please let me know how you get on.

Luciano's Instructions:

You will have to start from the beginning but if you have attempted to install you will have to go into the SQL db and DROP TABLE:

  1. $     prefix_fmanager_admin
  2. $     prefix_fmanager_shared
  3. $     prefix_fmanager_folders
  4. $     prefix_fmanager_categories
  5. $     prefix_fmanager_link

**Note that prefix might say mdl in your database.  Just use whatever it says in your SQL database.

Next you will have to replace mysql.sql in your file_manager folder in the db folder.
here is the path
file_manager > db > mysql.sql
This is what I changed.
from this
INSERT INTO prefix_log_display VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'view', 'fmanager', 'name');

to this
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'view', 'fmanager', 'name');

Hope this works for you.  smile

--
    Luciano M. Rodriguez

Andy King

In reply to Andy King

Re: File Manager Block (aka: My Files)

by ztechguy Z -
Hi,

I have completed all of the above or this:

Dropped the following tables
  1. $     prefix_fmanager_admin
  2. $     prefix_fmanager_shared
  3. $     prefix_fmanager_folders
  4. $     prefix_fmanager_categories
  5. $     prefix_fmanager_link
I changed the mysql.sql file in  moodle/blocks/file_manager/db/mysql.sql
from this
INSERT INTO prefix_log_display VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'view', 'fmanager', 'name');

to this
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display (module,action,mtable,field) VALUES ('fmanager', 'view', 'fmanager', 'name');

I then made sure that the language pack was installed correctly.  Restarted my sql database and httpd service just for grins.  And I still get hung up on the install numerous times. It stops on the last line if that is any significance to anyone I would like to know.  I did also copy the block_file_manager.php file from the lang\en into lang\en_utf8 folder.

I did have filemanager running on 1.5.3, then upgraded to 1.6.  Any suggestions?

Thanks a ton
Attachment Picture_3.png
In reply to ztechguy Z

Re: File Manager Block (aka: My Files)

by Chris West -
I've had similar trouble. On closer inspection of the mysql.sql file I noticed that the first 5 'successes' were the mdl_fmanager_* tables. The only remaining commands were entries into mdl_log_display. Changes to these were part of an above post and the entries  seemed to be in this table OK.

What I did was to drop the fmanager tables (so that I could reinstall) and comment out the mdl_log_display lines from mysql.sql

Reinstall was a success and the block, as far as I can tell, works OK.

Are these mdl_log_display lines from mysql.sql necessary? No other block seemed to have an entry there, only modules. I don't know what this table is for.

Hope this helps.

p.s. I like the improvements to the block, particularly the combining of files/links. However, I feel that the language seems to suggest only (web)links are possible. I think I'll change the lang file to say something like 'files and links' instead of just 'links'
In reply to Chris West

Re: File Manager Block (aka: My Files)

by ztechguy Z -
Chris, thanks for the help on that install question for file manager.  I commented out the reference to the logs and it fired right up.  I would like to know if it is important to be there though?   What did that line do anyway?

As for improvements to the block I would like to see if it is possible to see the file manager block be visible to the administrator, or just make it easier to track what students have put up there on their files.  I know you can go searching in the moodle dir for them, but their ids are numerical, which is a pain to track certain users. 

Again, thanks for the help.

ztechguy
In reply to ztechguy Z

Re: File Manager Block (aka: My Files)

by Jean FRUITET -
Hi !
This last error says that you can't update the prefix_log_display table of your moodle database because they yet exist !smile)

After having dropped the following tables
  1. $ prefix_fmanager_admin
  2. $ prefix_fmanager_shared
  3. $ prefix_fmanager_folders
  4. $ prefix_fmanager_categories
  5. $ prefix_fmanager_link
you have to delete the three last entries in
the prefix_log_display table of your moodle database,

(#NUMBER_ID# ,fmanager, add, fmanager, name)
(#NUMBER_ID+1#, fmanager, update, fmanager, name)
(#NUMBER_ID+2#, fmanager, view, fmanager, name )

and restart all the process.

That's all.
JF.
In reply to Geoff King

Re: File Manager Block (aka: My Files)--USE THIS SQL SCRIPT

by Bhupinder Singh -

Use this file with the File manager 2 in the CVS folder.

This has worked for me.

Change the SQL file in the CVS download located at Blocks/Filemanager/db

with the one attached.

In reply to Bhupinder Singh

Re: File Manager Block (aka: My Files)--USE THIS SQL SCRIPT

by Rob Johnson -
I used this file for a 1.6.1+ install, and it worked without problem smile.

Thanks,
Rob
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Jamie Thompson -
what would be really usefull is if files from a students 'my files' could be submitted directly to an assignment. is this possible?
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Chris West -
I think this block is great. Just what we need.

Here are a few feature requests:
  • The ability for an administrator (and teacher?) to view a student's files. This would enable monitoring of inappropriate material and correct use.
  • Access to file manager from the 'My Moodle' page. If you files are accessible from whichever course page you are on then it makes sense to be able to get to them from My Moodle as well (and it seems like the most logical place to see them)
  • The ability to remove access for particular users. Something like the modification of the Admin block that allows for black/grey/white lists (their terminology, not mine) for messaging
  • restrict certain file types, e.g. exe
Thanks again for a very useful block.
In reply to Chris West

Re: File Manager Block (aka: My Files)

by Chris West -
To add to one of my points above, I've just noticed that on a student's My Moodle page the file manager link shows (course)id=5

On my test server I had no course with id=5. I soon as I did the file manager worked - it just showed the course with id=5 in the breadcrumb (obviously)
In reply to Chris West

Re: File Manager Block (aka: My Files)

by Charlie Owen -
I've just installed this block on 1.6.1 and noticed that it doesn't work if used on the "My Moodle/Course overview" page. It appears that when the block is used on this page the links try to point to the users ID rather than the course ID! So on our isntallation of Moodle the links for me show:

http://moodle.nulc.ac.uk/blocks/file_manager/view.php?id=39

...because my user ID is 39. This isn't a problem if you have more courses than users, but if you have thousands of users then the user ID is likely to cause the URL to point to a non-existant course.

I've made a really horrible, temporary fix for this and put it in the attached file. As always, don't install this on  live site unless you're really confident!
In reply to Chris West

Re: File Manager Block (aka: My Files)

by Sally Bair -
Can anyone describe how File Manager actually works? In 1.5X, it doesn't appear that each student has an account that is private and that when a teacher activites FM, everyone for the most part can see all files. If there is documentation on it, please point me to it. I didn't find it. We are going to be migrating to 1.6 as soon as we get our new server which is ordered. Is there documentation on how exactly the File Manager functions in 1.6?

Our goal is to give students access to ability to move files for school from home to school beyond the ability to upload as file to be graded as permitted by some blocks and also store those files. We are seeking to replace services like Learning Station and Weblockz now School Web Lockers with the File Manager block or similar.

Thanks for your help!

Sally 
In reply to Sally Bair

Re: File Manager Block (aka: My Files)

by Michael Penney -
In reply to Michael Penney

Re: File Manager Block (aka: My Files)

by Ali Hastie -

Hi

Just downloaded and installed the File Manager block, excellent block! would it be possible for teaching staff sharing files and folders to insert documents from the shared file manager within say the SCORM module for example?

or, do the teaching staff still require uploading from within Moodle itself? I would think that this File Manager block would be more convenient for the likes of teaching staff uploading files within Moodle's modules etc! 

Many thanks,

Ali.

In reply to Michael Penney

Re: File Manager Block (aka: My Files)

by Res Hotz-Pohlmann -

Sorry, trying to read the manual I just get the message:

You do not have permissions to view this post
I was logged in as a guest.
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Jamie Thompson -
File Manager says

"You can manage your files/links/folders here. If you are in a course, you can also
share files to other course members as well as upload files to an assignment."

I can see no way of uploading a file from a users 'file manager' to an assignment. It would be a really useful feature if only i could find out how to do it. It doesn't appear to be mentioned in the documentation.
In reply to Jamie Thompson

Re: File Manager Block (aka: My Files)

by Simon Bryan -
Have a similar problem, cannot see where that feature is located.

Also the zip / unzip does not seem to work, well at least the unzip part, I can create zips of files I have uploaded. However I need to upload zips and then unzip them.

Any clues anyone?
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Jorge C.A. -
¿Hay alguna traducción al español del block file_manager?

Saludos,
Jorge
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Kok Chee Kean -
The upgrade to Moodle 1.7 seems to have broken the sharing function of this block. When an attempt to share files is made, the following error message appears.

"This SQL relies on obsolete tables! Your code must be fixed by a developer."

Could I check if the block is being updated for 1.7?
In reply to Kok Chee Kean

Re: File Manager Block (aka: My Files)

by Per Hessellund -

I would like to see a update of the File Manger Block too.

..or if there is a other block with the same funktions for 1.7.

In reply to Per Hessellund

Re: File Manager Block (aka: My Files)

by Per Hessellund -

When I try to use File Manger in Moodle version 1.7 I get this message:


Notice: Use of undefined constant id - assumed 'id' in /blocks/file_manager/sharing.php on line 17

Notice: Use of undefined constant linkid - assumed 'linkid' in /blocks/file_manager/sharing.php on line 18

Notice: Use of undefined constant from - assumed 'from' in /blocks/file_manager/sharing.php on line 19

Notice: Use of undefined constant rootdir - assumed 'rootdir' in /blocks/file_manager/sharing.php on line 20

Notice: Undefined index: cbu in /blocks/file_manager/sharing.php on line 29

 
 

Share to others


Click on individual users, groups, or the
'select all' to share to those people.
Note: Sharing to all will not show the New!!
flag to those users.



Notice: Undefined variable: from in /blocks/file_manager/print_lib.php on line 390

Notice: Undefined variable: from in /blocks/file_manager/print_lib.php on line 391

Notice: Undefined variable: from in /blocks/file_manager/print_lib.php on line 392
array(5) { [0]=> array(4) { ["file"]=> string(49) "/lib/dmllib.php" ["line"]=> int(578) ["function"]=> string(17) "get_recordset_sql" ["args"]=> array(3) { [0]=> &string(50) "SELECT * FROM mdl_user_teachers WHERE course = '4'" [1]=> &string(0) "" [2]=> &string(0) "" } } [1]=> array(4) { ["file"]=> string(49) "/lib/dmllib.php" ["line"]=> int(546) ["function"]=> string(20) "get_recordset_select" ["args"]=> array(6) { [0]=> &string(13) "user_teachers" [1]=> &string(12) "course = '4'" [2]=> &string(0) "" [3]=> &string(1) "*" [4]=> &string(0) "" [5]=> &string(0) "" } } [2]=> array(4) { ["file"]=> string(49) "/lib/dmllib.php" ["line"]=> int(748) ["function"]=> string(13) "get_recordset" ["args"]=> array(7) { [0]=> &string(13) "user_teachers" [1]=> &string(6) "course" [2]=> &string(1) "4" [3]=> &string(0) "" [4]=> &string(1) "*" [5]=> &string(0) "" [6]=> &string(0) "" } } [3]=> array(4) { ["file"]=> string(68) "/blocks/file_manager/print_lib.php" ["line"]=> int(420) ["function"]=> string(11) "get_records" ["args"]=> array(3) { [0]=> &string(13) "user_teachers" [1]=> &string(6) "course" [2]=> &string(1) "4" } } [4]=> array(4) { ["file"]=> string(66) "/blocks/file_manager/sharing.php" ["line"]=> int(191) ["function"]=> string(29) "fm_print_share_course_members" ["args"]=> array(3) { [0]=> &string(1) "4" [1]=> &int(4) [2]=> &int(0) } } }
This SQL relies on obsolete tables! Your code must be fixed by a developer.

In reply to Per Hessellund

Re: File Manager Block (aka: My Files)

by John Harald Gartland -
God dag smile
We're also using the File Manager here in Norway.
Have you heard anything?


In reply to John Harald Gartland

Re: File Manager Block (aka: My Files)

by Łukasz Leszewski -
MyFiles is really helpful so I hope it will work with 1.7 smile
In reply to John Harald Gartland

Re: File Manager Block (aka: My Files)

by Per Hessellund -

No I haven't heard anything yet.

Is there anyone working on fitting My Files to be working i version 1.7?

In reply to Per Hessellund

Re: File Manager Block (aka: My Files)

by Justin Davis -
I hope someone is. Maybe if someone could tell me what needs to be done, i could try doing it myself. If you have any pointers, please let me know.
In reply to Kok Chee Kean

Re: File Manager Block (aka: My Files)

by Matt Taylor -

I got tired of waiting for the block to be updated for 1.7 so I thought I would just jump in and help.

I have attached the new code for 1.7+. I have done some testing and it appears to functional with the new permisions structure if anyone wants to clean it up any, Go for it. I hope this helps, I know it will be helpful for my school.

In reply to Matt Taylor

Re: File Manager Block (aka: My Files)

by Larry Elchuck -
Thanks for your work Matt.


I installed on a Mac OS X server and all is well. Did the same on a linux server (with the same data and modules) and ran into a problem.
1. the option to add blocks to the site page disappeared (still there for course pages)

2. When debugging is turned on in the linux install, a number of variables do not appear to be visible. I did add the lang file to the en_utf8 folder. See below.


Notice: Use of undefined constant id - assumed 'id' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 6

Notice: Use of undefined constant maxbytes - assumed 'maxbytes' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 7

Notice: Use of undefined constant maxdir - assumed 'maxdir' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 8

Notice: Use of undefined constant sharetoany - assumed 'sharetoany' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 9

Notice: Use of undefined constant allowsharing - assumed 'allowsharing' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 10

Notice: Use of undefined constant enablefmanager - assumed 'enablefmanager' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 11

Notice: Use of undefined constant tab2 - assumed 'tab2' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 12

Notice: Use of undefined constant tab - assumed 'tab' in /usr/local/apache2/htdocs/moodle/blocks/file_manager/admin_settings.php on line 13

Notice: Trying to get property of non-object in /usr/local/apache2/htdocs/moodle/lib/weblib.php on line 4049
In reply to Matt Taylor

Re: File Manager Block (aka: My Files)

by Greg de Vitry -
Nice work.

I had added ClamAV and Update Link (document) to 1.6. Do you want my code? Or should I add it to yours and post here?

Greg
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Dallas Ray Smetter -
I figured I would post my 1.7 installation errors too, in case it will help with any fixes... see attached PDF.
In reply to Dallas Ray Smetter

Re: File Manager Block (aka: My Files)

by John Harald Gartland -
I have posted a error about MyFiles on the tracker system.

It's on http://tracker.moodle.org/browse/CONTRIB-25

I think you might make the chance better that something is done by voting on the page there.

So go there and put in a vote.

John Harald

In reply to John Harald Gartland

Re: File Manager Block (aka: My Files)

by John Harald Gartland -
I managed to install FileManager on 1.7
Don't ask me how, but this is what i did.

I went to Site Administrator and chose the Miscellaneous option.

Went to the XMLDB editor, found blocks/filemanager/db

Pressed create

And then went to the Administration windows and it installed just like that.
I think I can see some logic here but I'm not able to explain it.
Whatever... it works... I'm happy once again
In reply to John Harald Gartland

Re: File Manager Block (aka: My Files)

by Łukasz Leszewski -
Ok I have tried it and it works ok smile

Please read info on myfiles plugin page.

Before you move file_manager to block folder change 3 last lines in db/mysql.sql

from:
INSERT INTO prefix_log_display VALUES ('fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('fmanager', 'view', 'fmanager', 'name');

to:
INSERT INTO prefix_log_display VALUES ( '','fmanager', 'add', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('','fmanager', 'update', 'fmanager', 'name');
INSERT INTO prefix_log_display VALUES ('','fmanager', 'view', 'fmanager', 'name');
In reply to Łukasz Leszewski

Re: File Manager Block (aka: My Files)

by Kok Chee Kean -
Just out of curiosity, has the sharing function of this block worked for anyone using Moodle 1.7?
In reply to Kok Chee Kean

Re: File Manager Block (aka: My Files)

by Roger Emery -
I'm getting nowhere fast with this too.

I've got it installed Ok following previous posts instructions, but I'm running on an Oracle db so all I get when I try to enable anything is:

"The Link Manager has been Disabled!"
andf when I try to enable it:
"Could not insert the \ record."





In reply to Kok Chee Kean

Re: File Manager Block (aka: My Files)

by Christian Blessing -
I'm wondering the same thing. I have lots of student work ready to be shared but the sharing function is broken.
In reply to Christian Blessing

Re: File Manager Block (aka: My Files)

by Richard Cory -
Has this group sharing issue been resolved yet for 1.7.1?

RC
In reply to Richard Cory

Re: File Manager Block (aka: My Files)

by Justin Davis -
i just ran into the same problem. does anyone know a workaround?
In reply to Łukasz Leszewski

Re: File Manager Block (aka: My Files)

by Paul Wensveen -

I managed to install this great file manager module in Moodle 1.7, changing the last 3 lines in db/mysql. The block installed itself, but now every word in it has .. around it. ? There are no capitals either, it's even called filemanager at the block sections. Anyone else had this problem?

All the functions seem to be working correct.

There's a picture below..

any ideas anyone?

Attachment _filemanager_.jpg
In reply to Paul Wensveen

Re: File Manager Block (aka: My Files)

by John Isner -
You need the language file for your language (Dutch?) in the lang directory (see other posts in this discussion). You may have to write it yourself smile
In reply to John Isner

Re: File Manager Block (aka: My Files)

by Paul Wensveen -

thanks for the fast reply John! I'll check it out. 

Yes it's dutch indeed.approve

In reply to Paul Wensveen

Re: File Manager Block (aka: My Files)

by Paul Wensveen -

Dutch version online!

Place it in your /lang/nl_utf8/-directory in moodle for a full dutch version of the filemanager (it's called Gegevensbeheer now).

Have fun wink

In reply to Paul Wensveen

Re: File Manager Block (aka: My Files)

by Keith Bolstein -

New to Moodle and had the same problem.   I had put "lang" files in the "en" folder.   I later moved them to "en_utf8" folder and it fixed the problem.

Hope this help you.

In reply to Michael Avelar

My files en español

by jose miguel flores montoya -
ok, here´s the spanish file for the my files block , to use you must have installed the es_international utf8 language files, copy this files inside the es_utf8 folder inside the lang folder. hope it is useful for you.

ok, esta es la traduccion al español para el bloque de My Files, la acabo de hacer, para usarla deben tener instalado el paquete de idioma español internacional, solo copien el archivo en la carpeta es_utf8 dentro de la carpeta lang, esta carpeta puede lo mismo estar en la carpeta moodle que en la carpeta moodledata solo busquenla. espero les sirva.


ATT:
Jose Miguel Flores Montoya
In reply to jose miguel flores montoya

Re: My files en español

by Vladimir Martinez -
Mil gracias amigo me fue de mucha utilidad la traducción del block file manager

Saludos

Vladimir
In reply to Michael Avelar

File Manager Block: Not showing in the dialog

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I installed file_manager_4-12-2006.zip on a 1.5.3+ successfully, well almost ;-(

- transferred the 'lang' content into moodle/lang
- copied the blocks/filemanager to moodle/blocks
- as admin -> 'Administration': 'Admin...' and got all success, checked the database that all the tables are created
- Under 'Administration->Configuration'->'Blocks' can see 'File Manager'

BUT wenn I edit a course, "file manager" does NOT appear in the drop-down list of activities.

What have I missed?
In reply to Visvanath Ratnaweera

Re: File Manager Block: Not showing in the dialog

by John Isner -
File Manager is a block, not an activity. Go to the course where you want to use it, turn editing on, and select it from the Blocks menu.
In reply to Michael Avelar

Re: File Manager Block (aka: My Files)

by Ricardo Montañana -
Hi Michael

I've got the same problem as Simon Bryan, I can't unzip a previously uploaded zip file. The unziped files has 0 length and no name.

Although the first screen shows up the correct file names, sizes and dates after the process there's no usable file in the directory (see the screen).

Thanks

Ricardo
Attachment instant_nea2.png