Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Danny EnglanderHi 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.
Comment #2
ADrupalUser CreditAttribution: ADrupalUser commentedFor 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
Comment #3
Danny EnglanderWell 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.Comment #4
ADrupalUser CreditAttribution: ADrupalUser commentedThank 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.
Comment #5
Danny EnglanderOk 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!