2004-12-10

WP-Gallery Plugin 0.1

Filed under: WP-Plugins — Geoff @ 10:22 pm
Update 2005-01-01: There is a new release, version 0.2.

This WordPress plugin allows posting images and links to your Gallery albums and photos. In this sense, it is much like the MTGalleryLink plugin for MovableType.

To insert a thumbnail like this:

bigsur7thumb.jpg

You use the following tags in your post: <wpgallery>bigsur04/BigSur7</wpgallery>

You can also use a direct PHP function call: <?php echo wpgallery_link( $album, $photo ) ?>

To install, download the plugin, edit the "GALLERY_BASE" and "ALBUM_BASE" definitions in the wp-gallery.php file, upload to your WP plugins directory, and activate.

wp-gallery.zip

That’s all the plugin does. If you don’t see the point, then it’s not really for you. But as a user of both programs on my website, I wanted to get them to work together more cleanly.

Note that if you want to insert random photos, and you have Gallery 1.4.4 or later, you can use the Gallery “block-random.php” code as suggested here..

22 Responses

Mentioned Elsewhere

  1. Pingback by scriptygoddess — 3 years, 6 months ago.

    [...] ber 24 2004 WordPress Bookmarks to Plugins: WP-Gallery Plugin 0.1 The WP-Gallery Plugin 0.1 offers a nice, easy way to include your Gallery al [...]

  2. Pingback by Cloudsoup Weblog » Wordpress Gallery Plugin — 3 years, 6 months ago.

    [...] Wordpress Gallery Plugin gallery/cat/jess1.jpgGeoff Hutchinson has produced a WP plugin for gallery images. Useful. [Friday 24th Dec 2004] - [...]

  3. Pingback by Weblog Tools Collection » WordPress Gallery plugin — 3 years, 6 months ago.

    [...] lery plugin Categories - WordPress Hack Photolog Script LinkyLoo — Mark WordPress Gallery plugin: Post pictures from your existing Gallery insta [...]

  4. Pingback by reinvention » Some Photos — 3 years, 4 months ago.

    [...] uarina Childcare Centre Christmas Party, 13 December 2004. This post is also a test of the WP-Gallery plugin, which creates thumbnails and links to images in the G [...]

  5. Pingback by Chris’ Notebook » WP-Gallery Plugin 0.1 -- geoff hutchison: blog — 3 years ago.

    [...]

                Tech09 Jun 2005 06:02 pm WP-Gallery Plugin 0.1 -- geoff hutchison: blog     WP-Gallery Plugin 0.1 -- geoff hutchison: blog This WordPress plugin al [...]
    
  6. Pingback by tomsw.org » Blog Archive » tomsw.org Update — 2 years, 8 months ago.

    [...] Ich werde künftig die Kamera in die Hand nehmen und mich auf die Suche nach schönen Motiven begeben. Bis die Fotogallerie eröffnet wird, dauert es sicher noch ein paar Wochen, da ich erstens ein passendes WP-Plugin für die Gallerie brauche - obwohl ich schon ein Plugin im Visier habe: WP-Gallery Plugin 0.1 - und zweitens Ausstellmaterial sammeln muss. [...]

  7. Pingback by Yacht Yanina » Blog Archive » Test image post — 2 years, 4 months ago.

    [...] http://geoffhutchison.net/blog/archives/2004/12/10/wp-gallery-plugin-01/ [...]

  8. Pingback by Blogosopher » Blog Archive » Using iWeb 06 to build a gallery page — 2 years, 3 months ago.

    [...] Note- we’ve tried a couple of WordPress plug in’s like Gallery- with limited success. I would really like iWeb better if it took the iPhoto comment info and put it under each photo- and would allow for alt tagging the photos as well. [...]

  9. Pingback by Blogosopher » Blog Archive » Using iWeb 06 to build a gallery page — 2 years, 3 months ago.

    [...] Note- we’ve tried a couple of WordPress plug in’s like Gallery- with limited success. I would really like iWeb better if it took the iPhoto comment info and put it under each photo- and would allow for alt tagging the photos as well. [...]

  10. Pingback by WP-Gallery 0.2 » geoff hutchison: blog — 7 months, 2 weeks ago.

    [...] For more information, see the information posted about release 0.1. [...]

  11. Pingback by WP-SuperBlog.com » Blog Archive » More Wordpress Blog Resources — 5 months, 2 weeks ago.

    [...] … da ich erstens ein passendes WP-Plugin für die Gallerie brauche - obwohl ich … More Blog Resources Wordpress Blog Resources brought to you by [...]


