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/)
- Download WordPress Picasa XML Gallery v0.97a (latest version)
fixes smileys being escaped in the article's content, adds support for Lightbox2 (use the WP lightbox 2 plugin for WP), accepts malformed XML if an ampersand (&) is used in the path of the original image (bug in Picasa export), removed debug messages, minor fixes and optimizations
(view formatted PHP code)
Installation
Please refer to the instructions taken from the original plugin site.
- Copy WP-Picasa-Viewer.php
(and view.php)to /wp-content/plugins - Activate the plugin using the admin interface
- Create /wp-content/galleries/ and make sure it is readable by your web server (chmod 755, public read and execute permission)
- 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”.
- Upload the entire exported gallery directory to /wp-content/galleries/GalleryName/
- Create a new post, or modify an existing one and add
{ gallery [GalleryName] }somewhere in it. (
GalleryNameis 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:
2007-07-25 at 4.13 am
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)
2007-07-25 at 1.44 pm
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
2007-07-25 at 11.06 pm
Jetzt funktioniert es. Danke für das verdammt praktische Plugin.
2007-08-15 at 9.53 am
[...] 來源: http://blog.schreiter.info/ [...]
2007-09-15 at 12.49 am
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
2007-09-18 at 1.44 pm
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??
2007-09-19 at 9.09 am
Thanks for great plugin. Using it on http://www.pamnews.com
2007-09-21 at 8.41 pm
[...] Visit [...]
2007-09-24 at 3.28 pm
@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…
2007-10-03 at 12.26 pm
Thanks Torben! Yes, I am fairly certain it is tied to this plugin. I haven’t figured it out yet. Thanks for your response.
2008-02-29 at 10.46 am
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?
2008-03-10 at 6.59 pm
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
2008-03-27 at 4.47 am
Any idea where a “Gallery “*****” is currently not (yet) available…” message might come from?
(where ***** = my gallery)
2008-04-16 at 10.11 pm
Hallo thorben,
habe WP 2.5 installiert und bekomme auch die Meldung “Gallery “*****” is currently not (yet) available…”
Hast du eine Idee ???
2008-04-24 at 11.07 am
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.
2008-05-08 at 3.52 am
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!
2008-08-08 at 2.59 pm
[...] If this has worked and you like what you see check out the plugin here. [...]
2008-08-18 at 9.12 pm
Hallo,
das ist SUPER.
Gruß
Stefan
2008-08-26 at 11.08 pm
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” } …?
2008-11-26 at 7.16 pm
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!!
2008-11-27 at 9.07 pm
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
2008-11-28 at 1.47 am
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?
2008-12-01 at 10.38 pm
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.
2008-12-26 at 11.41 pm
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
2009-01-28 at 9.05 pm
[...] http://blog.schreiter.info/wor.....2-suppor... [...]
2009-03-11 at 11.40 pm
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!
2009-03-12 at 10.14 am
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
2009-04-19 at 10.43 am
[...] http://blog.schreiter.info/wor.....2-suppor... [...]
2009-05-15 at 9.33 pm
Vielen Dank, das Plugin hat bei mir auf anhieb einwandfrei funktioniert.
2009-06-08 at 1.52 pm
[...] 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) [...]