Wordpress Picasa XML Gallery Plugin (updated version with Lightbox2 support)

A while back I started using v0.95 of the WordPress Picasa Viewer plugin by Dieter Leibold for this blog. However, the plugin had a couple of issues which I fixed. I tried contacting Dieter in order to publish the updated version on his site. Unfortunately, I did not receive any reply so far.

Therefore, I publish an updated version of the Wordpress Picasa XML Gallery Plugin with the following new features and bugfixes:

Download (..and put into /wp-content/plugins/)

Installation

Please refer to the instructions taken from the original plugin site.

  1. Copy WP-Picasa-Viewer.php (and view.php) to /wp-content/plugins
  2. Activate the plugin using the admin interface
  3. Create /wp-content/galleries/ and make sure it is readable by your web server (chmod 755, public read and execute permission)
  4. Export a Picasa gallery using the XML template — Select the images you want and use the Folder->Export as Web Page menu item, but you can also right-click on a folder name in the folder view and choose “Make a Web Page”.
  5. Upload the entire exported gallery directory to /wp-content/galleries/GalleryName/
  6. Create a new post, or modify an existing one and add
      { gallery [GalleryName] }

    somewhere in it. (GalleryName is the name of the directory that you uploaded in the previous step)

Demo

See the latest version of script in action together with the Lightbox2 plugin on any of my photo posts. Here is a sample gallery of my trip to Ayers Rock, Australia:

Auf dem Weg...Kata Tjuta vom Flieger ausin Ayers Rock...angekommen im ResortLookout am ResortTorben&AlexDie WuesteFliegenplageein neues Danger-Schilddas Resort CenterThorny Devil (ausgestopft)unglaublich roter SandThe Olgas (Kata Tjuta)The OlgasTorben, Alex, auf der Bankzwei der Domes von den OlgasmittendrinUluru von weitemAyers Rock leuchtet im SonnenuntergangTorben&MattSonnenaufgang am Ulurudas Leuchten hat sich die ganze Zeit ueber geaendertWe don't climb the Rock!langsam geht die Sonne ueberall aufHoehlen am Fuss des Uluruich vor dem Rock2007_06_10_09_49_38.jpgMutitjulu WaterholeDesert OakRegen ueber Sydney auf dem RueckflugSydney CBDHarbour Bridge vom Flieger


