PHP Classes

little suggestion

Recommend this page to a friend!

      Galleries from Picasa  >  All threads  >  little suggestion  >  (Un) Subscribe thread alerts  
Subject:little suggestion
Summary:suggestion
Messages:1
Author:Michele Andreoli
Date:2011-08-17 08:49:00
 

  1. little suggestion   Reply   Report abuse  
Picture of Michele Andreoli Michele Andreoli - 2011-08-17 08:49:00
Hi! This is a great class, very useful! but for mine necessity I made a little modify at your code, so I want to suggest you this upgrade that I think it will be useful for others users if they want to get the description of images:

In the public function "getPictures(...)" I inserted a new piece of code in the case "MEDIA:GROUP":

if ($mediakey=="MEDIA:THUMBNAIL") {
$pictures[$id]['thumbnail']=$mediavalue["attributes"]["URL"];
}
if ($mediakey=="MEDIA:TITLE") {
$pictures[$id]['title']=$mediavalue["value"];
}
/**********my modify*************/
if ($mediakey=="MEDIA:DESCRIPTION") {
$pictures[$id]['description']=$mediavalue["value"];
}
/*********************************/