Improved File Type Icons Support

Viewing 2 posts - 1 through 2 (of 2 total)
#20169

ddoda
Participant

Hi Shaon,

I noticed that some file type icons would not display for my files when using the wpdm_tree and also wpdm-all-packages. The file types relate to Excel, Powerpoint and Word.

One example that works fine is the extension “pptx”. But the old version of “ppt” won’t display, along with the uppercase version of “PPTX”, among others.

For wpdm-all-packages I was able to resolve this by adding duplicate filetype icons with names that match the missing extensions. I added these icons to: /wp-content/plugins/download-manager/file-type-icons/32×32/

Here are the icons I’ve added so far:

doc.png
DOC.png
DOCX.png
pot.png
POT.png
ppt.png
PPTX.png
xls.png
XLS.png
xlsm.png
XLSM.png
xlsx.png
XLSX.png

These only cover wpdm-all-packages. To fix wpdm_tree a new set would have to be added to one of the smaller icon folders. I haven’t tested this yet but either “16×16” or “24×24”.

The problem is that every time I update the core Download Manager plugin I will need to remember to re-add these icons.

In order to avoid adding extra icons (and the need for uppercase icons) it would be nice if the core code were changed to map multiple file extensions to one icon for each piece of software. For example, for Excel: mapping the 6 excel extensions mentioned above (and any others that I missed) to one of the existing excel icons.

I hope all that makes sense. I think this would be a nice improvement to file type icon support.

Thanks,
Mike S

#20854

flawless
Member

+1 to this.

This is a really easy fix and I hope its implemented soon.

I ran into the doc.png (old version of a word document) error today.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Improved File Type Icons Support’ is closed to new replies.