All pastes #784451 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-19 18:27 UTC
rendered paste body
Trying to convert this into smarty, but not sure how it should look.



// Find the NSID of the username
$person = $f->people_findByUsername($user);
    
// Get the friendly URL of the user's photos
$photos_url = $f->urls_getUserPhotos($person['id']);
    
// Get the user's first 36 public photos
$photos = $f->people_getPublicPhotos($person['id'], NULL, 5);


// Loop through the photos and output the html
foreach ((array)$photos['photo'] as $photo) {
        echo "<a href=$photos_url$photo[id]>";
        echo "<img border='0' alt='$photo[title]' ".
            "src=" . $f->buildPhotoURL($photo, "Square") . ">";
        echo "</a>";
}