Likewise – it would be great to add Pinterest to the social tools shown with Pretty Photo…
Sorry for the late reply. Can you say more about what you’re trying to do? I’m not sure what Pinterest has to do with displaying Picasa photos on a WordPress site.
Hi Mike,
The problem occurs if someone want to put a Picasa photo displayed using Shashin on Pinterest. Steps to replicate:
* On pinterest click the + button to add a new pin
* Choose “Add from a website”
* Enter the URL to the page using Shashin/Picasa. I entered this page from your blog: http://www.toppa.com/2013/seeing-big-country-for-the-first-time-in-20-years/
You will notice none of the Shashin/Picasa images from the post are detected (since they use HTTPS).
A Picasa support form thread on this topic: http://productforums.google.com/forum/#!msg/picasa/BN2NygsrIlI/TOiKbKeYITUJ
I added a method to Public_ShashinPhotoDisplayerPicasaPrettyphoto to do this:
/* return img src as http if not on secure connection (and keep pinterest happy) */
public function setImgSrc() {
parent::setImgSrc();
if (!$_SERVER["HTTPS"] && substr(strtolower($this->imgSrc), 0, 5) == "https") {
$this->imgSrc = "http".substr($this->imgSrc, 5);
}
return $this->imgSrc;
}
Of course I assume you know the best way to tackle this 🙂
Thanks for explaining (if it wasn’t already obvious, I don’t use Pinterest…). I’ll include this change in the next version, assuming it doesn’t cause any other complications. I’ve added it to the issues list: https://github.com/toppa/Shashin/issues/47
Thanks, Mike!
Perhaps it would also be possible to include a Picasa button (like the Facebook and Twitter ones) in the PrettyPhoto social tools. Could we open another issue for that?
Done – included in version 3.4
Great stuff – thanks, Mike!