I posted this on the wgPicasa site as well as the Google code site but I thought I would give it a shot here on the Joomla forum too. wgPicasa is a very nice little component where you can create menu items linking to either all one's public Picasa albums or a specific album (shows pictures in a lightbox rather than taking you to the Picasa site). Works well except that it doesn't fetch the album descriptions, or photo captions or comments. I tried to just bring in the captions and cannot seem to get them. I think that caption is called summary (but I've tried "description" too) and they belong the media group but my programming knowledge is really limited. I think it would be neat to add this functionality and simple for anyone who knows what they're doing (not me unfortunately!).
Here's the code from the file that calls for the photo details:
Code: Select all
// Gphoto namespace data
$ns_gphoto = $entry->children($namespace['gphoto']);
// Media namespace data
$ns_media = $entry->children($namespace['media']);
// Media thumbnail attributes
$thb_attr = $ns_media->group->thumbnail->attributes();
// Media content attributes
$con_attr = $ns_media->group->content->attributes();
// thumbnail is same reference, except other 's<imgmax>' tag
$photo = array (
'photoTitle' => (string)$entry->title[0],
'photoURL' => (string)$con_attr['url'],
'thumbURL' => (string)$thb_attr['url'],
);
And here is what I have tried (along with a lot of variations) under
thumbURL:
Code: Select all
'photoCaption' => (string)$entry->summary
Then I added the following the display page for the album:
Code: Select all
echo "<p>" . $photo['photoCaption'] . "</p>";
Any ideas would be greatly appreciated!