I've been debugging this issue, since I noticed that if I enabled user pictures in nodes on the theme settings, the picture wasn't showing up.

I dpm'ed $vars in basic_preprocess_node, and found out that the variable is called picture, but in node.tpl.php, basic is trying to print $user_picture;, which doesn't exist.

So basicaly all you have to do is change line 8 inside of node.tpl.php from:
print $user_picture;

to:

print $picture;

And you'll have your user pictures in your nodes as expected.

Couldnt find a minute to create a proper patch, but I thought I'd let you guys know anyway - it's not a big change so no sweat i guess =)

Greetings from Spain, and hopefuly see you in Paris!

Comments

manuel garcia’s picture

Title: User picture not printed in node.tpl.php (wrong variable name) » User picture not printed in node/comment.tpl.php (wrong variable name)

Same goes for comment.tpl.php, change line 12 to:
print $picture;

Anonymous’s picture

Version: 6.x-2.x-dev » 6.x-2.7
Status: Needs review » Fixed

Thanks for catching this ! Release 2.6 was a mess, I fixed this and some region bugs now in 2.7

Gold star @Manuel Garcia !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.