[Feature Request] File type icons

Phoca Download - download manager
bison
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 06 Feb 2010, 12:17

[Feature Request] File type icons

Post by bison »

Hi there
Would be great if Phoca download could:

automatic show icon of filetype next to filename - zip-pdf-rar-doc-jpg and so on

Regards Bison
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] File type icons

Post by Jan »

Hi, added into the feature request list, now you can assign it to every file (but it is not automatic :-( )

Jan
If you find Phoca extensions useful, please support the project
bison
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 06 Feb 2010, 12:17

Re: [Feature Request] File type icons

Post by bison »

Thanks Jan --looking forward to it

Bison
emal011
Phoca Member
Phoca Member
Posts: 23
Joined: 11 May 2010, 16:57

Re: [Feature Request] File type icons

Post by emal011 »

Jan wrote:Hi, added into the feature request list, now you can assign it to every file (but it is not automatic :-( )

Jan
and wich is the manual way?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] File type icons

Post by Jan »

For now I have no experiences with this so cannot give any advices.

You need some function like:

- you get the filename
- with help of Joomla! method or Phoca Download method you will get the extension type for the filename
- you will create a function where you send the extension info and it will return the name of the icon.

The icon you will display next to the file.

Jan
If you find Phoca extensions useful, please support the project
emal011
Phoca Member
Phoca Member
Posts: 23
Joined: 11 May 2010, 16:57

Re: [Feature Request] File type icons

Post by emal011 »

It could be really interesting to have some icons file, like if it´s a zip file, a zip icon, video file, video icon...

I don´t know how to hack phocadownload :P so, i just see if I could make it with css... :?:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Feature Request] File type icons

Post by Jan »

Hi, in fact there can be such possibility - you will extract the extension name (e.g. jpg, png, zip) and add this info to the class of item and then you will paste the class with link to the image into the CSS.

Jan
If you find Phoca extensions useful, please support the project
Post Reply