$photoFeed->mediaGroup->content[0]->url
On Tue, Nov 25, 2008 at 2:35 AM, Peter Marino <marino.peter@gmail.com> wrote:
Hi users,All images retrieved by the getThumbnail works 100%but when I want a full image and try to retrieve it usingthe getContent() method then the image is not displayed`the <img ... /> displays the correct widh and height borderbut with no image.the code I use is:$query = $gp->newAlbumQuery();
$query->setUser("default");
$query->setAlbumId( $album );
$albumFeed = $gp->getAlbumFeed($query);
$album_name = $albumFeed->getTitle();$w = $photoFeed->getGphotoWidth().getText(false);
if ( $w>600 )
{
$w = 600;
}echo "<table style='width:100%'>";
echo "<tr><td align='center' ><img width='".$w."' src='".$contentUrl."' alt='' /></td></tr>";
echo "<tr><td align='center'>
<a href='http://picasaweb.google.com/marino.peter/".$album_name."#".$photo_id." '>
Se billede fra Picasa albumet</a>
</td></tr>";
echo "</table>";just to clarify the album and photo id's are correct, the link I create using<a href='http://picasaweb.google.com/marino.peter/".$album_name."#".$photo_id." '>
works just fine.this might be more a html/php problem then actually a gdata problem, but I'm kinda stuckwhy this doesn't work,.. perhaps someone could show me the way?regards,
--
Cory Wiles
kwylez@gmail.com
http://www.corywiles.com
http://www.400mtogo.com
没有评论:
发表评论