UPDATE #6:

2010-02-08

1.5 alpha is ready for testing: http://skyphe.org/wp-content/uploads/2008/09/file-gallery-1.5a.zip

please read the included readme.txt to find out what’s new :)

The biggest news is the ability to copy all attachments from one post to another (one of the big buttons on the main menu).

And please try it out on your local server first! It’s stable, but I’d still like you to test the features in a controlled environment. Thank you :)

UPDATE #5:

2010-01-18

1.4 is ready for testing: http://skyphe.org/wp-content/uploads/2008/09/file-gallery-1.4.zip

please read the included readme.txt to find out what’s new :)

Also, 1.5 will probably be the one to “go public”, so stay tuned.

UPDATE #4:

2010-01-10

I’ve worked on 1.3 for the past two weeks. It’s a big rewrite and I’d almost call it stable at this point :)

Thanks goes to X-Tender for letting me know about a slight copy/paste error on my side, which prevented custom templates from being shown in the template list – thank you :)

Please download v1.3 from here: http://skyphe.org/wp-content/uploads/2008/09/file-gallery-1.3.zip

I’ll start writing the manual tomorrow. Hopefully, it will be done by next week.

I should also update the screenshots and the video – I know… :X

Please read the included “readme.txt” file and leave a comment if you have any feature- or performance-related suggestions, or you’ve simply run into a bug :-)

UPDATE #3:

2009-12-30

Many new features and improvements in this version, including the ability to detach attachments from posts (either by checking an attachment and then hitting the last button on the right on the plugin box main menu, or by clicking the delete icon on the attachment thumbnail and choosing detach instead of delete).

You can download version 1.2 from here: http://skyphe.org/wp-content/uploads/2008/09/file-gallery-1.2.zip.

Read the included readme.txt file for all the good stuff :)

UPDATE #2:

2009-12-27

I’ve updated the plugin to a more stable state. You can download version 1.1 from here: http://skyphe.org/wp-content/uploads/2008/09/file-gallery-1.1.zip

Everything else is the same as below, except for the minimalist readme file :)

UPDATE:

2009-09-27

If you want to test the plugin, please download it from http://skyphe.org/wp-content/uploads/2008/09/file-gallery-1.0.4.zip

I haven’t found time to work on this plugin in the past four months, but I do not plan on abandoning it. I’ve just started a new job and when I wrap all the loose ends (and by that I mean past freelance projects), I’ll have plenty of time to work on both “File Gallery” and “Decategorizer” (which needs to be ‘finalized’).

So if you install “File Gallery” and notice a bug/quirk/security problem, or you’d like to see a new feature added, please leave a comment below.

I won’t post the plugin to official repository yet because it’s not done and could be a security risk. I’m not saying it is, but it could be, because I haven’t done any testing security-wise. So, what I’m saying is: use it at your own risk :)

Also, there is no readme file at the moment, so, for now, you’ll have to take a look at the video below (or code itself) to see how it’s used, sorry :/

This is what I was working on for my bachelor’s degree – a WordPress plugin which extends the default [ gallery ] shortcode behavior.

Some of the features are:

  • multiple galleries per post with custom attachment order
  • a basic templating system – choose a different template for each gallery within the same post
  • simple, easy to use UI with drag and drop sorting and most options in one place
  • settings page which extends the default media settings page
  • ability to attach items from media library to current post (copy)
  • media tags – tag your attachments and then use those tags to choose which attachments you want to display in your gallery (this functions as a custom taxonomy, not in form of attachment metadata)

If you have any questions or suggestions, please leave a comment on this page.

Thanks in advance :)

A (too long, boring and unedited) video demonstration:

Some screenshots:

36 Responses to “WordPress “File gallery” plugin”

