Forums

File Gallery
[resolved] Custom Extension Type Broken (9 posts)

  1. Darren Burns
    Member
    Posted 5 months ago #

    I have a custom extension type setup to display a PDf icon and have a pdf.png in the wp-includes/images/crystal folder.

    add_filter('ext2type', 'modify_ext2type');
    function modify_ext2type($filters) {
        $filters['document'] = array( 'doc', 'docx', 'docm', 'dotm', 'odt',  'pages', 'rtf' );
    	$filters['pdf'] = array( 'pdf' );
        return $filters;
    }

    With the new version (1.7) the gallery plugin has reverted to displaying the standard document icon, not the custom PDF icon. The PDF icon is displayed in the media tab but not the gallery.

    http://wordpress.org/extend/plugins/file-gallery/

  2. Aesqe
    Member
    Posted 4 months ago #

    @Darren Burns: thanks for letting me know about this, I'll fix it for v1.7.4

  3. Aesqe
    Member
    Posted 4 months ago #

    @Darren Burns:
    File Gallery v1.7.4-RC2 is available for download from here: http://downloads.wordpress.org/plugin/file-gallery.1.7.4-RC2.zip and the problem should be fixed in this version.

    v1.7.4-RC2 also supports multiple editors and drag and drop upload of files by dragging them onto File Gallery interface.

    If you can, please test these features and tell me if they work alright or not.

    Thanks! :)

  4. Darren Burns
    Member
    Posted 4 months ago #

    I should be able to have a look Wednesday if that is ok. I shall let you know how it goes.

  5. Darren Burns
    Member
    Posted 3 months ago #

    @Aesqe
    Sorry for taking so long to check this. Things got busy then a baby arrived!!! Ahhh sleep, I remember that.

    I updated to 1.7.4 and it wasn't working but I downloaded RC2 from the link you provided above and my PDF icons are appearing nicely. I dragged and dropped a new PDF and the gallery was updated with the new file.

    Love your work.

  6. Darren Burns
    Member
    Posted 3 months ago #

    Forgot to mention. I tested this with WordPress 3.3.1 and Genesis 1.8, using the delicious child theme.

  7. Darren Burns
    Member
    Posted 2 months ago #

    I just tested 1.7.4.1 and the icons for my PDF custom extension type aren't showing. Do you know when the change you made in 1.7.4-RC2 that worked and had the icons showing will be in a release?

    Thanks

  8. Aesqe
    Member
    Posted 2 months ago #

    @Darren Burns: I've moved it to v1.7.5 - there's a beta version you can download from here: http://downloads.wordpress.org/plugin/file-gallery.zip

  9. Darren Burns
    Member
    Posted 2 months ago #

    @Aesqe: Thanks. I've downloaded the beta and look forward to 1.7.5.

Reply

You must log in to post.

About this Plugin

About this Topic