Here is the code that uses a picture in fbss comments.

$output .= '

'. theme('user_picture', $author) .'

'; //This is line where the picture is added

I would like to use a preset imagecache picture, so I use this code in template.php but it's not working. Anyone know what I'm doing wrong?

function waffles_fbssc($author, $timestamp = NULL, $referer = NULL) {
$output = '

'."\n";
$output .= theme('imagecache', 'thumbnail', $author->picture, $alt, $title, $attributes);
$output .= '
'. theme('username', $author) .'

'."\n";
if ($timestamp) {
$output .= $timestamp ? '

'. t('!time ago', array('!time' => format_interval(time() - $timestamp))) .'

'."\n" : '';
$output .= $referer ? '

'. t('Referer !link', array('!link' => l($referer, $referer))) .'

'."\n" : '';
}
$output .= '

'."\n";
return $output;
}

Comments

glitz’s picture

subscribe

glitz’s picture

i will try changing the line

$output .= '

'. theme('user_picture', $author) .'

'; //This is line where the picture is added

where 'user_picture' is replaced with the image cache title.

ill let you know if it works...