WordPress UnGallery

UnGallery dynamically publishes directories of images and embeds them into your WordPress blog.  The name describes the goal of the plugin to stay out of your way and allow you to manage your images with no administration in WordPress.

This approach allows your powerful administration tools like FTP, SCP, automation scripts, and image editors to directly manage your image library.  Changes are automatically reflected in WordPress.  There are no web forms to select files for upload.  There is no importing or modifications to the database.  The gallery files are accessed remotely by WordPress and remain accessible and manageable, outside the WordPress environment.

If you’ve ever had to reorganize where your photos are stored, remove a few from a large set, or edit the red-eye of a dozen pictures after uploading, you know how inconvenient it is to return to the website management UI to update everything.  With UnGallery, all these add/remove/edit changes you make to your library are automatically rolled into WordPress.

 

 

Features:

  • Unlimited depth, breadth, and number of photos. The gallery here has approximately 25,000.
  • Photo library is managed outside of WordPress.  Simply update via FTP, SCP, etc.  UnGallery displays changes automatically.
  • Multiple gallery views:  Top level marquee (optional), thumbnails, browsing previous and next pictures.
  • Gallery hierarchy breadcrumbs with links to parent, present, and sub-galleries
  • Optional and default banner captions
  • Unbrowsable, hidden galleries
  • Caching for faster page reloads
  • Support for MP4 movies embedded within WordPress
  • Automatic image rotation of jpegs with exif orientation, if available

Notes:

  • The layout is configured for the default WordPress installation.  I use the excellent Atahualpa theme and increase the page width to a modern browser standard.  The sizes of all thumbnails, images, and columns are configurable.
  • Feel free to use it, extend it, or contact me with questions.

Download:

  • Grab the current version at WordPress.org.
  • The installation steps are mostly standard, though there are couple simple, extra steps, noted in the instructions.

Screencast:

UnGalleryScreencast