Comments

  1. Carla — 3 years, 6 months ago.

    Awesome! Thank you. :)

  2. Ron — 3 years, 6 months ago.

    Outstanding plugin! It’s about time someone came up with this. :) Tools like WP and Gallery are supposed to make our digital lives a bit easier, but having to rework photos and upload them to WP was always a pain.

    The only advantage I can think of to the old WP method is that the link to the full size image is just that: a direct link to a JPEG file. So it’s fast. With the link to Gallery, it can take a bit of time to load since Gallery is rather, uh, ’slow’ sometimes. Hopefully G2 will fix this.

    Speaking of G2, hopefully they’re sticking to the same format for URLs…

    –Ron

  3. Geoff — 3 years, 6 months ago.

    Thanks!

    I agree that the link to Gallery can be slow. In my case, I’m also likely to be posting links to new Gallery albums, so I think the link is needed. I could hack the plugin so that you’d get a direct link to the full-size JPEG if you preferred. It might even be reasonable to allow that on a per-post basis via a custom field for the post. I’ll have to think about that–I’m not sure the full-sized JPEG is named consistently like the thumbnails (particularly if you upload a non-JPEG file).

    If G2 changes the format for URLs, I can certainly adjust the plugin accordingly (e.g., there’s a setting for G1 or G2 style URLs). But I’d be surprised if they didn’t support the same URL style–it would break a lot of external links. What about sites that link to Gallery albums or photos?

  4. Luxus — 3 years, 6 months ago.

    g² changed the url format..
    main.php/view/albumname/picturename.extension
    example:
    main.php/view/Australien2004/oh.jpg
    same in g1
    Australien2004/oh
    hm i wonder why the url in g2 is getting much longer :/
    but i thing there is a url mapping feature on migrate images from G2

  5. Jesse Mullan — 3 years, 6 months ago.

    G2 URLs are longer, but they will likely get shorter again. One of the reasons that they are getting longer is that we are now doing nested albums properly, so album folders will be in other album folders. Instead of every album having a path like /album01, you can have /album01/album02/etc

    I may just steal this for the gallery integration that I am theoretically working on (in between school and work).

  6. Keith — 3 years, 6 months ago.

    Your plugin works great! The question I have is: Is the plugin only valid for regular WP posts? I have tried using the plugin in a post comment and the WP menu area with no success. The URL doesn’t render. If I use the php function call, it’s blank. If I use the wpgallery tag, it renders the album/img as text.

  7. Geoff — 3 years, 6 months ago.

    Right now the plugin only registers as a filter for content and excerpts, but I’d be glad to add support for comments. I’m planning on a 0.2 release in a few days as I fix some initial problems.

  8. Hans-Göran Puke — 3 years, 6 months ago.

    It would be nice, if you could add <wpgallery> and </wpgallery> as quicktags in the editor window of wp. Is this possible?

  9. Mac — 3 years, 6 months ago.

    Great plugin! Works great for me. I have one request though, could you please let it support full-sized images? Not just the thumbnail? I would like to setup a photolog so I would prefer a large image immediately viewable in the post :)

    Much thanks!

  10. Geoff — 3 years, 6 months ago.

    I’m still working on update 0.2 — I’d like to have it update <WPGallery> tags in the comments. But I figured out that I created a bug when talking about calling as a PHP function, e.g.:

    <?php echo wpgallery_link(’ithaca’, ‘Taughannock’) ?>

    You need the echo bit or it won’t show you anything. I’ll make this clearer in the post for 0.2.

    Speaking of which, in 0.2, I’m mostly aiming to fix a few bugs I found and add up2date plugin notification support. I like a lot of the other ideas suggested here and I’m going to get to them. But I’d like to support those via HTML/XML attributes in the <WPGallery> </WPGallery> tags — and I want a bit of time to write some attribute-parsing cleanly.

  11. Geoff — 3 years, 6 months ago.

    Test comment for comment-text <WPGallery> tag support:

    ithaca/Taughannock

    molecules/Nanotube.png

Subscribe to comments on this post via RSS or TrackBack

Sorry, the comment form is closed at this time.

Powered by WordPress
Except where noted, all contents Copyright © 2004-2005 Geoffrey R. Hutchison, licensed under a Creative Commons license.