I'm using your theme on a community-page and I activated to show the users picture in articles.
But if they are active the text they write begins after the picture.

I search the complete css and node tpl code but this seems fine.

If you want to have a look please tell me.

I've updates all modules and the theme to the latest build also with drupal core.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DonnyCarette’s picture

Hi,

How would you like to have it, maybe i can clean it up in a later release? Most themes seems to have it like it is now.
The text around the image will need some custom work, the user picture and content are in different divs.
You can replace the content part in node.tpl.php with the following. Just render the content without the divs.

<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>">
  <?php if($display_submitted && !$page): ?>
    <div class="date">
      <div class="textdate">
        <div class="day"><?php print format_date($created, 'custom', 'j'); ?></div>
        <div class="month"><?php print format_date($created, 'custom', 'M'); ?></div>
      </div>
    </div>
  <?php endif; ?>
	<?php print render($title_prefix); ?>
  <?php if (!$page): ?>
    <h2 class="title"<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
  <?php endif; ?>
	<?php print render($title_suffix); ?>

  <?php if ($display_submitted): ?>
    <div class="meta">
      <span class="submitted"><?php print t('Submitted by !username on !datetime', array('!username' => $name, '!datetime' => $date)); ?></span>
    </div>
  <?php endif; ?>
  <?php if($user_picture): print $user_picture; endif; ?>
  <div class="content clear-block"<?php print $content_attributes; ?>>
    <?php
      print render($content['body'][0]['#markup']);
      hide($content['body']);
      hide($content['comments']);
      hide($content['links']);
      print render($content);
    ?>
  </div>
  <?php if($content['links']): ?><div class="node-links"><?php print render($content['links']); ?></div><?php endif; ?>
</div>
<?php print render($content['comments']); ?>

Metzgermeister’s picture

FileSize
31.88 KB

Hi Donny,
wow this is way much better with the new code.
Thank you very much.

I added you a the other users a pic of the new view.

Anuin’s picture

Hi Donny,

I've the same issue, that the in combination with "Advaned Forum" content text will be rendered below the user-picture. And the suggested solution doesn't work for me.

If I put some other style.css (in this case from the theme "Blue lagoon") in the "kenji"-theme-folder, replacing the original "kenji"-style.css, the text will be rendered beside the user-picture (despite having a bad layout).

I have inspected the Styles from "Kanji" and for comparison from "Blue Lagoon" with Firefox/Tools/Web Developer/Inspect and Firebug and don't see what the difference is.

Style for the module "Advanced Forum" is both times "silver bells".

Kind regards,
Georg

Anuin’s picture

[very carefully] . . . ping? . . .

DonnyCarette’s picture

Status: Active » Needs review

Can you please try the latest dev version: 7.x-3.x-dev

Anuin’s picture

Title: Article texts begin below user picture » Article texts begin below user picture (fixed in -dev)
Version: 7.x-3.3 » 7.x-3.x-dev
Assigned: Metzgermeister » Unassigned
Status: Needs review » Fixed

Yes! :) Thanks Donny. (Don't ask me why I didn't think of trying the dev version.)

DonnyCarette’s picture

Probably because there was no dev version before :)
This dev release contains multiple fixes for some issues and i want to make sure everything is ok before adding a new official release

Status: Fixed » Closed (fixed)

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