View files directly on the file detail page

Project:ProjectPier
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch - code needs work
Description

As per my feature request for viewing image files (http://projectpier.org/node/562) This is my first attempt at implementing it, with not much success (I am not a programmer)
It is using the Shadowbox script (http://mjijackson.com/shadowbox/), which I thought was a good choice since it works with a variety of js frameworks. The script allows the loading of images, videos, and swf files in a modal window. The script automatically uses all links with the atribute rel="shadowbox" to present content.

ToDos:
-Link javascript files in the file view page- DONE
-Check if the file is a supported file type (jpeg, png, gif, swf, avi, mov, etc)
-If it is, add a link to the file with rel="shadowbox" Done, but somehow not working

If anyone with coding skills can take a look and help me out, I think this will be a useful addition to ppier

Hi kemie, that feature sounds really good. I'm eager to try it out/improve it but it seems the patch did not attach to your post. If you click the Follow Up link you can try again.

here's the patch

AttachmentSize
view_files.patch40.94 KB

Thanks for taking a look! the patch shows up now :)

is there a way to get the source files and not a patch?

Looks cool, I'll try it out when I find the time.
What would be great is if it supported documents like .doc, .xls... I know it's far from easy :) It could make it kind of like what QuickLook does. If you have a Mac with Leopard, you'll know what I'm talking about...

I don't know how/if it could be done... Maybe all the documents would have to be pre-parsed to be displayed quickly then. Or a flash object could do that?? (I have no idea)

Anyway, I'm just rambling here... I don't think it can be done easily because it would require a huge amount of work to get this done. A project by itself!

I don't think it can be done easily because it would require a huge amount of work to get this done

talk about repeating yourself and being redundant by saying twice the same thing! :-)

valen, i can get you the source files- but it's not working yet.