Not sure if this should be in submitted_by queue or in the theme's queue.

I have a case where the subbitted_by value doesn't seem to be replacing the original authorship information. I'm not sure, but submitted_by project page suggests this may be caused by the theme not properly honoring theme('node_submitted').

Using the Omega Kickstart theme from a Commerce Kickstart 2.0 stable installation.

Attached is a screenshot.

Links:
http://drupal.org/project/omega_kickstart
http://drupal.org/project/commerce_kickstart
http://drupal.org/project/submitted_by

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NancyDru’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried the latest -dev release? I ran into a similar problem and thought I had fixed it.

silkogelman’s picture

I tried submitted_by 7.x-1.x-dev (2012-Dec-18) - is there another one?

Update: applying Omega 7.x-3.x-dev (2012-Apr-10) doesn't seem to solve this. (omega_kickstart's dev currently equals 7.x-3.0)

What extra info do you need?

Current Commerce Kickstart Drupal version = 7.18.
I've tested with a 'clean' Drupal core 7.19 install on the same server (same browser) and that works fine.
I'll test with 7.19 in Commerce Kickstart too, just to make sure.

NancyDru’s picture

That's the right one (http://drupalcode.org/project/submitted_by.git/commit/a919207).

Could you post the node.tpl.php file here, please?

silkogelman’s picture

Node.tpl.php

<article<?php print $attributes; ?>>
  <?php print $user_picture; ?>
  <?php print render($title_prefix); ?>
  <?php if (!$page && $title): ?>
  <header>
    <h2<?php print $title_attributes; ?>><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
  </header>
  <?php endif; ?>
  <?php print render($title_suffix); ?>
  <?php if ($display_submitted): ?>
  <footer class="submitted"><?php print $date; ?> - <?php print $name; ?></footer>
  <?php endif; ?>  
  
  <div<?php print $content_attributes; ?>>
    <?php
      // We hide the comments and links now so that we can render them later.
      hide($content['comments']);
      hide($content['links']);
      print render($content);
    ?>
  </div>
  
  <div class="clearfix">
    <?php if (!empty($content['links'])): ?>
      <nav class="links node-links clearfix"><?php print render($content['links']); ?></nav>
    <?php endif; ?>

    <?php print render($content['comments']); ?>
  </div>
</article>

and node--blog_post.tpl.php:

<article<?php print $attributes; ?>>
  <?php print $user_picture; ?>
  <?php print render($title_prefix); ?>
  <?php if (!$page && $title): ?>
  <header>
    <h2<?php print $title_attributes; ?>><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
  </header>
  <?php endif; ?>
  <?php print render($title_suffix); ?>
  <?php if ($display_submitted): ?>
  <footer class="submitted"><?php print t('By'); ?> <?php print $name; ?>, <?php print $date; ?></footer>
  <?php endif; ?>

  <div<?php print $content_attributes; ?>>
    <?php
      // We hide the comments and links now so that we can render them later.
      hide($content['comments']);
      hide($content['links']);
      print render($content);
    ?>
  </div>

  <div class="clearfix">
    <?php if (!empty($content['links'])): ?>
      <nav class="links node-links clearfix"><?php print render($content['links']); ?></nav>
    <?php endif; ?>

    <?php print render($content['comments']); ?>
  </div>
</article>
NancyDru’s picture

Project: Submitted By » Omega Kickstart
Version: 7.x-1.x-dev » 7.x-3.x-dev
Status: Postponed (maintainer needs more info) » Active

Ah, your theme is doing it really wrong. It is not even using the $submitted value; it's just computing its own value. This is definitely a theme issue and needs to reflect core function.

jsacksick’s picture

Status: Active » Fixed
FileSize
1.6 KB

A fix has been pushed to dev (See attached patch).

Status: Fixed » Closed (fixed)

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