I love the Author information block and aim to use it just on blogs. I've added fields to the user profile and everything is working perfectly but how do i get it to display on the main authors blog page ?

If i click an authors blog post it displays happily but i would like it displayed on his main blog page with all his blog listings.

Anyone any ideas how to do this without using a custom block (i like the fact i can just enable new fields with a check box) ?

Comments

Jonathan Webb’s picture

If you goto administer blocks and configure your author information block it has a section for "page specific visibility". For my site I have author information at the top of the left sidebar showing only in my forums using the following:

<?php 
if (arg(0) == 'node') {
  $node = node_load(array('nid' => arg(1)));
  return $node->type == 'forum';
}
?>

I'm guessing the node->type you'd want is 'blog'? Or maybe arg(0) == 'blog'?

desm0n’s picture

that doesn't work i'm afraid :(

Although the block will happily show on a main blog entry node pages aka
http://www.porttalbotchat.co.uk/blog/desm0n/when-a-boiler-doesnt-boil-is...

it refuses to show on the users main blog index pages :-
http://www.porttalbotchat.co.uk/blog/desm0n

I would like it to show on both.