2005-03-22

WP-Gallery 0.32

Filed under: WP-Plugins — Geoff @ 1:25 am

This WordPress plugin allows posting images and links to your Gallery albums and photos.

For more information, see the information posted about previous releases.

Improvements/fixes in this version:

  • Integration with the WP Plugin Manager and One-Click Installs/Upgrades.
  • Support for WP Plugin Manager configuration, including the gallery and album base URLs.
  • Fixed conflicts with internal Gallery code when WordPress and Gallery PHP codes were linked directly.
  • Facilitates linking directly to images and inserting full-sized images into your blog.
  • Easier configuration of CSS classes of links and images, and link “title” attributes and <img> “alt” attributes.

Download as .zip or .tar.gz

Configuration through WP Plugin Manager should be self-explanatory.

Update: Judging from my server’s error logs, configuration is not self-explanatory. Please make sure you set the base URLs for your gallery and albums. The previous default was my gallery as an example. I doubt that’s what you want.

Does not yet support per-post or per-link configuration or G2-style URLs. Maybe when I have a bit more time…

91 Responses »

Mentioned Elsewhere

  1. Pingback by PhilsOwnBlog » Blog Archive » Neues Plugin: wp-gallery — 4 years, 11 months ago.

    [...] ugin: wp-gallery Ich habe ein neues plugin für wordpress installiert, und zwar wp-gallery von Geoff Hutchison. Damit kann man Links zu Bildern der Gallery ei [...]

  2. Pingback by blog.davidfuhr.de » Problemtrivialisierung — 4 years, 11 months ago.

    [...] nach – zu einfach und zu trivial sind, habe ich heute zufällig (auf der Suche nach einem Gallery-Plugin für Wordpress) ein sehr schönes Zitat auf der Homepage von Ge [...]

  3. Pingback by Just another Geeks Blog » Integrating images and text — 4 years, 10 months ago.

    [...] inks and information about this subject for use later when I try it out. I also found the wp-gallery plug-in as well. One thing about this plug-in that [...]

  4. Pingback by WP-Gallery 0.2 » geoff hutchison: blog — 4 years, 10 months ago.

    [...] 0.2 Filed under: WP-Plugins — Geoff @ 10:46 am Update 2005-03-22: There is a new release, version 0.32. This WordPress plugin allows posting images and l [...]

  5. Pingback by Bourne in Alaska » Blog Archive » Photo post — 4 years, 7 months ago.

    [...] Here’s a useful WordPress plugin if you use Gallery for hosting your photos online: WP-Gallery. [...]

  6. Pingback by crookster.org blog » Blog Archive » testing wp-gallery plugin — 4 years, 7 months ago.

    [...] [...]

  7. Pingback by pilkster.com » Blog Archive » Addition of Gallery — 4 years, 5 months ago.

    [...] Today I have added Gallery to pilkster.com, and also wp-gallery Gallery plugin for Wordpress by Geoff Hutchinson. Still in the experimentation phase, but I have added two galleries already, Caro’s 30th and also some pics of bumble emerging from the chicken shed at Bob Lucas’ gaff. [...]

  8. Pingback by Tomin ja Hannen blogi » Blog Archive » Galleriatesti — 4 years, 5 months ago.

    [...] Testaan uutta WPGallery-pluginia, ja mikäpä olisikaan hauskempi tapa kuin näyttää uusi kuva Villestä: [...]

  9. Pingback by ayn blog » Gallery (1) WP plugin — 4 years, 4 months ago.

    [...] Just installed the Wordpress Gallery plugin, testing it out: [...]

  10. Pingback by 日々之生活雑貨 » ひと足早いクリスマスツリー(WPに写真をアップロードする方法) — 4 years, 3 months ago.

    [...] âWP-Gallery 0.32 http://geoffhutchison.net/blog/archives/2005/03/22/wp-gallery-032/ http://www.hyperpup.com/main/archives/146/ [...]

  11. Pingback by Twisted world of Esden » Blog Archive » Glowing Sparcle — 4 years, 3 months ago.

    [...] I installed the wp gallery plugin, to integrate my gallery with the blog, today. I want to post some images I like in my blog entries little bit in the style of photoblogs. [...]

  12. Pingback by Almost Finished Upgrading at Animus Ex Machina — 4 years, 2 months ago.

    [...] There are a few more issues to solve, but basically, everything is done. Wordpress 2.0 is installed and stable. Save for a few weird things with the original plugins I was using, for example, the wp-gallery plugin has issues, but only, and only when, you edit or write a post with the WYSIWYG editor in Wordpress 2.0. If you specify to use the original editor, or use Safari (which does not currently support the WYSIWYG editor), you won’t have any issues. I noticed this when I was updating all the categories, there are a couple of posts from the Events & Trips category. When I updated the category, I was using Firefox on the mac, which does support the WYSIWYG editor. It seems that since the WYSIWYG editor didn’t recognize the tags, it simply hid them from view (they appeared in the html source editor, but once the page was updated, it no longer retained the tag value). This is probably the worst thing I’ve noticed. [...]

  13. Pingback by You can imagine where it goes from here. » Blog Archive » Bud’s Images — 4 years, 1 month ago.

    [...] FYI, I’m experimenting in this post with using the WPGallery plug-in. [...]

  14. Pingback by :: travellingcari.com :: australia, japan…the world » Blog Archive » 2005: Year in Review (Part 1) — 4 years, 1 month ago.

    [...] Well I’ve seen enough of the memes on this, but I wanted to tweak it and make it a travel year in reviews since that’s what 2005 was for me so…I also think it will be a chance to try out the wp-gallery plugin, so let’s see. [...]

  15. Pingback by .: tins blog » Blog Archive » WP Plugins — 4 years, 1 month ago.

    [...] Hier für diejenigen, die sich für den Setup meines Blogs interessieren, hier ein paar Angaben: Wordpress 2.0 Plugins (Reihenfolge wie im Setup): Akismet 1.24 Category Order 1.9.0 o42-clean-umlauts 0.2.0 Postie 0.9.9.1 SecureImage 1.0rc2 Textile 1 1.0 WP-ContactForm (de) 1.4.2 WordPress Database Backup 1.7 WP Gallery 0.33 Events 0.4.7 [...]

  16. Pingback by Viam Pacis » New Wordpress plugins — 3 years, 11 months ago.

    [...] Playing around with Wordpress plugins. Hopefully we’ll start to see some funstuf with the AutoMeta, Event Calendar, FAQ, Noteworthy, Now Reading, and WP Gallery plugins. I installed Gallery a brief while ago, but have only begun loading it up. [...]

  17. Pingback by Musings of a Purple Dragon » Wordpress plugins — 3 years, 11 months ago.

    [...] Other plugins I’ve found useful are the wonderful SpamKarma2 – which started harvesting spam the same day I installed it, Breadcrumb Nav XT ,Crawl Page Generator, Dashbar – which displays a WordPress.com-like navigation bar for logged users: direct acces to Dashboard, Write, Edit, Awaiting Moderation, Profile -very very useful, WP-Email, WP-Print, WP-Stats, WP-Useronline, Smart Archives, WP-ContactForm , Head META Description, Google Sitemaps, WP Gallery, WPG2 and a good few others [...]

  18. Pingback by hyperpup » 今ごろ気づいた便利機能 — 3 years, 10 months ago.

    [...] ãã®ãã­ã°ã§ã¯ãåçãæç¨¿ããã®ã«WP-Galleryã¨ããGalleryã«ã¢ããããåçãç°¡åã«ãã­ã°ã«çµã¿è¾¼ããWordPressã®ãã©ã°å°ã使ã£ã¦ãã¾ãã詳ãã㯔WP-Gallery”ã«æ¸ãã¦ãã¾ãããé·ããããåçã¾ã§ã®URIããªã³ã¯ã¨ãã¦è¨å¥ãããã¨ãªããã¢ã«ãã åã¨åçåãè¨å¥ããã ãã§åçã表示ããã¦ã¨ã¦ã便å©ã§ãã [...]

  19. Pingback by Rhythm Collision wordpress : 面白そうなWordpressのPlugins — 3 years, 5 months ago.

    [...] Wordpressã®é¢ç½ãã¨ããã¯ã髿§è½ãªCMSãã¼ã«ã°ããã§ãªãã夿§ãªãã¼ãããã©ã°ã¤ã³ãå¤ãããã£ã¦ããã¨ããã§ãèªç±ã«ãã©ã°ã¤ã³ãçµã¿åããããã¨ã«ãã£ã¦ãèªåã好ããªããã«Blogãã«ã¹ã¿ãã¤ãºã§ããã¨ããã ã¨æããæè¿ãæ°ã«ãªã£ãWordpressããªã³ã¯ããã¦ã¿ããå人çã«ã¯Mp3 PlayerãWordpressã«å°å¥ã§ãããã©ã°ã¤ã³ã¨Ajaxã«ãã£ã¦ã©ã³ãã ã«ã¤ã¡ã¼ã¸ã表示ããããã¨ãã§ãããã©ã°ã¤ã³ãé¢ç½ãã http://www.1pixelout.net/code/audio-player-wordpress-plugin/ MP3 PlayerãWordpressã«å°å¥ãããã©ã°ã¤ã³ http://www.twistermc.com/blog/2006/04/07/chicklet-creator-wordpress-plugin ã½ã¼ã·ã£ã«ããã¯ã®ãã©ã°ã¤ã³ http://geoffhutchison.net/blog/archives/2005/03/22/wp-gallery-032/ ã®ã£ã©ãªã¼ãã¤ãããã©ã°ã¤ã³ http://www.phoneblogz.com/api/wordpress.php é»è©±ã§ã¡ã¼ã»ã¼ã¸ãWordpressã®Blogã«æ®ããã©ã°ã¤ã³ããã http://www.lynk.de/wordpress/flashfader/ Flash Slide showãå°å¥ãããã©ã°ã¤ã³ http://dadabase.de/weblog/archives/2006/05/23/wordpress-geotrack-plugin 訪åèãã©ããã訪ããã®ãããããGeoãã©ã°ã¤ã³ http://www.giannim.com/blog/index.php?pageid=13#page-blog Wordpressã«AJAXãçµã¿è¾¼ããã©ã°ã¤ã³ http://ganymede.lamost.org/wp/2006/07/19/wordpresspluginajaxrandom_images/ Ajaxã«ãã£ã¦ã©ã³ãã ã«ã¤ã¡ã¼ã¸ã表示ããããã©ã°ã¤ã³ Wordpress Plugins [...]

  20. Trackback by blog.davidfuhr.de — 2 years, 3 months ago.

    Problemtrivialisierung…

    Zuf&Atilde;Â&Acirc;¤lle gibts… Nachdem ich mich gestern noch mit meiner Freundin dar&Atilde;Â&Acirc;&frac14;ber gestritten habe, dass ich oft Thesen aufstelle, die – ihrer Ansicht nach – zu einfach und zu trivial sind, habe ich heute zuf&Ati…


