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.
By jerseycheese on
Why is this? If anyone could clue me in I'd be very grateful... thanks.
I've searched the admin area to make sure pictures in posts were enabled everywhere and here is my node-blog.tpl.php code:
Note: I'm positive the users in question have user pictures. They just aren't being outputted to the node.
<div class="node<?php print ($sticky) ? " sticky" : ""; ?>">
<?php if ($page == 0): ?>
<h2 class="title"><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>
<div class="info"><?php print $submitted ?><span class="terms"><?php print $terms ?></span></div>
<div class="picture"><?php print $picture ?></div>
<div class="content"> <?php print $content ?> </div>
<?php if ($links): ?>
<?php if ($picture): ?>
<br class='clear' />
<?php endif; ?>
<div class="links"><?php print $links ?></div>
<?php endif; ?>
</div>
Comments
Mmmm im not sure how much
Mmmm im not sure how much help i'll be here but anyway.
Your checking further down your template to see if $picture exists and then forcing a BR class with the following lines
Maybe take out the
<div class="picture"><?php print $picture ?></div>
and replace with the following ?and remove your
Also check your picture class div incase any issues are there.
Let me know how it goes.
Thanks for the response,
Thanks for the response, desm0n.
I've given that a whirl... not working, though... and there's no .picture CSS classes that are mucking things up.
Here's the updated code:
This seems to be a common
This seems to be a common issue.
One thing to check is to see if
<div class="picture">
got output in your source.If it didn't then i would imagine that the pictures in posts option is disabked either in your theme or theme globally or there are other issues.
Sorry i couldn't be of greater help, still new to this myself.
hmm i'm stuck then.
User pictures in posts is definitely enabled in my theme and globally. Thanks though, desm0n.
Anyone else have any ideas?
ok, figured it out.
At the bottom of http://drupal.org/node/65996 I found the fix.
Apparently you ahve to go to admin > themes > global > Display post information on
and enable "the submitted by Username on date text when displaying posts of the following type". Note that this setting doesn't mention user pictures. Yet it works.
In this case, I had to turn "blog" on.
This kind of doesn't make sense at all and I hope is resolved in future version. I'd contribute, but I don't know how to do that yet and am short on time.