199 comments to WordPress UnGallery

  • Jonathan

    It also appears that when I change my permalink settings to the custom setting, I can’t page through the posts either (using the “Older Entries” link on the bottom of the home page). When using the default, it works fine. It appears that the theme doesn’t support the permalink structure?

  • mark

    Hi Jonathan,

    Can you change the permalink manually for these? Maybe it is just not migrating the old format to the new when you set the new global permalink choice? If you go to the edit screen for UnGallery (or for any other page/post) do the links there look like the new, friendly permalink page titles? …or are they the old page_id=582 style?

    If they are the old style, can we just make the update there on the edit page/post screen to correct it? It should end up looking like the following: http://markpreynolds.com/wp-content/plugins/ungallery/source.php?pic=/home/mmond/pics/2010/December/permalink.png

    The up-side even from a non-UnGallery perspective is you end up with “pretty” URLs that are meaningful when emailed/posted to Twitter/Facebook/etc.

    Mark

  • Jonathan

    Sorry, it’s hard to communicate well through these posts, but I checked the pages and they have the updated names on the edit pages for the names. Which is lame because when going to them they don’t work.

    Jonathan

  • […] more here: WordPress UnGallery | MarkPReynolds.com Tags: gallery, […]

  • mark

    Hi folks,

    UnGallery v.1.5.0 is published which adds 2 new features.
    1. Multiple galleries are now supported. There were always unlimited galleries available as subgallery/subdirectories of the main gallery. Now you may choose up to 4 separate, top-level galleries. (Thanks Luis for the suggestion).
    2. UnGallery no longer requires custom permalinks. The default permalink format of ../?page_id=123 is supported also. Jonathan, this may be worth trying on a Windows installation of WordPress. I expect we’ll see other issues related to that platform however.

    While these changes are may seem subtle, they were actually a rather low-level rewrite of parts of the plugin. As such, we may see the occasional glitch in some environments. Just let me know if anything surfaces and I’ll address asap. (I’ll mention now that the gallery archive/zip feature needs a tweak to work in the new model. In general though these changes should make UnGallery more accessible for most users.

    My day job starts back up again this week so the feature pace will stall for a month or so.

    I hope everyone had a happy holiday season. Best,
    Mark
    ______________________

  • Sam

    Hey Mark,

    I found the images not being displayed as they are supposed to on IE. Please verify that and let me know if that is something easy to fix.

    Thanks,
    Sam.

  • Luis

    Sam, I can verify that I dont have any problems with IE on any version of unGallery I’ve used. Are you sure you see a difference on the same page in different browsers? If you do, can you share a gallery url so that we can check it out?

  • Sam

    Hey Mark,
    Thanks for your quick reply.

    http://markpreynolds.com/gallery?gallerylink=2009/April This is the link from one of your galleries. If you open it up in firefox, it shows all the related images inside the directory. But when you bring it up on IE, it shows only the first row.

    Not sure if this the way it is designed or not.

    Thanks,
    Sam.

  • Luis

    I see it in Mark’s demo gallery. Somehow the table that encloses the gallery is too wide (2995 pixels) so it’s going underneath the right bar of content and you can’t see the rest of the images. Some sort of CSS issue more than likely where the images aren’t wrapping down. Im guessing that this is related to the theme and css that is in place so this probably wouldnt effect your site using a different them and css. You could comment out the enclosing table (if you know your way around PHP and (x)html markup) and rely solely on your own layout css.

  • Sam

    @Luis,

    You are right, when you bring it up in firebug you can see the issue. I wish IE had something like firebug which would stop lot of web developers out there from banging their head against the wall…. lol

    Cheers!
    Sam.

  • Luis

    @Sam, IE does have something like it. It’s nowhere near as good but still useful. Try F12 in IE. You can also use Firebug Lite in IE.

  • mark

    I’ve confirmed in IE also. Thanks Sam and Luis for the heads up.

    This is due to my removing the column setting last month allowing the browser to handle the wrap. Apparently IE does not though, so I’ll either add that setting back or find a way to render the code in a way that IE supports.

    Best,
    Mark

  • Sam

    @Luis, I know there is something called debugbar for IE and i am sure it is no way near to firebug 🙂

    @Mark, You are most welcome! Keep up your great work.

    Thanks,
    Sam.

  • Urs

    Mark
    Thanks a lot for this functionally plugin.
    Everything works fine – except wrapping of images.
    The CSS of my theme could be the cause. But it seems to be easier to introduce the appropriate column setting again, as you said January 4th, 2011 at 1:27 pm.
    Of cause I can do that myself in the ungallery.php-code. But please, what column setting would you recommend, or did you have in the former version of ungallery ?
    Thanks, Urs.

  • Urs

    Mark
    I did not like the fixed width setting of the thumbs, because portrait-shaped images show up much larger than landscape-shaped images.
    I made a tiny addition in the phpthump calls for making thumbs in order to get thumbs of similar size:

    &w= ‘$w. ‘&h=’ .$w. ‘ instead of only &w= ‘$w. ‘

    It works on my theme (see: http://maerchenquelle.ch/gallery/?gallerylink=Gelterkinden/Winter).
    I changed also the comment in the configuration_menu.php of ungallery to match this.
    Maybe that could interest other people as well.
    Regards, Urs

  • Urs

    Sorry, I included the closing parenthesis in the url above.
    Try:
    http://maerchenquelle.ch/gallery/?gallerylink=Gelterkinden/Winter
    without closing parenthsis.
    😉 Urs

  • mark

    Hello Urs and thanks for the feedback. Appreciated!

    You are exactly right about the CSS issue affecting IE. In fact the default WP theme does not even have the problem. But I use Atahualpa which has heavy CSS. I ended up solving it as you suggest, by adding the column field back in.

    Sam and Luis, I really looked for a way to handle this programatically, but didn’t find one that did not break at least one browser. There is a lot of web chatter about word-break:break-all style proposals, but the current spec does not do what I need. I’m open to suggestions but for now the column specification has returned.

    Urs, I actually published it early this morning during an insomnia period so if you auto-update to v. 1.5.4 IE should wrap properly again.

    Regarding the thumb sizing, that’s in interesting suggestion. If you set both h and w to equal w don’t you end up changing the proportions and accuracy of the image?

    Best,
    Mark

  • Hi,

    I am realy in need for a fast and easy gallery. I have thousands of pictures on my server and installed exactly as discribed UNGALLERY on WP 3.0.4 but it doesn’t work!!!

    See at http://www.megamerel.com/MegaTON/cms/?page_id=4 it should show pictures?????

    Does anyone have a sollution or a gallery that wil work?

    Greetings FK

  • Hi Mark,

    TANXS for your fast response. I am also expecting that it is a PHP4 issue.

    Greetings FK

    ps: Good night from (Holland) the other site of te oceaan.

  • Urs

    Mark
    Thanks for your answer and suggestions.
    As far as I understood PHPTHUMP-Syntax, my adjustment will not change image proportion, but generate thumbs landscape to $w width an portrait to $w height.
    Regards, Urs

  • mark

    Ok, I see what’s happening. I kept thinking it’s already displaying as you describe on my site. But I base the w= on the long side of the image and then rotate it if needed using the exif. The pics in your example don’t have exif orientation data in them, so the w= is no longer necessarily the long side.

    Feel free to email the code change you made and if there isn’t a conflict, I’ll add it in for others.

    Appreciated,
    Mark

  • Urs

    Hi Mark
    Thanks for your update.
    Now, wrapping down of thumbnail table row works even on my site/blog.
    Regards, Urs

  • Hey mark,

    I was wandering… Can ungallery play mp3 files? I know it can play mp4 files but converting a song to an mp4 file was not successful.

    Greetings,

    Sebastiaan.

  • mark

    Hi Sebastiaan,

    No. The code does not look for audio files to include.

    Best,
    Mark

  • Hi Mark,

    Do you know what i’m doing wrong?

    http://www.budgeteventsnederland.nl/gallery

    Thanks,

    Sebastiaan.

  • mark

    Hi Sebastiaan,

    It looks like there may not be read permission enabled on the /var/www/dannyrobben1/wp-content/images/ directory. From the WordPress directory “/var/www/dannyrobben1/” you can type this from the command line to allow the web server to read it:
    chmod -R 755 wp-content/images/

    Best,
    Mark

  • Hello. Well after 2 days of trying to get ungallery 1.55 to work I just can’t. I have tried and tried but still nothing. I’m sure it is something small but I can’t see it. The problem is I am not getting any thumbnail pictures. I can click on the red X’s and go to the final picture and it is there but no thumb nails to be seen. They aren’t being maid in any dir or any dir being made. I have the cache dir made and the permission 777 and everytjhing seems to be working but the thumbnails. Any suggestions would help.

    Thank you
    \Seaton

  • mark

    Hi Seaton,

    Thanks for checking out UnGallery. It looks like there was an extra forward slash in the path. I don’t think you have plugin installed any longer but if so, feel free to contact me to troubleshoot.

    One other note. It’s not recommended any longer to put your valuable image files into plugin directories. The default method for WordPress to perform automatic updates is delete the plugin directory and all of its content (including image files and subdirectories) and then install the new plugin version.

    Best,
    Mark

  • seaton

    Thanks for the fast response. Ok I did a fresh installom another site. http://wildimage.com and now I don’t even get the red X’s. I put the images in a different place wp-contect/images and I made the cache in the wp-content/cache and permissions at 777. Permalink: is – wildimage.com/?page_id=264. <- with out the period 🙂 The path to my images is usr/home/seaton/public_html/wildimage/wp-contect/images and I tried with and without a / at the start and end. I think I have got it covered but I will leave the pages up so you can look at both. I really appreciate your time in this I think it is very cool that you do this. Thank you
    Seaton

  • mark

    Please note, phpThumb (which Ungallery includes as library) has a serious security issue detailed here: http://forum.intern0t.net/exploits-vulnerabilities-pocs/2969-phpthumb-all-versions-arbitrary-command-execution.html

    I have commented out the SafeExec section that contains the exploitable code. I don’t believe UnGallery uses it at all. I’ve checked this update into WP Subversion so please grab v.1.5.7 to protect your site against the security flaw.

    Best,
    Mark

  • mark

    I received communication regarding another security issue and in response I’ve updated the UnGallery plugin to address it. If you run the UnGallery plugin it’s important to update to the latest release: version 1.5.8.

    Best,
    Mark

  • Hi Mark,

    I just installed your plugin and have tried several things but can’t get my images to show. I have to put my images into wp-content/plugins/ungallery/phpthumb/justin/photos for example. Then in the general settings path input justin/photos/ ? Is this correct? I’m doing this and gettings just things like this on the page:

    Warning: opendir(justin/photos/) [function.opendir]: failed to open dir: No error in D:\Hosting\7910145\html\wp-content\plugins\ungallery\ungallery.php on line 119

    Warning: readdir(): supplied argument is not a valid Directory resource in D:\Hosting\7910145\html\wp-content\plugins\ungallery\ungallery.php on line 120

    Warning: closedir(): supplied argument is not a valid Directory resource in D:\Hosting\7910145\html\wp-content\plugins\ungallery\ungallery.php on line 144

    What can I do?

  • James

    Hi Mark,

    I am testing out your UnGallery plugin and find it extremely easy to setup and use. However, I have a use-case scenario which I don’t seem to be able to resolve with your settings and WordPress settings.

    I have linked a page to your plugin for use as display for my gallery. However, when I set the page to password protected using the built-in WordPress setting, it doesn’t work. It seems that your plugin has precedence over that setting.

    May I know do you have any resolution in mind or at least point me to the part of your code where I can customise?

    Thank you very much.

  • Hi.

    Could you please fix the LFI vulnerability in your WP plugin. Thank you.

    # Exploit Title: WordPress UnGallery plugin <= 1.5.8 LFI Vulnerability
    # Date: 2011-08-20
    # Author: Miroslav Stampar (miroslav.stampar(at)gmail.com @stamparm)
    # Software Link: http://downloads.wordpress.org/plugin/ungallery.1.5.8.zip
    # Version: 1.5.8 (tested)


    PoC

    KR

  • mark

    The security issue affecting archiving to a zip file was possible to apply to the inline movie display feature also. So for the near term, this feature is disabled. Thanks Miroslav for the notification.

    I’ve updated the plugin so please update to v.1.5.11 to patch the issue.

    James and Justin, sorry for the delay in replying. My email notification of your postings failed or was otherwise filtered. My available to provide support for UnGallery is constrained in recent months due to work commitments but I’ll try and follow up regarding the installation issues.

    thx,
    Mark

  • Hi mark! I love your plugin! And I use it on my site, buy i was wondering if is there a way to use the “fancybox” (or similar) with it! I tried to install it but they just wouldn’t work together.

    Thanks!

  • Hey Mark,

    Is it possible to exclude a file and / or folder in the image folder so it does not get displayed by ungallery?

    Thanks,

    Sebastiaan.

  • malcolm

    I’ve just installed unGallery. The installation screen cast was a great help as it includes the instructions to set up permalinks. That instruction isn’t in the current installation notes.

    Having got it working I can see a link called /-zip-/ which says “download a zipped archive of all photos in this gallery”. Is this a setting? Can I change that without hacking your code?

    thanks for your great work.

  • Lee

    hi, Mark… i am unable to view the screencast. Just get the big Q and the message that it may take a minute or two to load… no indication that it is loading. Any idea as to why? the install of QuickTime seems to check out… don’t usually have issues with viewing content. i gave your site permission to pop up.

    Thanks…. btw… you are in Austin? i am in Cedar Park… thanks for the UnGallery plugin! looks like it will be just what i need.

    LL

  • Sorry for the overdue replies folks; I’m not getting email notifications of comments. I’ll fix that asap.

    General news: the security referenced above is resolved. Zip archives and movies are back.

    Federico, thanks for the kudos. Fancybox looks like a cool plugin but, no. I have not included any integration support for lightbox features. I’ll add it to the list of things to investigate though.

    Sebastian, welcome back. Yes. You can use the hidden option under advanced options to exclude directories. Just match the start of a directory/gallery name to the string you enter there. So if the string you enter is “hide”, galleries titled “hide”, “hideDirectory”, and “hide123” will not show up via browsing. An explicit link to those galleries can then be sent to allow access.

    Malcolm, thanks. The feature to download all images in a gallery is not disable-able at this time. As you suggest, you’d have to remove the -zip- link text from ungallery.php (currently on line 136).

    Lee, thanks. I get so many different behaviors reported about the embedded movies. You are correct that you need QuickTime installed and configured in your browser. I need to add that to the docs. I think based on all the varied levels of success (it always works for me, but that’s not really the point =), that I’ll change the default streaming option to at least not be embedded and maybe away from QuickTime. I’ve updated this page and the screencast page with a direct link to the screencast MP4 which seems to load immediately and with less WP interference.

    And yep. I’m in Austin!

  • Jozef

    I, a noob+, had some problems to configure WordPress and get UnGallery working.
    Mark was there for me: 7×24, he did really a good job !

    I like UnGalllery: fast and and easy to install (if WordPress working)

    Thanks !
    Jozef

  • Thanks Jozef! Good job on your setup.

    Federico/all, I am testing the requested lightbox feature. You can check it our here: http://ungallery.markpreynolds.com/gallery?gallerylink=2011/December. It replaces the previous/next thumbnails with a lightbox photo and previous/next arrows. I haven’t figured out how to include access to the original, full-sized picture though. That was one of the original reasons I wrote the plugin so I’d like to keep. In any case, I’d be interested in feedback about how this looks to folks. Thanks!

  • Hey Mark! I looks great! You have done a really good job! I will definitely download the plugin when the update is available 🙂

    Have a nice day

    Thanks!

  • Hi folks,

    UnGallery now (optionally) supports fancyBox lightbox application. It takes just a few additional steps to provide quite an improvement to the polish of the gallery navigation. Check out version 2 and let me know what you think. http://wordpress.org/extend/plugins/ungallery/

    The screencast above is also updated to cover the current features and fancyBox installation.

    Best,
    Mark

  • Excellent update! 🙂 I am now using ungallery with fancy box in my Website 🙂

  • Hey Mark,

    Is it possible to make a (big) ‘Back’ button on top. Or an arrow that displays ‘up’. With a function to step back a directory?

    Is it possible to make a checkmark to remove the zip download possibility?

    Thanks.

    Sebastiaan.

  • Hi Federico,

    Glad you like the lightbox update!

    Hi Sebastiaan,

    You are not the only requesting making the zip link optional, so I’ve now added that as a checkbox on the admin page. Let me know if you see any issues.

    Regarding the back button, I didn’t find any room for it yet. I do always display the entire backward path though in a breadcrumb trail. So if you are deep in a gallery/directory hierarchy, you can click these links to return to any level of the gallery.

    Best,
    Mark

  • Adrian

    Great little plugin, exactly what I was looking for. I have 2 minor issues:
    1. I still have the “could not create cache directory” message, this is despite creating the directory manually and changing the permissions to 777

    2. It there anyway of changing to the image ordering so that the newest images are displayed at the top of the page?

    Thanks

Leave a Reply

 

 

 

*


Warning: Illegal string offset 'solo_subscribe' in /home/mmond/sites/markpreynolds/wp-content/plugins/subscribe-to-comments/subscribe-to-comments.php on line 304

Subscribe without commenting