Wordpress Picasa plugin
Posted in wordpress by sandaruwan on April 4th, 2008There is a quick update on picasa plugin.
If you want multiple users, in the picasa username field, separate users by semicolons ( ; ). You can use the album names inside brackets infront of the username. Separate album names by commas ( , ).
Example : sandaruwang(Adams Peak, IOI 2006);yasaruwan(sivali)
[...] Edit : Latest update http://www.sandaru1.com/2008/04/04/wordpress-picasa-plugin/ [...]
April 4th, 2008 at 7:09 am
[...] about wordpress and the way images were displaying from the newly installed (and rather awesome) picasa widget. So he fixed it. I really appreciated that, told him he was the man, etc.. then thought up about 5 [...]
April 10th, 2008 at 5:54 am
Even though I have the delay set to 1 it still will not update. What gives? I need like a manual refresh button or something. Any suggestions as to why its not updating?
April 10th, 2008 at 10:02 pm
Bryan, it’s day. Try setting it to “0″ and refresh the page.
Indeed, delay value seems to be a bad idea, I’ll change that ASAP.
April 11th, 2008 at 2:52 am
Bryan,
There was a bug with updates, and it’s fixed now. Thank you for the feedback. Please update the plugin.
April 13th, 2008 at 8:53 am
Hi, how can I change de size of the images? I have tried to put 200 instead of 160 in the code, in order to get a 200×200 image size, but it doesn’t work.
Thanks!!
April 13th, 2008 at 11:24 pm
Blasma,
Those are the only sizes provided by picasa.
~ Sandaruwan
April 14th, 2008 at 1:38 pm
But before the update of the plugin and the update of wordpress, I could resize it to 200×200…
April 15th, 2008 at 12:31 am
Yes Blamsa, you were correct. In fact there were some other sizes.. the problem is they don’t have any documentation of it, so I have to find by trail and error. Anyhow, I added some other sizes(including 200×200) and updated the plugins.
Thanks for pointing that out.
April 15th, 2008 at 1:08 am
Thanks sandaruwan. It works great!!
April 16th, 2008 at 4:03 am
hi sandaruman, your plugin works great!!!
April 22nd, 2008 at 4:50 pm
Version: 1.2.0.2
The RRS-Feed would not be updated. I could use the Variable 0 or 1.
[code]
RSS Download Delay(Days):
0
Last Download at Thursday 01st of January 1970 01:00:00 AM
[/code]
It is possible, that a function has been disable at server-side?
April 23rd, 2008 at 4:23 pm
waenger, it’s very strange. It means that the photos have never been updated. What do you see in the site?
Can you give the site url?
April 23rd, 2008 at 6:54 pm
Which field do I pu tmy info in?
Do I replace ‘user’ with my user id?
or ‘picase-user’ with my user id?
Can I leave all the other fields blank?
if ( $_POST['picasa-submit'] ) {
$newoptions['user'] = strip_tags(stripslashes($_POST['picasa-user']));
$newoptions['title'] = strip_tags(stripslashes($_POST['picasa-title']));
$newoptions['delay'] = strip_tags(stripslashes($_POST['picasa-delay']));
$newoptions['num'] = strip_tags(stripslashes($_POST['picasa-num']));
$newoptions['size'] = strip_tags(stripslashes($_POST['picasa-size']));
May 8th, 2008 at 7:46 am
Michael,
Go to “Design -> Widgets” and configure from the interface.
~ Sandaruwan
May 8th, 2008 at 1:33 pm
say is there a stripped-down version to display a random image in any other website?
Cheers
May 16th, 2008 at 8:08 pm
Raffael,
Do you mean without using wordpress? You can extract the downloading/parsing code from the plugin. If you using it only for one site, you can hardcode the settings.
~ Sandaruwan
May 16th, 2008 at 11:36 pm
[...] Picasa Photos um die Bilder in der Sidebar anzuzeigen. Dieses Addon wurde allerdings angepasst, dass es nun nicht mehr auf die Bilder bei Picasa verweist, sondern das jeweils ausgewählte Bild in einer Lightbox auf der Webseite darstellt. [...]
May 19th, 2008 at 3:18 am
Sandaruwan,
Amazing widget! The flexibility to specify multiple albums is working great.
How can I select the number of images to cache? I’d prefer 30+ images. I did see a few duplicate images but attributed it to the cache size.
May 19th, 2008 at 3:16 pm
Adria,
The plugin doesn’t cache the images, it only caches the image URLs.
~ Sandaruwan
May 20th, 2008 at 3:08 am
hi there, I’m curious. I just want to hard-code it, pasting the code right to the sidebar.php
Which code should I paste there? I’ve been trying and trying, but my limited knowledge on php stops me from getting the desired result.
I tried to paste the entire code, but what I get is
Parse error: syntax error, unexpected ‘}’ in /home/gemb05/public_html/wp-content/themes/illacrimo/illacrimo/sidebar.php on line 56
any help?
May 21st, 2008 at 1:43 pm
Rizky,
Instead of coping and pasting the code, download the plugin to “wp-content/plugins” directory, and use it as a widget.
~ Sandaruwan
May 21st, 2008 at 1:53 pm
the snippet code, I meant to say
thanks,,
May 21st, 2008 at 2:04 pm
rizky,
Sorry, It’s not clear for me what you are trying to do.
~ Sandaruwan
May 21st, 2008 at 5:22 pm
Hi sadarvan
I have tried to load photos installed the widget and nothing happens.
Title:
Picasa Username:stefdaventer/Namibie1
Number of photos: 3
Image Size: 160
RSS Download Delay(Days): 0
Last Download at Thursday 01st of January 1970 01:00:00 AM
What do i do wrong, In IE I see places for photo’s in Firefox i see nothing
Stev
May 22nd, 2008 at 6:25 pm
Steve,
Your settings seems to be correct, check whether your albums are public.
~ Sandaruwan
May 23rd, 2008 at 9:40 am
Hi sadarvan
my albums are public
I have trying everything ???
May 23rd, 2008 at 1:43 pm
Hi there, Sandaruwan. I’ve been using your Picasa Photos for about a month. It works best except for one thing; it has no spaces among photos. You may see the live example on my blog; http://gembili.com/. I didn’t realise it til I saw yours on this web. You’ve got some spaces between photos which I don’t.
thanks for the helps.
regards!
May 29th, 2008 at 8:45 am
rizky,
It’ll depend on your CSS/theme files. You CSS styles might be not using any padding, you’ll have to edit the plugin to support your layout.
~ Sandaruwan
May 30th, 2008 at 3:22 am
[...] Picasa Photos [...]
June 1st, 2008 at 4:12 am
Hey, Sandaruwan, Thank you for your plug-in. I’m really enjoying it.
Is it possible to have the caption of the title to display in the widget under the photo. If it could display the first comment of from the picasa album that would be even better (I put the photo details in the first comment) Anyways thanks!
June 1st, 2008 at 5:31 am
tumba,
At the moment, it’s not reading the comment feeds. I’ll try to add that into next version.
~ Sandaruwan
June 3rd, 2008 at 8:54 pm
Hi Sandaruwan, your plugin is just what I’ve been looking for, and until yesterday it worked very nicely in my blog. Last night my webhoster updated the mysql-version (before 4, now 5) and the php-version (before 4, now 5) of his server. Unfortunately the Picasa plugin doesn’t work as before, although I deactivated, uninstalled and reinstalled it (the actual version). The settings are like before, but the widget (named “Zufallsbild”, which means “random image”) doesn’t show my picasa-gallery (a73pix) but a strange link.
Do you have an idea what can be done to fix this?
Thanks a lot in advance,
Andreas
June 4th, 2008 at 5:44 am
Andreas,
You can try removing the settings manually from the mysql database. Try this query : “delete from wp_options where option_name=’widget_picasa’;”
You might have to change the table name based on your prefix(from wp_options to prefix_wp_options).
I hope that’ll fix the problem.
~ Sandaruwan
June 4th, 2008 at 5:50 am
Hi Sandaruwan, the plugin is working again. I’m not quite sure what fixed the malfunction in the end, but now it functions as it should. Thanks for your help,
have a good day,
Andreas
June 5th, 2008 at 1:45 am
Hi, Sandaruwan. What to do if my theme does not support widgets? Can I add codes in to my theme manually? Thank you
June 8th, 2008 at 5:05 pm
LIN KUN,
The easiest way would be to add sidebar support for your theme. It’s very easy and can be done in few lines. Look at the following link :
http://www.blogohblog.com/adding-extra-sidebar-to-your-wordpress-theme/
~ Sandaruwan
June 8th, 2008 at 10:39 pm
[...] zufällige Bilder lassen sich mit dem Picasa Widget anzeigen, bei mir ist es als “Zufallsbild” in Aktion. 10. Juni 2008, 01:20 [...]
June 10th, 2008 at 5:47 am
hi guys,
need a bit of help.
I’ve been using the picasa widget for a few months without any problems.
Now it won’t update the RSS feed (last update was a week ago) and shows the photos I used to have in picasaweb.
The problem is that I deleted some and i get a ‘not found’ image when it randomly selects a picture that doesn’t exist anymore.
I’ve tried everything:0 days, disabling the plugin… I’ve even tried to search in every file in the wordpress directories to see if I could manually edit the image url’s to stop the errors from showing… couldn’t find any.
I’m using WP 2.2.2 and the latest version of the plugin.
Any ideas? Thanks
PS: the folder is public.
July 1st, 2008 at 1:45 am
[...] Picasa photos [...]
July 7th, 2008 at 2:02 am
I’ve tried everything I know to get the image links to open up in a new window. Is this not possible?
Line 90:
July 8th, 2008 at 7:43 pm
[...] Picasa photos- attēlo bildes no picasa foto galerijas. [...]
July 23rd, 2008 at 1:19 pm
This is a great plug in
July 24th, 2008 at 3:27 pm
Hey, very useful plugin. Thanks
One thing, I can’t get it to work with 2.6
This is my format: alleyoopster(Letang,SharkDiveBahamas,ZellAmSee,LeftAndLeaving);
and options are like this:
Check for new photos for each days 0
Last Download at Saturday 26th of July 2008 09:22:40 AM
All it does is show pictures from the first album, whatever I do.
Can you help or do I need to wait for an update?
thanks
July 26th, 2008 at 9:29 pm
Daniel,
The Album names should be the full title with spaces.
Ex : alleyoopster(Letang,Shark Dive Bahamas,Zell am See,Left and Leaving)
~ Sandaruwan
July 27th, 2008 at 1:34 am
Can you (or I) edit the plugin so the album opens in a new page when they click the foto in my blog?
I tryed some, but i cannot find the right line to edit it.
August 15th, 2008 at 5:47 pm
Geert,
Add a “target=_blank” to the img tag. Line 90 in version 1.2.0.3
~ Sandaruwan
August 16th, 2008 at 8:33 am
thx it’s working
August 18th, 2008 at 11:25 pm
Hi Sandaruwan, just wanted to drop you a line and thank you for the kick ass Picasa plug in. I will be implementing it for the icihealth.org/blog soon enough. You are an inspiration at 22!
August 19th, 2008 at 7:01 pm
[...] little blue about hosing my categories and pown’d flickr album, when I can across this little Piacsa plugin for wordpress. Sandaruwan is only 22 years old and already hooking this sort of thing up for Picasa [...]
August 19th, 2008 at 7:10 pm
Can you please add Lightbox support on your next release? Or something that will open the images in a new window? No one will want the visitor the leave the site by clicking on a image.
August 26th, 2008 at 1:37 am
Okey,
I added [code][/code] So it’s okey for me. It’s opening in a new window now. It was simple.
August 26th, 2008 at 2:04 am
hi,
i think (and can see on your page) that it is a great plugin like everybody says but it is not working on my page…
i have installed and set up the plugin, it shows the name for the “galleyry” but underneath it it wont show any pictures….
title: Random
username: marczunder(test)
number of photos: 5
size: 72
check for new photos: 0
what am i doing wrong
September 2nd, 2008 at 1:53 pm
ok sorry now it is working… and i dont know why
great plugin
September 2nd, 2008 at 9:06 pm
hi me again
sorry
but the command in line 90 to let the picture open in a new window how exacly is it supposed to look like ?
$str.=”<a></a>”;
September 2nd, 2008 at 9:19 pm
Marc,
it should be something like <a target=_blank href=\”$selected[link]\” rel=”nofollow”><img….
~ Sandaruwan
September 3rd, 2008 at 12:18 pm
Hi Sandaruwan,
Hope all is going well. Excellent plugin. I do have one question. Is it possible to view photos from multiple albums that are considered private albums along with those that are public albums?
September 4th, 2008 at 6:20 am
Hi Raj,
This plugin makes use of the public RSS feeds of the albums. As far as I know, the private albums doesn’t have a public RSS feed. So, it won’t be possible with this plugin.
~ Sandaruwan.
September 4th, 2008 at 8:41 pm
thx its working great… bad ass plugin !!!
September 5th, 2008 at 2:39 am
hi me again
but the photos are all stuck together and there is no margin between the photos… is there a possibility to add a margin betwwen the photos, margin right an bottom ?
i put in a gallery on an site of my page… it works great and i love the lightbox effect
marc
September 8th, 2008 at 3:06 am
Marc,
You’ll have to add a “<br/>” in line 90. It’s using “<p>” tags, but I guess your theme doesn’t put a space between two of those.
~ Sandaruwan
September 8th, 2008 at 6:58 pm
Hi, Sandaruwan, thanks for sharing your plugin with others. It’s the first plugin that worked among the sidebar random image display plugins that I tried. Can you add some code so that we’ll have the option to display captions?
Thank you very much, and wish you more power.
September 9th, 2008 at 8:18 pm
hi,
is it right that the sidebarwidget doesent update as fast as i update the options?
when i for example add a new album or i take a whole different one it still shows the old album or not both…
marc
September 13th, 2008 at 2:08 pm
oh.. and adding the margin in the gallery on a page, whow exactly does the line should look like… i tried but didnt word.. i am not a great coder so
September 14th, 2008 at 12:18 am
Great plugin, many thanks!
September 26th, 2008 at 3:54 pm
hi, this plugin works great, unfortunately each time I install it grow up my database (with the field widget_picasa_photos in the “wp_options” table) from <1mo to 6mo, which exceed my host’s limit
Am I the only one who have this problem?
Do anyone could see why it’s hapening?
thanks!
October 1st, 2008 at 5:42 am
Hi, it’s possible to use plugin in a sidebar without widget support, there is a code ?
tnx
October 1st, 2008 at 3:52 pm
Would like to know the same like Redemption. Because I don’t use widgets, but want to use this plugin.
October 11th, 2008 at 4:42 am
Sandaruwan,
Thank you for creating your ‘widget’, which works exactly as expected.
One issue I had because of the small number of images in my album the random function would select the same image multiple times.
I noticed someone else had the same issue.
I have worked round this by replacing line 90 with
$pos = strpos($str, $selected[title]);
if ($pos === false) {
//New picture
$str.=”“;
} else {
//Already got this one
$i = $i-1;
}
(I hope that comes out when posted
)
No doubt someone else can come up with a more elegant solution than my amateur coding.
Best regards
Steve
October 15th, 2008 at 1:44 pm
Hmm
That didn’t work too well
the line that came out as
$str.=”“;
Should have been the old line 90
Hope that make sense.
October 15th, 2008 at 1:46 pm
That didn’t come out too well
the line that looks like
$str.=”“;
should have been the old line 90
October 15th, 2008 at 1:48 pm
My plugin is working, however it is duplicating pictures on my blog’s sidebar. I have made sure the pics were not duplicated in the Picasa web album. Know how to correct this?
Thanks!
November 5th, 2008 at 11:23 pm
Robin,
There is a high probability of displaying duplicate photos if you have small number of photos in the albums and a large number of slots in the sidebar.
I’ll fix the duplicates in next version.
~ Sandaruwan
November 8th, 2008 at 9:28 am
Hi Sandaruwan,
I’ll be anxiously awaiting that new version! Thanks so much.
Robin
November 11th, 2008 at 9:30 pm
Great plugin. I don’t use widgets though. How do I insert it into my sidebar, with the correct code?
November 16th, 2008 at 2:56 pm
[...] Plugin Homepage » [...]
November 28th, 2008 at 11:24 pm
Hi,
activating this plugin disabled another graphic one called “snazzy archives”… I have a page with nothing but snazzy archive theme on it and it’s now black. Know how to tell wordpress not to use the plugin on a specific page? thanks – love it!
December 2nd, 2008 at 3:04 pm
This is a great plugin
December 10th, 2008 at 4:34 pm
[...] Picasa Photos [...]
December 31st, 2008 at 6:50 am
[...] Picasa Photos [...]
December 31st, 2008 at 12:23 pm
hi.
i activate the plugin and add that to the sidebar from Presentation -> widgets and bla-bla, but it not working.
what its problem?
wp 2.7
sorry. i very bad know en.
January 3rd, 2009 at 6:03 am
[...] Picasa Photos [...]
January 4th, 2009 at 3:52 am
Great plugin, but
I can’t make the plugin change the Picasa user. I have changed the username, but the old pictures are stilled showed. I deleted the pictures, but they are stilled showed. Is there temp files that should be deleted?
February 1st, 2009 at 8:13 pm
I use your widget all the time (on several websites) and it works great! On this particular website it was working fine when, without warning or prior provocation it started showing blank boxes where the pictures should have been being displayed. I can tell it is making some type of connection as it is retrieving the pic file name. Any suggestions?
February 25th, 2009 at 7:10 pm
Hi, I installed the plugin as instructed (username, public album name, photo size, update at 0) and it still doesn’t show up on my wordpress page. any thoughts? (i am not a coder, so is there something i need to add somewhere else that I am not getting?)
February 27th, 2009 at 1:10 am
Hi,
I just tried your plugin! The installation went well. But I can’t manage to set it up to display only one album.
I tried barboul(Life in China) but it is still displaying random pictures from other albums…
Thanks for your help!
Ludo
March 3rd, 2009 at 10:14 pm
I added the plugin and its just showing the title and down in status bar its displaying trasfering data from techanuva.info…
please help me..
March 21st, 2009 at 7:32 am
How can i add the lightbox effect to this widget?
March 25th, 2009 at 1:31 pm
[...] WordPress 插件可以直接展示指定帳戶的相片。最近試了兩個,感覺不錯: – Picasa Photos 隨機展示 PicasaWeb 上的圖片,可以設定顯示相片數量,有 6 [...]
May 5th, 2009 at 7:21 pm
I would really love to know if it’s possible to add Lightbox or Slimbox support to this plugin, too
May 14th, 2009 at 6:11 pm
hi,
is it right that the sidebarwidget doesent update as fast as i update the options?
when i for example add a new album or i take a whole different one it still shows the old album or not both…
June 23rd, 2009 at 8:58 pm
Any word on whether this plugin is compatible with Wordpress 2.8?
June 26th, 2009 at 12:22 am
hey, having an issue. I put in my username, and i loaded in all of my images. Now i only want to use 1 album but even though i update the settings to username(album name), i still get all of the photos. even if i change the username there is no change in photos displayed. it seems that worpress has cached the images somewhere? I have refreshed browser cache…. whats happening?
June 30th, 2009 at 2:42 am