Ciao Mirko,
grazie per la velocissima risposta.

La parte di codice dovrebbe essere questa:

codice:
//$dim = ''; //if ($tipo=="thumbnail") 
{ $dim = 'width="150" height="150"'; 
} 
//if ($tipo=="small") 
{ $dim = 'width="65" height="65"'; 
} 
// Build the <img> string $sImgString = '' . '[img]' . $sUrl . '[/img]' . ''; 

// Print the image echo $sImgString;