If I switch to Bartik, user pictures appear in posts and comments. If I switch to Bamboo, user pictures only appear in comments, but not posts.

But I kind of recall that they used to show up on Bamboo posts previously, so I'm trying to figure out if it's something unusual going on with my system or if it's an issue/feature with Bamboo?

Comments

Danny Englander’s picture

Title: User Picture Missing in Posts » Implement User picture in Posts
Assigned: Unassigned » Danny Englander
Category: bug » feature
Status: Active » Needs work

Hi I never had user pictures in posts for Bamboo but I suppose I should. I'm not sure how to handle that really in the context of the theme design, it would be fine if there is no date but with the circular date block, it could look cluttered. I'm open to ideas and then I can make it happen. I'll play around with a few ideas on my end but let me know if you have any. Changing this to a feature request.

ADrupalUser’s picture

For me that wouldn't work since I've already heavily customized the version I'm using.

However, in Bamboo's custom node.tpl.php, I do see this line: print $user_picture; , but it prints an empty string.

Is Bamboo doing something else to clear $user_picture, or is there something else necessary for the theme to do to construct $user_picture? I thought it was set by core in user-picture.tpl.php which has this comment: * - $user_picture: Image set by the user or the site's default

Danny Englander’s picture

Well it's because the .info file purposefully did not have features[] = node_user_picture under ; Features so I should actually remove any code related to that in node. I'd recommend in the future to create a sub-theme as pointed out in the documentation, then you don't get into a rut if there's an upgrade.

ADrupalUser’s picture

Thank you, that's very useful!

I actually started with a sub-theme, but my customizations applied to all the .tpl files as well as the template.php file so Bamboo base theme upgrades were not really doing much by that point. So I just ended up rolling all the customizations into a single theme, though it still retains much of Bamboo's aesthetics. And of course, it's documented that it was created from Bamboo to make sure credit is given.

Danny Englander’s picture

Status: Needs work » Closed (won't fix)

Ok so it sounds like you might implement this yourself. It's actually the first time anyone has mentioned this after 13,000 downloads and 2300+ installs and as I have very limited free time right now, I might just let this one go. Thanks for using my theme!