Closed (fixed)
Project:
Fileshare
Version:
5.x-1.0
Component:
Module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2007 at 12:17 UTC
Updated:
4 Jan 2008 at 11:33 UTC
Jump to comment: Most recent file
Comments
Comment #1
JamieR commentedCheckout this release for the latest fileshare 5.x-1.x-dev.
Jamie.
Comment #2
JamieR commentedComment #3
malcomm commentedCreated a simple patch to add icon support for .PPT & .VSD.
Comment #4
malcomm commentedVSD icon
Comment #5
malcomm commentedPPT icon
Comment #6
BStewart-1 commentedI am trying to figure out how to do this as well. I saw that there was a "patch" as an attachment to one of the responses, but I don't know how to apply it. I only see what appears in the browser window when clicking on the link.
Any assistance you can provide would be fantastic.
Thank you!
Comment #7
jeeves commentedI tried running the patch against the 5.x-1.x-dev version. No success, here is a copy of what went on:
My guess is I was not patching the correct version, but 5.x-1.x-dev appears to be the only one available.
Comment #8
CESSoC commentedHello dear friends, my english not so good but we'll try...
I've tried to find a solution with FileShare module to display icons without using the prewiews system integrated within the module. So I've written a snippet to fix it with basic icons to display (PDF, XLS, DOC, ZIP, PPT and HTML). This code is very basic but helps me a lot. So here it is... and it works very well (see the sceenshot in attachment). The version of the module that you can find at the first line of the file is :
// $Id: fileshare.module,v 1.21.2.4 2007/02/12 19:29:32 jamier Exp $
1) First of all, in the fileshare.css, I de-activate the background image of files (line 56) :
/*background: url(file.gif) left no-repeat;*/
I replaced the original folder_open.gif too to have a more visual effect when the folder is open
2) I created an image folder in modules/fileshare/images and add some images (16x16 pixels gifs). I can send you in a zip if you want.
3) In fileshare.module, here's the code between the /////// . This is to place at the very bottom of the file, around line 685
4) I have to review the code to display an image in case of the file can't respond to the "if" conditions. I think it's more convenient to use "switch" and "case" and to end with a default image. Let's consider that my site will never display other types of files for the moment, so it'ok for me with that code.
Comment #9
(not verified) commentedComment #10
Ulti commentedFor anyone who wants more of an MS Windows look and feel here are some folder opened and closed icons. ;)
This module is really great, just what I needed for the site I'm building. Thanks for all the work you've put in to it!