heres what I got but its not working. Can someone please advise how to change the size of the avatars that appear in the fbssc explained here?
http://drupal.org/node/786150#comment-2916622

/**
* Formats a comment.
*
* @param $comment
* The comment object.
* @param $classes
* An array of extra classes to include in the comment status wrapper div.
* @param $destination
* The destination query string for edit and delete links. Usually the current
* page unless this function is called from a JavaScript callback page.
* @return
* The fully themed status comment or FALSE if the current user does not have
* permission to view the comment.
*/
function zeropoint_fbssc_item($comment, $classes = array(), $destination = '') {
if (!fbssc_can_view($comment)) {
return FALSE;
}
$author = user_load(array('uid' => $comment->uid));
array_unshift($classes, 'fbssc_comment');
$classes = implode(' ', $classes);
$output = '

';
$output .= '
'. theme('user_picture', $author) .'

';'Only local images are allowed. //This is line where the picture is added
$output .= '

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

';
$comment_text = _facebook_status_run_filter($comment->comment);
$comment_text = nl2br($comment_text);
$output .= '

'. $comment_text .'

';
$output .= '

';
$output .= ''. theme('facebook_status_time', $comment->comment_time) .'';
$q = $_GET['q'];
if ($destination) {
$q = $destination;
}
elseif (strpos($q, 'fbssc/js') !== FALSE) {
$q = '';
}
if (fbssc_can_edit($comment)) {
$output .= ''.
l(t('Edit'), 'statuses/comment/'. $comment->cid .'/edit', array('query' => array('destination' => $q)))
.'';
}
if (fbssc_can_delete($comment)) {
$output .= ''.
l(t('Delete'), 'statuses/comment/'. $comment->cid .'/delete', array('query' => array('destination' => $q)))
.'';
}
$output .= '

';
//Invokes hook_fbssc_render_alter(&$output, $comment).
drupal_alter('fbssc_render', $output, $comment);
return $output;
}

Comments

glitz’s picture

id like to be able to use one of my image cache presets

icecreamyou’s picture

Status: Active » Closed (duplicate)

Please read http://bit.ly/amlZjZ

If you have the ImageCache Profiles module installed, the code in the issue you referenced will work (as long as you name the theme override function correctly). Otherwise you have to use theme('imagecache', $preset, $image_path) which is kind of complicated because you have to figure out what the image path is.

Overriding theme functions is a generic topic not specific to FBSS. You can read more about it in the documentation. If you need help overriding theme functions, you can ask in the forums. If you need help with the ImageCache API, ask in the ImageCache queue.

glitz’s picture