kPicasa Gallery 0.1.4
Filed in: Wordpress Add comments
I released a new version for those who reported connection errors since 0.1.0. The routine handling the connection to the Picasa server wasn’t as smart as it should have been. If you didn’t have any problem, there’s no need to update.
Someone emailed me saying that he didn’t see the kPicasa Gallery menu in the Admin / Options page. Is there anyone else experimenting this problem?
February 15th, 2008 at 9:37 pm
Great job on the plugin! The best gallery project I’ve worked with but I’m also having the same problem mentioned by Jeff Rothe in December.
The lightbox function works well in IE but does not operate in Firefox. Instead a prompt appears asking the reader to download the photo.
Any suggestions?
Ok, this is strange…. As I was typing this entry, I checked the site again and now lightbox works with both IE and FFx… Any ideas of why this may be occuring?
Thanks and great work!
February 16th, 2008 at 8:14 am
Hi,
I just wanted to say thank you once again for the amazing kpicasa.
The highslide is amazing with the new version of kpicasa!!!
Thank you and good luck!
February 16th, 2008 at 9:59 am
Hi Patrick,
I have no idea of what could be happening. Maybe you had some file in your browser’s cache and they have now been updated? Maybe you could try on another computer that you know has never visited your website.
February 16th, 2008 at 11:05 am
You should have observed that lightbox is not loading only when the page is still loading it’s content. Lightbox will work only when the page has loaded whole its content. Btw, such issues I didn’t met at highslide, yet!
February 16th, 2008 at 11:15 am
Thanks Guillaume and others for the response. Makes sense. Keep up the good work!
February 17th, 2008 at 1:24 am
works for me.. no problems at all. great plugin.
February 19th, 2008 at 8:30 pm
Love the plugin…Lightbox didn’t work correctly, but I settled for Highslide which I actually like better than Lightbox.
Is there a way to incorporate the Picasa captions? The previous version allowed for that, but I’m not seeing a way to do it with this one.
February 19th, 2008 at 9:18 pm
If Lightbox didn’t work, it was probably because of a conflit with another plugin or maybe with your current theme.
What do you mean by incorporating the Picasa captions? Right now the caption is in the Highslide popup.
Thanks for the feedback 🙂
February 19th, 2008 at 10:59 pm
Hey Guillaume…The captions aren’t showing up for me…Here is the album:
http://9queens.org/photo-gallery/?album=WomenInChess
Here it is in Picasa with the captions:
http://picasaweb.google.com/9Queens/WomenInChess
February 20th, 2008 at 10:56 am
Hey Guillaume,
The captions don’t appear when I use Highslide. Here’s an example:
http://9queens.org/photo-gallery/?album=WomenInChess
Is there something else that I need to do to make them appear?
February 20th, 2008 at 11:11 am
Are you sure there are really captions for these pictures? If you go directly on the Picasa Web Albums websites, are the captions there?
If they are, please post your Picasa username. Thanks!!
February 20th, 2008 at 6:20 pm
Yes, the Picasa username is “9queens”.
The gallery that I am referring to is here:
http://9queens.org/photo-gallery/?album=WomenInChess
February 25th, 2008 at 3:57 pm
I read somewhere that direct loading Picasa photos from Google server is not permitted. The photos should be cached locally then loaded from there.
Any ideas about this issue?
Is it possible to have an option that we could create a page to display the latest photos of the gallery, regardless the album they belong?
February 27th, 2008 at 8:39 pm
Carl F., this is weird. First time I see this. Could it be another plugin conflicting with this one? I tried your account on my test blog and it works just fine.
Usually you should have: <div class=’kpg-summary’>The description here</div>
But it’s nowhere to be found in your page. I’m really clueless.
vihali, this is not something I can do. Picasa provides a RSS feed with a list of all the albums, and another feed with all the pictures in the album. I simply parse them and display the pictures accordingly. But as far as I know, Picasa does not provide a RSS feed with the latest pictures. I suppose it could be done by hand, but it’s not the purpose of this plugin.
And by the way, no need to email me directly 🙂
I’m already warned as soon as a comment is posted here. If I don’t respond quickly, it means I’m really busy elsewhere.
March 6th, 2008 at 11:18 am
I was able to modify you’re code slightly to allow for it’s use within a post. It looks for “[” and “]” characters around your’re syntax, e.g. [KPICASA_GALLERY(JasonCrossesOverToBoyScouts)]
BTW: I reference the code in this post: http://schraderenterprises.com/cms/2008/02/06/crossover/
All you have to do for a manual is use the HTML codes for the brackets and the code won’t get confused. Sure it’s a little harder for you to write any manuals, but I think you’re increased difficulty is small compared with the great functionality increase.
BTW: Kudos. This is the best plugin around for adding albums to posts.
function loadKPicasaGallery ( $content = '' )
{
// $tmp = strip_tags(trim($content));
$tmp=$content;
// $regex = '/^KPICASA_GALLERY[\s]*(\(.*\))?$/';
$regex = '/\[KPICASA_GALLERY[\s]*(\(.*\))?\]/';
$parts=preg_split($regex, $tmp);
// if ( 'KPICASA_GALLERY' == substr($tmp, 0, 15) && preg_match($regex, $tmp, $matches) ) {
if ( preg_match($regex, $tmp, $matches) ) {
ob_start();
$showOnlyAlbums = array();
$username = null;
if ( isset($matches[1]) )
{
$args = explode(',', substr( substr($matches[1], 0, strlen($matches[1])-1), 1 ));
if ( count($args) > 0 )
{
foreach( $args as $value )
{
$value = str_replace(' ', '', $value);
if ($username == null && 'username:' == substr($value, 0, 9) && strlen($value) > 9)
{
$username = substr($value, 9);
}
else
{
$showOnlyAlbums[] = $value;
}
}
}
}
require_once('kpg.class.php');
$gallery = new KPicasaGallery($username, $showOnlyAlbums);
$out = ob_get_clean();
return $parts[0] . $out . $parts[1];
}
return $content;
}
March 6th, 2008 at 11:19 am
Oh, and by the way: Nice theme!
March 6th, 2008 at 12:57 pm
This is indeed one possible (and correct) way to do it. Great job, hope it’s useful to others. As for the theme, I don’t deserve any credit!
EDIT: after seeing your site, great theme too 😛
March 7th, 2008 at 12:05 pm
same, as i wrote on david`s blog… http://www.bitfusion.org/blog/2008/02/27/kpicasa-gallery-php4mod-v014/#comment-37
Hallo, its me again…
i am really happy with php4mod but… 😀
is it posible, to check if visitor have “JavaScript” enabled and if they don`t, using an other type to view the image (e.g. open in a new page, with next and last image links)?
because now, when JS is enabled, everything is working fine and by clicking on the thumbs, the picture is displayed in lightbox or highslide.
but when JS isn’t enabled, only a “save as…” dialog popup, and it is really exhausting to whatch the gallery.
hope sb a solution…
thanks a lot
Bernhard
March 7th, 2008 at 12:23 pm
Hi Bernhard,
I think the *vast* majority of people are using JavaScript. If they don’t, 95% of sites out there won’t even work properly.
With Lightbox and Highslide, if they don’t have JavaScript enabled, they will still be able to see the full-size pictures, only not in the a new window.
I don’t think it’s worth the effort to code such a thing when it’s going to be used by maybe 1% of your visitors?
Is it really a problem, or a “nice to have”?
March 7th, 2008 at 1:42 pm
Hi Guillaume,
maybe you are right that only about 2% of my visitors (google analytics) havn’t enabled JS. So i also thought that this wouldn`t be a problem, but today i saw in my guestbook, that one visitor had a problem and i am a little sad about that. I looked up in the visitor-log and saw, that he hadn`t enabled JS. So i thought, if it is posible to code something if it isn’t too much work.
But you are right, it is more a “nice to have” than a really problem i think.
Maybe, a easier way is, only to check if JS is enabled, and if not, tell the visitor that the gallery didn`t work properly?
Greets
Bernhard
March 7th, 2008 at 2:05 pm
I prefer this suggestion! I’m not sure how to detect if JS is enabled or not, but I’ll search Google for this. Noted in my todo.
March 7th, 2008 at 2:47 pm
now, i have included a warning for every visitor on my homepage, if JS isn`t activated…
i included following code in my header:
“JavaScript” isn’t aktiv!!
Um alle Funktionen incl. der Gallery nutzen zu können, aktivieren Sie bitte “JavaScript” in ihrem Browser!
For all functions incl. the photo-gallery, please aktivate “JavaScript” in your browser!
You can test it on my page: http://leetsil.fh-forum.org … just visit my page witch desabled JavaSkript.
Greets
Bernhard
March 7th, 2008 at 2:54 pm
I thought <noscript> had been deprecated. Seems not. Thanks for your input Bernhard, I’ll integrate this in the next release!
March 19th, 2008 at 9:55 am
Hey, I’ve been putting up a site and wanted to use your plugin (awesome by the way), but it seems that the page on which the album(s) is displayed shifts the chuck to the right. Here is the link to the page.
http://tectumology.info/?page_id=3
Perhaps you can have a look?
Keep up the awesome work!
March 19th, 2008 at 10:23 am
Hi Liam,
I think it has something to do with your “#content ul.datestamp”, it’s not breaking properly to the next line. I’m not a CSS ninja but I know if you add <br style=”clear: both;”/> right after the </ul> containing the date/ time it will work correctly.
I’m not sure why your other posts are fine though, maybe because <table> is a block-level element. I may be wrong on this though!
March 20th, 2008 at 1:10 pm
Hi guys.
Think i resolved this issue…
Might be a problem with other classes loaded by the gallery or by Google.
Had the same problem with AJAX pagination script vs lightbox. And i found this solution on a forum.
You have to add this part of code to kpg.class.php at line 319 and 324.
onclick=’myLightbox.start(this); return false;’
Will look like print
Works for me.
March 20th, 2008 at 1:13 pm
oops. The code wasnt include in the last comment. Well you just have to add this part of code after the a href=’$fullURL’ in those lines.
the guy explained that it was because it’s an outside page that’s loaded, Lightbox have to have a sort of order to start. And this code does that.
March 20th, 2008 at 1:17 pm
Thanks for the research Guillaume. I haven’t tried your solution but it sounds great 🙂
J’ai jeté un coup d’oeil à ton site, très intéressant comme parcours. J’entends régulièrement les Fréres Cheminaud à la radio!
Guillaume²
March 20th, 2008 at 1:43 pm
hahaha excellent! Ils sont bon ces gars là! Des amis d’enfance à moi.
Je pense que ça va marcher sérieux le code. J’avais lu ça sur le forum de dynamicdrive pis ça marche sur mon blog… http://www.guillaumep.com/blog. T’as juste à cliquer sur photothèque.
April 7th, 2008 at 6:33 am
The plugin worked normally until two weeks ago, a “Save As” pops up whenever a picture is clicked. This just happens to the new pictures, everything’s still ok with the old ones (even in the same album).
Any idea?
April 7th, 2008 at 7:54 am
That’s because Lightbox is not fully loaded. For a workaround for this (that’s how Ligthbox works, I can’t do much about it), look in the comments in the other posts.
April 7th, 2008 at 3:58 pm
Hello,
Pictures are not displayed for the users on my site unless I activate (with Role Manager) “edit user” for the profile.
For example if you go to my site http://www.parisgolo.com/?page_id=64&album=MatchContreFCE without login you won’t see my pictures.
That’s only when you are logged in with an acces that have “edit users” allowed that you can see the pictures. I can provide you an access to test by email if needed.
Any idea ?
Thanks
Nicolas
April 7th, 2008 at 4:06 pm
Hi Nicolas,
Aurais-tu par hasard un plugin qui met la page en cache? Si oui, pourrais-tu m’en fournir le nom. Ou encore, aurais-tu mis ce post comme étant privé?
Guillaume
April 7th, 2008 at 10:44 pm
Thanks. The lightbox (I use slimbox actually) still works for the old pictures, not for the ones which have been uploaded since 2 weeks. The pictures are in the same album. I tried on other PCs the result was still the same.
But forget it, I reinstalled the plugin and it works great now 🙂
April 8th, 2008 at 12:21 pm
Salut guillaume !
La page n’est pas en privé, c’est d’ailleurs la première chose que j’ai vérifié après avoir constaté le bug.
Ma liste de plugin :
AJAX Login
Akismet
AuthImage
Democracy
Easy Gravatars
Events Calendar
Exec-PHP
kPicasa Gallery
Role Manager
Simple:Press Forum
WenderHost Subpages widget
April 9th, 2008 at 5:32 pm
Je vois toujours pas d’ou ça vient c’est vraiment étrange.
Même en changeant de thème ça fait la même chose.
April 11th, 2008 at 4:56 am
Hi,
I keep enjoyin using kpicasa gallery plugin. Though I have a feature request. How about a feature to display latest x photos in a sidebar, footer or wherever. It sounds like a flickr rss plugin, but any thought about that? Any comments?
June 21st, 2008 at 10:04 am
Hi – 100.000 thanks for KPicasa plugin. This is the best and most easy to install. In the future my wife wil be posting photo on our website – she’ll be happy – I’ll be more happy 😛
Thanks for the good job!
July 16th, 2008 at 10:24 pm
Thanks Morten!
July 21st, 2008 at 11:02 am
Hi, I just downloaded your photoplugin. But when i try to go to the settings it says:
Fatal error: Call to undefined function get_option() in /var/www/vhosts/chileo.net/httpdocs/wordpress/wp-content/plugins/kpicasa-gallery/param.php on line 3…on line 3 there is nothing strange?
leo