By johnhesston on
Here is the code that uses a picture in fbss comments.
$output .= '
'; //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 .= '
$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
i need this to please!!
subscribe
i will try changing the
i will try changing the line
$output .= '
'; //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...