I've made an E-portfolio. It's made because my "boss" needed that functionality in Moodle. I know, it's not clean code, actualy it's a bunch of hacks, but it works. Every user can choose if their files are shared to others or not. You can not add files in a normal way, but it only shows files uploaded by an assignment. It's sorted by module. I thought I give the code to the community (with permission from my "boss"), maybe it's valueable code to you guys, I don't know. So here it is. It can install just like a normal block.
It looks for the students of the module which you are browsing, not for all users. If you want to view all users, uncomment line 135 and comment line 136 in the file /blocks/portfolio/block_portfolio.php.
The code is not bug free, but it does what it's supposed to do. If you have any comments about the code or the structure, please don't hesitate to say, because I want to learn from my mistakes.
Thanks in advance,
- Multi Language support (langauge files) (i hope ;))
- Doesn't need the assignment extension to run :D
- A working directory, where the user can add and delete files
- Working directory can be shared with other (per file)
- Remove a couple of bugs
- Nicer errors
Really looking forward to seeing this addition to Moodle.
The comment is in Dutch.
This one is the newest version.
If the Moodle developers want to intergrate this block into Moodle, be my guest.
The teacher gives an assignment to a student. The student uploads his work he made for the assignment. If he uploaded it, the file also comes in the portfolio. Then the student can decide if he wants to share his work with other people. The temporary folder is for unfinished work. If the student is working on the assignment but he didn't finish it, he can upload it to the temporary folder, so he can work on it at any place and any time. When he is done, he can upload that file to the assignment.
Great idea but after downloading have a blank screen when I choose a username to look at.
Used winrar on the zip and tz, the block is in ok, no lang problems, tables went in ok.
blank screen = pure white no layout or theme from this url http://moodle.bridgend.ac.uk/vle/blocks/portfolio/view_folder.php?userid=3513
I think I know the problem. This block was designed for PHP 4.x, because my employer wants it. PHP 4.x doesn't have the function scandir, so I build my own (got it from a collegue, who got it from php.net ). PHP 5.x does have the function scandir build in. I think they are not compatible with each other. I shall try to fix the problem.
If you have some knowledge of PHP, you can try to comment the function scandir out in blocks/portfolio/lib.php.
I have done it myself and deliverd the file as attachment. Try to replace /blocks/portfolio/lib.php with this file.
new lib.php worked however it fails to show my breadcrumb path in the theme I'm using and stopped at 'shared folder' folder. The standard windows back button was the only way out.
I haven't had a chance to try this portfolio system out yet, but I wanted to put in a link here to another discussion that's taking place relating to the Moodle-based portfolio system I'm working on: http://moodle.org/mod/forum/discuss.php?d=33201
Maybe we can share some ideas about how this should work if we all know what other people are doing. I searched and searched and searched before I started that other thread, and I never found this one.