30 Responses to “Wordpress Picasa XML Gallery Plugin (updated version with Lightbox2 support)”

  • Jan Says:

    Hallo ich versuche gerade das Plugin zu benutzen doch wenn ich es in den Ordner /plugins kopiere so wird es nicht im Pluginsmenü angezeigt also ich kann es nicht aktivieren. (Wordpress 2.2.1 und Theme: glued_ideas_subtle) Ichabe es bereits merfach umbenannt (auch das phps in php umgewandelt)

  • Torben Says:

    Ja, das lag am HTML Markup der .phps-Datei. Sollte jetzt behoben sein…

    Bitte die Datei noch einmal downloaden. Es wird jetzt kein Umbenennen mehr noetig. Lediglich die heruntergeladene .php Datei in das /wp-content/plugins/ Verzeichnis hochladen.

    Viele Gruesse,
    Torben

  • Jan Says:

    Jetzt funktioniert es. Danke für das verdammt praktische Plugin.

  • Michael Says:

    Moin Moin
    ich habe mir Ihr Plugin installiert und dabei festgestellt das es mit der neuen Wordpress Version nicht geht.
    Auf der Test Seite ist WP 2.2.3 Installiert
    http://www.test.fernfahrerblog.de
    auf der http://www.fernfahrerblog.de ist Version 2.2.1 Installiert und dort geht es.
    Siehe eintrag http://www.fernfahrerblog.de/?p=57
    Woran kann das liegen?
    Mit Freundlichen Gruss Michael

  • Kim Says:

    I am having an issue with this plugin that I am wondering if I could get some assistance for.

    I love this plug-in and want to continue using it, but it does not allow me to have a static homepage. I have set the “Use static page as home page” option in the Option>Reading menu. It works fine until the Picasa XML plugin is activated. After that, it defaults back to using the blog page as the homepage. I have looked at the code, but nothing is jumping out.

    Any thoughts or ideas on how to fix this??

  • Christoph Says:

    Thanks for great plugin. Using it on http://www.pamnews.com

  • Torben Says:

    @Michael: Ich kann den Fehler auf den von dir geposteten Links leider nicht nachvollziehen. Bei mir selbst laeuft WP 2.2.3 problemlos produktiv mit dem Plugin…

    @Kim: Haven’t had the time to check it myself. But actually I have no idea what could cause the issue. Are you sure that it is definitely related to this plugin?

    @Christoph: Thanks for using it… ;)

  • Kim Says:

    Thanks Torben! Yes, I am fairly certain it is tied to this plugin. I haven’t figured it out yet. Thanks for your response.

  • Martin Says:

    Hallo Torben,

    super Plugin, funktioniert einwandfrei! Nur ein Problem habe ich: Wenn ich bei WP 2.3.3 unter Optionen/Lesen die Startseite als statische Seite festlege, und die Blogseite als eine andere Seite, funktioniert das nicht mehr, wenn ich dein Plugin aktiviere (dann ist die Blog-Seite wieder die Startseite)… Hast Du eine Idee?

  • Markus Says:

    Hallo Thorben,

    das Plugin ist großartig, aber ich habe plötzlich Probleme damit :-(
    Wenn ich ein Foto im Blog hinzufügen möchte und es über das Plugin auswähle, reagiert mein Firefox so, als wollte ich es öffnen bzw. downloaden.
    Was kann ich da machen ??

    LG von Teneriffa,

    Markus

  • michelle Says:

    Any idea where a “Gallery “*****” is currently not (yet) available…” message might come from?

    (where ***** = my gallery)

  • Matthias Says:

    Hallo thorben,

    habe WP 2.5 installiert und bekomme auch die Meldung “Gallery “*****” is currently not (yet) available…”

    Hast du eine Idee ???

  • Michael Says:

    Hallo Thorben,
    auch ich hatte bei der Benutzung deines Plugins das Problem, dass die statische Startseiten bei Wordpress nicht mehr funktionierten. Also ich mir dein Quelltext angesehen hatte, hatte ich die Vermutung, dass vielleicht eine deiner Variablen mit den Variablen von Wordpress in Konflikt gerät und es daher zu den Problemen kommt. Da ich keine Lust hatte den Code jetzt im Detail zu untersuchen, habe ich einfach alle Variablen mit dem Präfix picasa ersetzt. Jetzt funktioniert das Plugin einwandfrei. Schau dir vielleicht noch einmal deinen Quelltext an, möglicherweise ist eine globale Variable unglücklich gewählt.

    P.S. Bei mir funktioniert dein Plugin mit WP 2.5 einwandfrei. Bei meinem Provider ist aber PHP 5 installiert. WP 2.5 braucht mindestens die Version PHP 4.3.

  • michelle Says:

    ah wonderful! I had trouble with default permissions. I uploaded everything, but when I do it doesn’t even had “read” permission, so after figuring that out and setting everything…works like a charm.

    Thank you!

  • Ronin684 » Blog Archive » Testing out a Picasa Wordpress Plugin Says:

    [...] If this has worked and you like what you see check out the plugin here. [...]

  • Stefan Says:

    Hallo,

    das ist SUPER.

    Gruß
    Stefan

  • Tobias Says:

    Hallo Torben,
    das ist ein wirklich unglaublich sinnvolles Script. Ich habe sehr lange danach gesucht. Ich bin SEO, und werde mal einige Links auf deine Seite mit den entsprechenden Keywords verlinken, damit noch mehr davon erfahren.

    Allerdings habe ich ein kleines Problem mit der lightbox und hoffe,dass du mir dabei helfen kannst.

    Ich habe die wp-lightbox2 installiert aber ich bekomme kein “Popup” sondern nur eine neue Seite mit dem angeklickten Bild. In der lightbox-Beschreibung steht, dass man rel=”lightbox” einfügen muss. Wo macht man dies?
    So … { gallery [Malediven] rel=”lightbox” } …?

  • Patrick Says:

    Hallo Thorben,

    ich habe das gleiche Problem wie Tobias, sprich ich bekomme die Lightbox nicht zum laufen (stattdessen lädt er das Bild im neuen Fenster). Wie hast Du das gemacht?
    Besten Dank!!

  • Tobias Says:

    Hallo Patrik,

    bei mir ging es letztenlich mit diesem include:
    { gallery [Name_des_Verzeichnis]}
    Schau dir auch nochmal die Einstellungen des Tools an. Bei mir geht es jetzt jedenfalls seht gut.

    Tobias

  • Patrick Says:

    Hallo Tobias,

    danke für Deine Antwort! Leider bekomme ich das immer noch nicht hin =(. Bei mir liegt die exportierte Gallerie in …/wp-content/galleries/Gallery 1

    Hatte daher {gallery [Gallery 1]} in einen Artikel eingefügt und die Bilder wurden auch schön nebeneinander als Thumbnails angezeigt. Nur halt ohne Lightbox. Auch ein Hinzufügen von rel=”lightbox” zu {gallery [Gallery 1] rel=”lightbox} bringt nichts. Ich verstehe das nicht…

    Ich finde keine Einstellungen des Lightbox-Plugins. Oder welche Einstellungen meinst Du?

  • Tobias Says:

    Hallo Patrick,

    sorry, ich war für ein paar Tage verreist. Wahrscheinlich hast du es jetzt doch hinbekommen. Ich kann mich nicht mehr genau daran erinnern, aber auf meiner Wordpress-Seite habe ich noch http://zeo.unic.net.my/notes/l.....wordpress/ zu der “WordPress Picasa XML Gallery” installiert.

  • Christian Says:

    Hi Thorben,

    ich bekomme auch die Fehlermeldung wie Matthias weiter oben: Gallery “…” is currently not (yet) available…

    Irgendeine Idee, woran das liegen könnte? (Wordpress 2.7)

    Danke & Gruß,
    Christian

  • Micha Says:

    Habe gerade das Plugin installiert und bin auf gleiche probleme gekommen.
    Zu den Fehlern:
    1. Gallery “…” is currently not (yet) available…
    –> Editiert das Plugin und schaltet $debug auf true, dann werden die Fehler ausgegeben. Evtl. liegts daran, dass Ihr keine XML sondern eine HTML generiert habt (Export Einstellungen in Picasa)
    2. Lightbox geht nicht
    –> liegt sicher am Pfad: Bei Lightbox2-Plugin heisst der Ordner WP-Lightbox2 anstelle von lightbox, also einfach unbenennen!

  • Tobias Says:

    zu 1. kann ich dir leider nicht helfen.
    bei 2. liegt bei mir der “wp-lightbox2″ Ordner im “/wp-content/plugins” Ordner

    hoffe das hilft dir erwas

  • LR Says:

    Vielen Dank, das Plugin hat bei mir auf anhieb einwandfrei funktioniert.

  • Neulich im Oldenburger Schlosspark « [myblog.feldhusen.de] Says:

    [...] am 23.05.2009 im Oldenburger Schlosspark entstanden, wurden mit Picasa und den Wordpress Plugin WordPress Picasa XML Gallery (Lightbox2 for Wordpress wird benötigt) [...]

Einen Kommentar hinterlassen