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 ""; echo "$photo[title]"; echo ""; }