Comments

  1. Brian — 4 years, 11 months ago.

    I just set up Wordpress and I installed your plugin….very easy. However, when I add an image in a post, it links straight to the image. On your site, it links to the gallery page, which I like better. Is there a setting I am missing for this?

  2. Paul Oyler — 4 years, 11 months ago.

    I just installed your plugin last night, but somewhere I must be missing the secret code to make it work.

    All I’m getting is a text link displayed as [img] that goes to the photo. But I was under the impression that the actual photo is supposed to be displayed there; is that correct?

    If so, what am I missing to make it actually do so?

    I do have the WPGallery quick tags in the write post panel.

    Here is the post that I have attempted to use this in:
    http://www.steelerdirtfreak.com/blog/2005/03/24/mercers-ross-park-mall-car-show/

    Thanks much for any help and/or advice.

  3. Geoff — 4 years, 11 months ago.

    Both questions resolve around the configuration.

    If you’re using the WP Plugin Manager, there’s a “Change Settings” button to alter the settings for WP-Gallery.

    For linking to the album vs. the image itself, the setting is “Link directly to the image or to the album of the image?” I’d assume that yours is currently set to “image,” not “album.”

    For the missing thumbnail, it looks like you’ve set the wrong album base URL… I think you want:
    http://steelerdirtfreak.com/gallery/albums and you’re currently missing the “gallery” part of that URL.

    Cheers,
    -Geoff

  4. Brian — 4 years, 11 months ago.

    Thanks. I hadn’t installed it via the Plugin Manager. I uninstalled and reinstalled using the WPPM and saw the setting. Thanks!

  5. Paul Oyler — 4 years, 11 months ago.

    Excellent! Thanks! I can truly be such a dunce at times (most of the time…)

  6. csh — 4 years, 11 months ago.

    Geoff, I’ve posted this before but the server keeps timing out before completion. Hopefully you are not getting this message 3 times.

    Anyway, thanks for the plugin. I’ve been using it since the earlier versions and it’s really handy. I just installed version .32 and notice that the wpgallery button on the write page does not work. (It does not enter the wpgallery tags). If I enter the tags manually everything is fine.

    I have tried to uninstall / reinstall wp-gallery with the same result. I have also tried using both Firefox and Explorer browsers andn get the same result. Other plug-in that add tabs work fine (wp-listmanager) so I’m not sure what is up. Any ideas?

    Thanks, CSH

  7. Paul Tomblin — 4 years, 11 months ago.

    I’ve found a bug. The gallery and thumbnail show up correctly in my blog entries, but in the RSS feed, it shows up as links to your site! So on people who’ve syndicated my page on Live Journal, for instance, they get broken links. Looking at the RDF file, I see URLS that look like “http://geoffhutchison.net/albums/43977/9771.jpg” instead of “http://xcski.com/albums/43977/9771.jpg” like it should be.

  8. Geoff — 4 years, 11 months ago.

    CSH,

    Sorry about the timeouts, they’re part of the spam-blocking options. I’m using Safari and Firefox (1.0x) on Macintosh and it works just fine. What other plugins do you have installed? Are there any which add buttons?

  9. Geoff — 4 years, 11 months ago.

    Paul,

    That’s a really strange bug. I’ll see if I can figure out what’s going on, but it almost sounds like a WordPress bug — I’m trying to track down a separate one which isn’t adding the CSS class to image tags posted in comments.

    There’s a workaround for you right now. Edit the plugin manually — this will change the defaults in the plugin. You want to look for the define('WPG<em>GALLERY</em>BASE' ... and define('WPG<em>ALBUM</em>BASE'... lines. Edit those to point to your site and it should fix things for now.

  10. Paul Tomblin — 4 years, 11 months ago.

    Yes, that fixed it. Weird.

  11. csh — 4 years, 11 months ago.

    Geoff,

    I am using wp-listmanager (Navid’s) which also adds a button and it works fine. For Gallery the button appears on the write page and if I view the source I can see the Javascript code for both the wp-gallery button and the embed list button (for list manager). I’ve tried clearing cache on my browsers as well and it still does not function. I had version .2 installed and simply deleted the old plugin file before installing version .32, then since .32 had the button issue I uninstalled and reinstalled it using plugin manager.

    Is there another place the plugin code be caching and be confused between the old and new versions. Did anything change in the javascript between .2 and .32? Unfortunately I’ve already removed the old file so I can’t compare.

  12. Brian — 4 years, 11 months ago.

    Not sure if I am doing something wrong of if this is a bug. However, I can’t get two thumbnails to appear on the same page…whether they are in the same post or different posts. Upon futher review, it would seem that the second instance of a thumbnail references your site, not mine. Look at the code below:


    &lt;a href="http://www.kathiandbrian.com/gallery/6-12Months/IMG<em>0160" rel="nofollow"&gt;&lt;img src="http://www.kathiandbrian.com/Image</em>Album/6-12Months/IMG<em>0160.thumb.jpg" /&gt;&lt;/a&gt;
    &lt;a href="http://geoffhutchison.net/albums/2000-12/Day02</em>005<em>MGM</em>Waiting.jpg" rel="nofollow"&gt;&lt;img src="http://geoffhutchison.net/albums/2000-12/Day02<em>005</em>MGM_Waiting.thumb.jpg" /&gt;&lt;/a&gt;

  13. Brian — 4 years, 11 months ago.

    Hmm…more problems. Not sure, but I used the WP Plugin manager to add the plugin. it seems that there is a directory in the root of the WP-Content folder called wp-gallery. In it, there is a file called wp-gallery_prefs.php. I removed the plugin via the plugin manager, but it left this dirrectory behind. I can’t delete it, however, because I am not the owner of it! It lists “nobody” as the owner. I tried a chown, but it won’t let me. I’ve asked my ISP to correct it. Any ideas why that would have happened? I was removing it and reinstalling it from scratch to check and see if the problem I posted earlier was my fault or not.

  14. Brian — 4 years, 11 months ago.

    After some testing with my ISP, the owership problem seems to be caused by the WP Plugin Manager. I am submitting a bug report…hopefully I didn’t do anything wrong either so I don’t waste everyone’s time on this.

    However, it still didn’t solve the original problem

  15. hterry — 4 years, 11 months ago.

    Are there better instructions to this because I have no clue how I am supposed to get these images to show up. I’ve set up the gallery and placed my images in there and when I activate the plugin and paste the code in the link shows up as a broken image when I want text to the link and when i press the link it tells me the album//.jpg was not found. And there also png’s not jpg’s.

  16. Brian — 4 years, 11 months ago.

    hterry,

    Are you using the WP Plugin Manager? You can set the paths very easily if you use it.

  17. Brian — 4 years, 11 months ago.

    Geoff,

    I noticed that on the homepage or a specific post page, the thumbnail displays fine. However, on a category page, it actually displays the path that is entered between the tags, not the thumbnail itself.

  18. Geoff — 4 years, 11 months ago.

    Several of the bugs were caused by the switch to setting options via WP Plugin Manager. The preferences file was read in once per post (or RSS feed, evidently) but of course it needs to be read in for every picture. This is now fixed in 0.33, which is available by manual download or through WP Plugin Manager.

    I’m not sure why there are issues with JavaScript. I haven’t changed that part of the plugin at all, and as I said — it does work for me in FireFox or Safari. I’ll investigate further.

    hterry — You want to insert tags like <WPGallery>(album)/(photo)(.png)</WPGallery> — enter an album name for (album) and a photo name for (photo) — and see previous posts in this category for more details. But it would also help if you could post a link to your webpage — it’s usually obvious to me from the page itself what’s going on.

    Brian — I know people reported this bug (i.e., category pages were weird) with the beta releases of WordPress 1.5 and it went away. To me, it looks like categories are generally OK (i.e., the “Cara” category works fine) but that one post is funky. Try 0.33 under WP Plugin Manager.

  19. Brian — 4 years, 11 months ago.

    :) new version works like a champ….

    Thanks!!

  20. hterry — 4 years, 11 months ago.

    Yep I’m using wp plugin manager but still havent figured it out and I’m using 1.5 wordpress too.

  21. Brian — 4 years, 11 months ago.

    Geoff,

    Is it possible to get the plugin to wrap an image with a DIV? I would love to specify in the plugin somehow or something like that. It would then wrap the following around the image so text flowed around it: or something like that…you get the idea.

    Here’s the deal. Basically, I want my wife, who is not a coder at all, to be able to insert gallery images and specify their alignment, etc. She is used to BBCode for messageboards, so she is OK using some simple codes. I have no idea how it should actually look, just a suggestion, though.

  22. Geoff — 4 years, 11 months ago.

    hterry,

    I’m afraid I don’t have much to say — I don’t know what your exact problem is from your first post, and you haven’t posted a link to your site. What exactly is confusing you in terms of using the plug? What did you enter in your post to get that strange result? What did you put between the WPGallery tags?

    Brian,

    You can always enter markup in a post. Right now the plugin itself won’t put any <div> tags in, but you can enter them manually around the <WPGallery> </WPGallery> tags yourself (or any other markup).

  23. Brian — 4 years, 11 months ago.

    Thank’s Geoff. I know I can add the tags around it, I just don’t want to confuse my wife too much. Take a look at this thread I started over on the WP Support boards. Can I do this with your plugin?

    http://wordpress.org/support/topic.php?id=29359

  24. Steve — 4 years, 11 months ago.

    Geoff, this looks cool, and may the thing I need to convert to Wordpress. Regarding people not updating the config and hitting your site: set the default
    site to “www.example.com”. This should a) make the error a little more obvious to users, and b) keep them out of your logs.

  25. Geoff — 4 years, 11 months ago.

    Hi Geoff, Great plug-in! Any suggestions for how to wrap text around inserted images? I would like to use something like the following style:

    content .storycontent img.right {

    margin: -3em 0 0 1em;
    float: right;
    clear: left;
    }

    …but I’m not entirely sure how to call the class or modify the thumbnail class you’ve setup. I’m a rookie with code – any suggestions?

  26. Gour — 4 years, 11 months ago.

    Hi!

    If youâre using the WP Plugin Manager, thereâs a âChange Settingsâ button to alter the settings for WP-Gallery.

    What about us who cannot use WPPM because of the security issue on the server which requires to enable ‘allowurlfopen’ flag?

    For linking to the album vs. the image itself, the setting is âLink directly to the image or to the album of the image?â Iâd assume that yours is currently set to âimage,â not âalbum.â

    How to get link to the gallery album, instead of direct link to the image?

    I tried to change $direct<em>link='false' in function wpgallerylink, but without success, i.e. the link to the full-size image is always to the image itself, not to the gallery (see: http://atmarama.org/gtk2hs/archives/2005/02/12/wp-gallery-test/).

    That’s why I have to include extension for the pic (jpg), otherwise the plugin does not work (although it used to work in 0.2).

    It looks like it is now supposed to have ‘albums’ folder beneath the ‘gallery’ folder?

    However, my setup is different and ‘gallery’ & ‘albums’ are on the same level.

    How to insert full-sized images into blog post?

    Any ETA for G2 support?

    Sincerely,
    Gour

  27. dave — 4 years, 11 months ago.

    Hi, I’m trying to use the plugin and I’ve run into a problem right off the bat. The plugin is assuming that the photos in my gallery have the .jpg extension when in fact they do not. As a result, none of the links work since they point at ‘http://www.rodrig.com/spain-portugal2005/aad.’ or similar. If I manually remove the trailing dot, and refresh it comes up fine. Is there a workaround? I’m not sure why my photos are in this state, I never noticed actually, but I’d rather not go through 1000+ photos to add file extensions.

    thanks in advance
    dave

  28. Geoff — 4 years, 11 months ago.

    Gour,

    I have no idea why you’re seeing these effects if you don’t have WPPM or a defaults file in wp-content/wp-gallery/wp-galleryprefs.php. I’m still trying to figure out the cleanest way to read in the defaults from WPPM (see below about the extension default). You could always create this file independently of WPPM – I can e-mail you an example.
    - The default is to have “gallery” and “albums” URLs on the same level. It’s how my website is set up.
    - I can see why the “jpg” extension default doesn’t get set for you, that’s a clear bug. For a workaround, you should be able to set $photo
    extension=” in the plugin itself.
    - The default is to have a link to the album (i.e., directlink=’false’) — did you edit that?
    - The default is to have thumbnails — for large images, set $thumb
    size=’false’ in the function wpgallery_link section.

    As for G2 support, it’s not coming soon. For one, G2 is still very much in beta. There is an effort for cleaner WP and G2 integration and it will include the plugin, but it will probably require some changes to G2 and WP themselves still. We’ll see.

  29. Geoff — 4 years, 11 months ago.

    Geoff,

    Nice name… :-) the default CSS class for images is “galleryimage,” so you probably want to add a “.gallerylink” to that specification and format away.

  30. Geoff — 4 years, 11 months ago.

    Dave,

    No, I’ve checked your gallery — your photos really are .jpg. What exactly did you include between the <WPGallery> tags? Did you specify something like <WPGallery>spain-portugal2005/aad<WPGallery>

  31. Gour — 4 years, 11 months ago.

    Geoff,

    I have no idea why youâre seeing these effects if you donât have WPPM or a defaults file in wp-content/wp-gallery/wp-gallery_prefs.php. Iâm still trying to figure out the cleanest way to read in the defaults from WPPM (see below about the extension default). You could always create this file independently of WPPM â I can e-mail you an example.

    Yes, please.

    – The default is to have âgalleryâ and âalbumsâ URLs on the same level. Itâs how my website is set up.

    Hmmm…strange.

    – I can see why the âjpgâ extension default doesnât get set for you, thatâs a clear bug. For a workaround, you should be able to set $photo_extension=’â in the plugin itself.

    I tried that, i.e. set $photo_extension=’jpg’ and omitted ‘jpg’ in the post, itself, but then I got nothing. So, I’m back including ‘jpg’ in the post itself.

    – The default is to have a link to the album (i.e., direct_link=âfalseâ) â did you edit that?

    Yes, I tried with both ‘true’ & ‘false’, but it’s the same, i.e. I cannot get link to the gallery :-(

    otoh, the convention sound strange to me, i.e. I would expect that directlink=’true’ would mean direct link to the image – in ‘albums’ folder, while nondirect link means link to the image in a gallery?

    In any case, no link to the gallery :-(

    – The default is to have thumbnails â for large images, set $thumb_size=âfalseâ in the function wpgallery_link section.

    Now I have $thumb_size=âfalseâ, but e.g. ‘wp-gallery test’ post on my test site shows both images as thumbnails and links are to ‘albums’ folder (direct), not to the gallery?

    As for G2 support, itâs not coming soon. For one, G2 is still very much in beta. There is an effort for cleaner WP and G2 integration and it will include the plugin, but it will probably require some changes to G2 and WP themselves still. Weâll see

    So it means there will be some kind of support when G2 becomes ready :-)

    Sincerely,
    Gour

  32. Steve — 4 years, 11 months ago.

    The problem with setting the default photoextension in the plugin itself (in the definition of wpgallerylink(), I presume) is that the call from gallery_link() overrides it and sets it to ”: default argument values only apply if there is no argument, not when the argument is explicitly blank. Since I don’t have any non-jpgs in my gallery, I’ve just removed the entire last argument from the call.

  33. akurashy — 4 years, 11 months ago.

    when its going to have mod_rewrite support =/?

  34. Geoff — 4 years, 11 months ago.

    Akurashy,

    I have no idea what you mean — I use modrewrite on my server and it works just fine with the WP-Gallery plugin. (In fact, the plugin assumes you have modrewrite working.)

  35. akurashy — 4 years, 11 months ago.

    well thats really weird, in the plugin comment it says that it doesn’t support mod_rewrite links.
    and i can’t make it work :(

  36. Mike Compton — 4 years, 10 months ago.

    I am having the same issue as dave. I just installed the plugin and I am getting a . after the file name thus the file can’t be found unless I type the extention in. Then it goes diretly to the jpeg not the album.

  37. dave — 4 years, 10 months ago.

    Geoff,

    You are quite correct, my photos are in fact jpgs. I was looking at the URL and not the image location. My mistake.

    I had some problems with my URLs and paths. They were masked by the fact that, for the most part, Gallery’s been running fine. Once, I corrected these, more has fallen into place.

    One problem I couldn’t get over, though, was the fact that no matter what I did, the plugin would link to the actual image and not the album. I hadn’t changed the default setting of $direct_link=’false’.

    I started looking at the plugin itself and noticed this:

    if($direct_link) // direct link to image
    $output = ‘

  38. dave — 4 years, 10 months ago.

    Sorry, it looks like the comment submission form doesn’t like code in the comment. Here’s the rest, minus the part that was problematic:

    I’m not much of a programmer (and definitely not criticizing here), but I think this means:
    “If the direct_link variable exists then link to image, else link to album”

    But whether it is set to true or false, it stills exists, right?

    Anyway, I changed it to: ($direct_link == ‘true’), and now it’s behaving as I would expect it to!

    Check it out at http://www.rodrig.com. Please let me know if I’m totally misunderstanding this.

    Dave

  39. Jan Philipp Giel — 4 years, 10 months ago.

    To get valid XHTML the regular expression has to be modified because the img tag needs the alt attribute. I changed it to (see line 72 of wp-gallery.php)
    $output = preg<em>replace("'([^\/]*)/([^.'$preg</em>flags", "wpgallery<em>link('', '', '', '', 'Photo', '')", $text);
    You could also insert the filename as alternative description like this
    $output = preg</em>replace("'([^\/]*)/([^.'$preg<em>flags", "wpgallery</em>link('', '', '', '', '', '')", $text);

  40. Jan Philipp Giel — 4 years, 10 months ago.

    Well, I found my code from the last comment was not right.
    I think that the function gallery<em>link() is wrong.
    the pregreplace function replaces the WPGallery tags with the wpgallerylink and puts the file extension as 6th parameter. But the 6th parameter of the wpgallery function is $link<em>title.
    So you have to insert another parameter like this

    $output = preg</em>replace("'([^\/]*)/([^.'$preg<em>flags", "wpgallery</em>link('', '', '', '', '', '', '')", $text);

    I hope this helps.

  41. Ben — 4 years, 10 months ago.

    I am having the problem where thumnails are not displayed in category links, just path names. They work fine in normal view.

    I’m using 0.33, but I can’t use wp-plugin-mgr, is there a way to fix this manually in the config file?

    Any suggestions?

    Thanks,
    Ben

  42. Ted — 4 years, 10 months ago.

    Hi all…

    I’m having a similar yet different problem with the 0.33 plugin ver… have installed it, de-installed it, and re-installed several times now (both through WPPM and manually) and still can’t get it to actually display the images… all it shows is the value between the tags. Viewing the source on the page, I see that the tags are there — seems like the plugin filter is simply being ignored? The plugins page from the admin console does say that the plugin is activated, so I’m at a loss to see why the filter isn’t working…

    (Incidentally, I had this working with WP v1.2.x and .20 of wp-gallery, upgraded to WP 1.5 and wp-g .33 and kablooey… :( )

    Sample post is at http://www.tedcoady.com/blog/index.php/archives/2005/04/24/test-post-for-wpgallery-plugin/

    Any help in getting this working again greatly appreciated… :)

    –T

  43. Ted — 4 years, 10 months ago.

    Hmm… n/m, I tinkered a bit more and got it working. Not sure what I changed… :)

  44. RICHARD — 4 years, 10 months ago.

    i was having probs also with the thumb image
    i tried every thing listed here
    then while i was lookin at the code i spotted
    ” $imgsize = ($thumbsize.) ? “.thumb” : “.”; // full-size doesn’t have an in$”
    and removed
    ($thumb_size) the 2nd dot
    and now i got thumbs :D

    http://www.stuffabout.me.uk/blog just a testing site atm

  45. RICHARD — 4 years, 10 months ago.

    same prob again but when i clicked the thumb the tailing . killed it
    if($direct_link) // direct link to image
    $output = ‘

  46. Mike Baptiste — 4 years, 10 months ago.

    I’ve installed a number of one-click plugins with no issue so I know one click is working. When I installed your plugin, I got no errors, but the tags were ignored in my posts. Just the album/picture path showed up as text.

    I also noted that WP Gallery was not listed in my Plugins tab in WordPress. WordPress had no idea it was even there. I was able to configure it using One-Click’s plug in manager just fine. But it wouldnt’ work. I copied wp-gallery.php into my normal plugins directory, activated it in my WordPress plugins tab and it works fine.

    So it seems like the one click install isn’t properly activating the plugin with WordPress. I’ve seen this before with plugins that want to live in their own wp-content subdirectory. I’ve had to manually copy over the plug script to plugins. Not sure why. The perms are fine – I got no permission denied errors. Not sure

    One other thing – you really should have your tags default to lower case instead of If you turn case sensitivity on, you’ll have people encounter problems with their tags. Most WYSIWYG editor plugins for posts will automatically lowercase all tags which is the web standard. That way if someone needs to turn on case sensitivity, they won’t have problems with their tags being auto converted to lower case

    Great plugin though! I may hack in a randomization option to it – ie if you specify an album but no picture, it’ll return a random one from that album.

  47. ozgreg — 4 years, 10 months ago.

    Brian,

    Incorporated your code for Gallery 1 plug-in into the WP/G2 (Gallery2) embedding project currently in development.. Functionality is already working in the embedded mode on the test site -> http://devtest.ozgreg.com/

    Forums for the WP/G2 can be found @ -> http://wpg2.ozgreg.com/index.php

    Thanks for all your hard work to make this WP plug-in for Gallery 1. You be glad to know that Gallery2 has internal API so performing this function was much much simplified..

    Happy to give you a copy of the G2 API calls if you so desire should you want to modify your plug-in to suit Gallery2.

  48. Jason — 4 years, 10 months ago.

    I’m trying to use this plugin. I was unable to find WP Plugin Mgr (it’s been removed from the site it was on). So I don’t have that config file, and I’m at a loss as to how to configure this to link to the album as opposed to just the image. I can get the thumbnail to show up if i put in the code as album/image.extension but it never shows the image if i just use album/image

    Looking at the HTML generated, when i leave the extension off it neglects to put the jpg at the end, and for some reason adds a trailing . to the link. Any ideas?

    http://www.husseh.com/wp/ – this is the page I’m trying to get it to work on

  49. roman — 4 years, 10 months ago.

    hi!
    first let me tell you that this plugin is really fantastic.
    i must admit that i don’t have a single problem with this nice tool…
    just a question: is there a way i can change the size of the thumbnails? atm they are exactly the same size as in my gallery installation but i want them to be bigger in my postings.
    as i understand it has something to do with the image tag. do i need to change something in the css or in the admin area of the plugin manager? if i wanted them to be 320 times 240 – where would i have to change this setting?
    cheers
    roman/berlin/germany

  50. Rob — 4 years, 8 months ago.

    So WP Plugin Manager is no longer available. Now what? How can I make use of this fine plugin?

  51. Daniel Drucker — 4 years, 7 months ago.

    WP Plugin Manager is definitely not required. All you need to do is edit the two “define” lines in the file to point to your gallery install.

  52. Brad — 4 years, 7 months ago.

    I have a gallery where the thumbnails within each album are smaller than the album level highlighted pictures. Is there a way of using this plugin to grab the album level (larger) picture? I’ve tried using albumname/picturename.highlight but no go. Is this at all possible?

    Thanks in advance.

  53. Brad — 4 years, 7 months ago.

    Ahh, found it 5 minutes after posting. figures

    In wp-gallery.php:

    Replaced thumb:
    $imgsize = ($thumbsize) ? “.thumb.” : “.”; // full-size doesn’t have an initial period.

    With highlight:
    $imgsize = ($thumbsize) ? “.highlight.” : “.”; // full-size doesn’t have an initial period.

    Thanks.

  54. Brad — 4 years, 7 months ago.

    It looks like I’m unable to leave well enough alone. ;-)

    Because I’d like to display the highlight rather than the thumbnail, I’d need to edit code every time the highlight image changes. As this won’t do, I came up with this ugly little hack based on smartbrother.org’s gallery_rss.php plugin. This plugin requires Magpie RSS. I’m also using the phpcode plugin to paste php directly into a WordPress page.

    I realise this approach is quite ugly. Ideally I’d like to simply put album/@.highlight or some other means which would grab the highlight image.

    begin php tags

    function strrrchr($haystack,$needle)
    {
    // Returns everything before $needle.
    return substr($haystack,0,strpos($haystack,$needle));

    }

    $magpieinstalldir = “/wordpress-install-directory/wp-content/plugins/magpierss”;
    $galleryrssurl = “http://www.yoururl.com/your-gallery-install/rss.php”;
    $galleryrsscachedir = “/wordpress-install-directory/wp-content/plugins/cachegallery_rss”;

    //cache timeout, in seconds.
    $cache_timeout = 3600;

    requireonce($magpieinstalldir . ‘/rssfetch.inc’);

    define(’MAGPIECACHEDIR’, $galleryrsscachedir);
    define(’MAGPIE
    CACHEAGE’, $cachetimeout);

    $rss = fetchrss($galleryrss_url);
    $image = $rss->image;

    $numItems = 5;
    $c = 1;
    foreach ($rss->items as $item ) {
    $c++;
    $href = $item['link'];
    $photo = $item['photo'];
    $thumb = $photo['imgsrc'];

    if($c > $numItems) break;

    }

    //extract the name of the highlight’s filename from the URL provided by Magpie RSS.
    $highlight = substr(strrchr($thumb, ‘/’),1);
    $highlight = strrrchr($highlight, ‘.’);

    echo wpgallerylink(”title”, $highlight, $linkclass=’gallery’ ,$imageclass=’galleryimage’, $imgalt=’Gallery Highlight’, $linktitle=’Gallery Highlight’)

    end php tags

    My next quest is to find a way of retrieving the image’s text to display underneath the image.

    -Brad

  55. Scott — 4 years, 7 months ago.

    I’m having the exact same problem that Gour describes. Unless I explicitly place a .jpg at the end of the path in the wpgallery tag, I get a URL link that ends in a ‘.’, and points directly into my albums. If I add the .jpg to the end, I get a thumb in my post, but it links to the fullsize image instead of the gallery even though direct_link is set to false.

    Neat plugin, regardless. I wish I know PHP better so I could submit a fix instead of just complain about it :-(

    By the way, how does one go about embedding the Gallery “frame” inside the post area?

    Thanks,
    Scott

  56. Glenn Sieb — 4 years, 6 months ago.

    Playing with WP, trying to get your WP Gallery plugin to work. I’ve downloaded 0.33 and installed it (unzipping into my wp-content/plugins directory). When I go to the WP Manage Plugins page, there’s just “activate” or “deactivate” no “buttons” for configuration show up there, or under “Options”.

    I’ve manually changed the URLs in the wp-gallery_prefs.php file:

    “gallerybase” => array(”caption”=>”The base Gallery installation URL for album
    links:”,
    “default”=>”http://www.wingfoot.org/gallery/”,
    “overwrite”=>false
    ),
    “album
    base” => array(”caption”=>”The album URL for tags and direct image
    links:”,
    “default”=>”http://www.wingfoot.org/albums/”,
    “overwrite”=>false

    When I go to make a post, I do see the WP-Gallery button, I hit it and put in (for instance):

    Hayden2005/090105_1043

    Which, should then make a post linking to: http://www.wingfoot.org/gallery/Hayden2005/090105_1043 But the post ends up blank. If I manually go to:

    http://www.wingfoot.org/albums/Hayden2005/0901051043.jpg
    or
    http://www.wingfoot.org/gallery/Hayden2005/09
    01051043

    That works fine. Am I missing something? :-/

  57. Glenn Sieb — 4 years, 6 months ago.

    Got it. The wp-gallery.php file needed modification as well as the wp-gallery_prefs.php file. :-/

  58. Geoff — 4 years, 5 months ago.

    As many people have figured out, I haven’t had much free time to concentrate on WP-Gallery. Also, with the recent release of Gallery 2.0 and tighter WP-Gallery integration with that release (http://wpg2.ozgreg.com/) there hasn’t been much motivation either.

    I suspect in a few weeks, I’ll issue one (last) version of WP-Gallery with an integrated options panel and fixes for these problems.

  59. Geoff — 4 years, 5 months ago.

    Hi All,
    I am finding exactly the same issue to Scott (and Gour) of requiring the ‘.jpg’ extension and then being directed to the full size image.

    I am not interested in moving to G2 at this stage, so would love to get this working in the interem.

    Thanks heaps for this plugin Geoff, just what the doctor ordered.

    Cheers,
    Geoff

  60. Nat — 4 years, 4 months ago.

    looking forward to your realease, it’s really needed :)

  61. kd — 4 years, 2 months ago.

    Hi Geoff, I’m having a problem with your plugin. I get a period for every link in the PHP call.

    http://netnerd.ca/albums/upload/dubya.

    Any ideas?

    Can you also tell me what the best syntax would be so I could call a random image from a random album?

    Many thanks!

  62. tin — 4 years, 1 month ago.

    Hi

    Is there a blogger who could make work WP-Gallery with WP 2.0 correctly? Over here this seems not to work…

  63. brian — 3 years, 7 months ago.

    You can copy mine and see if it works:
    http://www.maltzan.org/wp-content/plugins/wp-gallery.txt
    You must still edit these two values: WPGGALLERYBASE, WPGALBUMBASE

  64. Giancarlo Rinna — 3 years, 7 months ago.

    “Does not yet support per-post or per-link configuration or G2-style URLs. Maybe when I have a bit more time⦔

    I would love you for a million years if time grew for you to have more and you actually did this… im particualry interested in per-post configuration :) that would be aaamaaaazingly useful and I feel lots of people would really really dig it…

    Anyway.. thanks for cool plug-in

    :) :) :)

  65. webmaster kaynak sitesi — 3 years, 5 months ago.

    I can tried install,
    thanks

  66. Kazaa — 3 years, 5 months ago.

    Hi works great.
    you don’t develop this plugin anymore?
    If so to bad :-(

  67. andre — 3 years, 3 months ago.

    very nice

  68. Suhdesoppa — 3 years ago.

    Super plugin but what about the updates?

  69. Adam — 2 years, 4 months ago.

    great plug-in. just what i needed!

  70. houserocker — 2 years, 2 months ago.

    I have some problems using wp 2.3.1!! is there a newer version available soon?

  71. adlerweb — 1 year, 11 months ago.

    Has anyone already tested with WP 2.5?

Subscribe to comments on this post via RSS or TrackBack

Leave a response

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