1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Attachment file type thumbnail

Discussion in 'XenForo Suggestions' started by Andy.N, Feb 22, 2011.

  1. Andy.N

    Andy.N Well-Known Member

    Search for "attachment thumbnail" but didn't find anything relevant

    Would there be a thumbnail for each file type attached to a post? So if we upload 20 files of pdf, xls, doc, zip, txt, and each attachment has a different thumb for the type of file, it will be much easier to find the type you want to use.

    Right now, they all look the same (point to forum/styles/default/xenforo/widgets/page.png) and we have to read the title of the file to figure out.
    steven s, Luis, Mutt and 3 others like this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I know Kier has mentioned attachment type icons in the past, specifically .zip files.

    I expect it's on the to do list.
    krstep and Andy.N like this.
  3. Andy.N

    Andy.N Well-Known Member

    Wonderful, I hope to see it in the next RC as it's a small twist ;)
  4. Shelley

    Shelley Well-Known Member

    I hope to see this also as I'm working on some icons (simple design)

    Fuhrmann, BlackMuddler and Onimua like this.
  5. Mutt

    Mutt Well-Known Member

    me too, attachment icons seem like a must.

    the extension doesn't seem to be stored by itself so it's more than just a template edit. will have to strip it off the filename.
  6. Andy.N

    Andy.N Well-Known Member

    Do you know what happened to this todo list item?
    I have posts where there are a dozen or so file attachments, some are more important than other and it's almost impossible to glance and see the file type right away.

    In this screenshots, I have source code cpp and I have reading materials in pdf files. I want the members to download the PDF files first, read it and then download and run the code.
  7. steven s

    steven s Well-Known Member

    I just uploaded an xls file to one of my forums and was surprised not to see the excel icon.
    Looking forward to seeing this in the future. I hope.
  8. Fuhrmann

    Fuhrmann Well-Known Member

    I've tried to achieve this and I think it works..

    This can be done using a code event listener and writing each of the extension types classes in EXTRA.css template:


    There is no need to edit templates..
    Just add the classes of each extension with the background image. I am trying to make it works when someone upload and the file show in the editor.
    steven s and high1976 like this.

Share This Page