I really love your module, but I've been working on a project where I have to put the blogger picture together with the Blogger Name and description... How could I do that?

Comments

mfer’s picture

First, update to the 5.3 version of the blog information module. I just added it to make it easier to theme things like this.

Then, make sure picture support is enabled.

After that, added a function like this to your template.php file:

function phptemplate_bloginfo_block($description, $format, $author) {
  $account = user_load(array('uid' => $author));
  if ($account->picture) {
    $output = theme('user_picture', $account);
  }
  $output .= check_markup($description, $format, FALSE);
  return $output;
}

You may, also, want to look into using imagecache with this to have different sized images. Check out http://www.lullabot.com/articles/imagecache_example_user_profile_pictures for a nice article with much of the custom work done for you.

mfer’s picture

Status: Active » Fixed

Assuming this is taken care of. If it's not please re-open this issue.

rmahon’s picture

update to the 5.3 version of the blog information module?
I can't find 5.3 it's not in the module download section, not in CVS not in head?

mfer’s picture

oops... i meant bloginfo 5.x-2.3.

Anonymous’s picture

Status: Fixed » Closed (fixed)