You can follow any responses to this entry through the RSS 2.0 feed.

  1. Gravataraesqe Said

    The plugin will be released into the official repository within a month, I hope :)

    If you would like to see some other functionality included, please leave a comment here.

    Thanks!

  2. Gravatarsunny Said

    I would be nice if in the media library you coud sort, or filter by the media tags

  3. Gravataraesqe Said

    @sunny:

    sure thing, that is a feature I plan to work on next week :)

  4. GravatarAllan Said

    How can I download this plugin?

  5. Gravataraesqe Said

    @Allan:

    The plugin will be available for download in a couple of weeks, I still have some bugs to take care of.

    In the meantime, if someone wants to beta test the plugin, please send me an e-mail at aesqe *at* skyphe *dot* org. I will e-mail you the plugin in its current state with some basic instructions on how to use it.

    It requires WordPress 2.7 or higher, but works best with 2.8 :)

    Thanks for the interest!

  6. GravatarSam Said

    The video demonstration doesn’t seem to be loading? still managed to watch it at http://www.youtube.com/watch?v=2TJbx_cCc2k – great work!

  7. Gravataraesqe Said

    Thanks, Sam, I guess “Viper’s video quicktags” didn’t reactivate after upgrade :)

  8. GravatarMike Said

    So has this been release yet?? Emailing you nonetheless ..

  9. GravatarMike Said

    Oh and it would also be nice to see these features added:

    - unattaching attachments from posts
    - re-attaching attachments to different posts
    - attach to multiple different posts (so I can us the same image across different posts/pages)

    I used to use a plugin called NexGen, and I implemented an image sharpening script upon thumbnail creation (because sizing images down blurs them and much detail is lost depending on the content of the image).

    I would like to implement it as a plugin for wordpress’s image upload and thumbnail creation process.

    Might be suitable to exist as an option within your plugin.
    If you’re interested.

    Cheers,
    // mike

  10. Gravataroscar Said

    Hey, I would like to be a beta testes, where can i sing up?
    thanks!

  11. Gravatargasgarage Said

    Hi, i would like to see this great plugin released soon.
    I dont really like wordpress options to manage galleries & post/page attachments.
    Your code is a big step forward.

    Thanks, gas

  12. Gravataraesqe Said

    I’ve added an update on the top of this page, please be gentle, all :)

  13. GravatarX-Tender Said

    got a small problem with the Plugin.
    wenn I try to add Images to my post he tells me that he added the images but i cant see them. when i open die media browser again i see the images I choosed puplicated with large numbers at the end “image.jpg (12432323)” e.g.

    i use WordPress 2.8.4.

  14. GravatarMaor Said

    I’ve just installed this plugin in one of my projects and it looks pretty good. Will be glad to continue testing it, due to the fact the nextGen plugin does kind of problems lately with cropping etc. That thing the gallery handling is directly inside the post/page editor, is just a great idea.

    Maor

  15. GravatarMaor Said

    By the way, when you will finish all the testing and release the plugin to the WordPress repository, I’ll also be happy to translate the plugin into Hebrew, so let me know.

  16. Gravataraesqe Said

    I’ve updated the plugin to version 1.1, but it’s still not done. See top of the page.
    Also, you probably won’t see any difference usage-wise, unless you’ve been playing around with gallery template files. Templates are now pure PHP without variable placeholders, for easier use and faster parsing.

    Thanks in advance to all of you interested in testing it out, I’ll add more features (as described at the bottom of the readme file) this week :)

  17. Gravataraesqe Said

    @X-Tender: that’s perfectly normal.
    I was looking for a way to differentiate attachment copies from the originals, and this was the first thing that seemed OK to me – to add the post id in braces after attachment title.

    In v1.1, you can filter it using the “file_gallery_attachment_copy_title_extension” filter.

    (more about WordPress filters here: http://codex.wordpress.org/Function_Reference/add_filter)

  18. Gravataraesqe Said

    V1.2 is available for download (see top of page for updates).

    If everything goes to the plan and no critical bugs are reported by next week, I’ll push the plugin to the official repository :)

    Please leave feedback if you decided to test the plugin!

    Thanks :)

  19. GravatarX-Tender Said

    Hi,

    I tryed to create my own Tempalte but it doesnt appear in the template dropdown.
    Did I have to make some settings somewhere that it appears?

    X-T

  20. GravatarPaul Said

    Great plugin! I was really looking for a way to put images from my library into a gallery.

  21. Gravataraesqe Said

    v1.4 is out, please upgrade and let me know if something isn’t right :)

    thank you!

  22. GravatarX-Tender Said

    Hi, thanks for the improvements.
    I’ve made a quick test and noticed something.
    When I add Images from my media archive then they get an addition number at the end of the Title (e.g. mypic (1008))
    Thats a little bit annoying when you use plugins like Lightbox and the Diggit always appear on the Bottom of the Image :)
    Also it is now double in the media archive with the diggit at the End, on other Images I used the file-gallery it is’nt so ..

  23. Gravataraesqe Said

    @X-Tender: I’ve written in one of the comments above why that is so :)

    For now, you can filter the text that gets appended to attachment title using the “file_gallery_attachment_copy_title_extension” filter, but I’ll add this issue to the list of options in the next version, so you won’t have to filter it, but rather check an option on media settings page.

    if you don’t want any appendix on copied attachment’s title, paste this into your theme’s function.php file:

    function filter_file_gallery_appendix( $appendix )
    {
    return “”;
    }
    add_filter(“file_gallery_attachment_copy_title_extension”, “filter_file_gallery_appendix”);

  24. GravatarAldo Said

    Thanks for this great plugin!

    The option to load attachments from another post including the order would be great!

  25. GravatarZGron Said

    Hi

    Also just tested your plugin, and it is indeed great !!

    But I think I’ve found a bug .. when I sort the images / attachments and save it, my complete page structure changes also? (my pages are also sorted by menu-order)
    Any idea what’s going wrong?

    Thanks, ZGron

  26. GravatarZGron Said

    Hi again,

    I found a solution to my ‘problem’… when saving the menu order it not only changes the order of the current post and attachment, but also all the others posts and attachments. The following changes in menu-order.php solved it for me!

    Change:
    $wpdb->query( “UPDATE $wpdb->posts SET `menu_order` = CASE `ID` ” . $updates . ” ELSE `ID` END” );

    To:
    $post_parent_id = get_post($ID, ARRAY_A);
    $post_parent = $post_parent_id['post_parent'];
    $wpdb->query( “UPDATE $wpdb->posts SET `menu_order` = CASE `ID` ” . $updates . ” ELSE `ID` END WHERE `post_type` = ‘attachment’ AND `post_parent` = ” . $post_parent);

    Cheers, ZGron

  27. Gravataraesqe Said

    Hmm, that really shouldn’t happen and I couldn’t replicate it on my local test site, but I’ll take a look at it tomorrow.

    Thanks for the report and solution, ZGron :)

  28. GravatarZGron Said

    Your welcome, perhaps this helps?:
    In the database all the other items (which were not sorted at that time) had their ID copied to menu_order.

  29. Gravataraesqe Said

    @ZGron please try this: replace `ID` with `menu_order` in the query, like this

    $wpdb->query( “UPDATE $wpdb->posts SET `menu_order` = CASE `ID` ” . $updates . ” ELSE `menu_order` END” );

    and please tell me if that works. I’d really appreciate it.

    It _should_ fix the problem :)

    I’m working on 1.5, just generally going through the planned features list.

    It should be available here by next Friday.

  30. Gravataraesqe Said

    1.5 alpha is ready for testing, look up :)

  31. GravatarZGron Said

    @aesqe, Nice one! Your fix works… so simple.

    Also just tested 1.5, its great, no bugs here!
    (only a very very small error in the layout, the menu items are not in one line, the last one is below the others)

    I also have a feature request… :-)
    I would love the additional option to output all the attachments as a list in my theme, and be able to turn off the insert as “a gallery” and “single files” options.
    This way i can design the gallery for example with CSS + Jquery, and I can give it a fixed place in the layout … and I still have your great interface with sorting / add / edit etc, and ease of use for my editors.

    Cheers, ZGron

  32. Gravataraesqe Said

    I’m glad it works, ZGron :)

    I’ll check the menu, been tweaking it a bit trying to fit the new button in there and avoid exactly that what is happening to you :D

    about your request,do you mean:
    a) just a list, all attachments found for that post without any parameters or
    b) a function that would do exactly what my plugin does with the [gallery] shortcode and all of its options, but without any formatting?

    if it’s a) – that’s easy and a couple of plugins do that already. if it’s b), I think I could break the main function into a few smaller, specific ones, and make that happen, yeah.

  33. GravatarZGron Said

    Hi aesqe!,

    I meant “A”!, and that’s exactly what I do at the moment … (using plugin: http://wordpress.org/extend/plugins/jr-post-image/).
    But I thought it would be a nice addition to your plugin, especially if the insert “a gallery” and “single files” options can be hidden.

    Are you taking it in to consideration? :-)

    Cheers, ZGron

  34. GravatarFabio Said

    Your plugin is very useful, but unfortunately is incompatible with Wordpress Mobile Edition.

    Could you please fix this incompatibility?

    Thanks a lot

  35. Gravataraesqe Said

    @Fabio – I’ll see what I can do about it, but my mobile phone is pretty basic and it can run only Opera Mini…

    Well, I was hoping to release 1.5 beta today, but it’s already 10PM and I have to go to work tomorrow, so it’s time to wrap it up. I’ll try make it happen before next weekend :/

    anyways, this is what’s new:
    - caching of (almost) everything (oh, the speed improvement…)
    - generate list of attachments or media tags in your theme (as HTML, array, object or JSON)
    - save state of insert fieldsets and optionally disable them completely
    - some bug fixes
    - some CSS fixes

    what still needs to be taken care of:
    - implement all the new options on the media settings page
    - user capabilities re: attachment editing/deleting
    - content type filtering

  36. GravatarZGron Said

    Wow aesqe, that looks really promising!
    Can’t wait to try it …especially the new additions :)

    Cheers, ZGron

Leave a Reply