Unable to use Submitted By Module for Artist C01

brisath - June 17, 2009 - 06:19
Project:Artists C01
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I want to use the Submitted By module but it doesn't seem to work due to the way this theme handles $submitted.

See the thread here: Submitted by changes have no effect, theme problem?

Is there a way we can get this to work for this theme? It would be much appreciated. Thanks.

#1

NancyDru - July 10, 2009 - 17:52

For ArtistsC01, go to node.tpl.php and change

    <?php if ($submitted): ?>
      <span class="submitted"><?php print t('Submitted by !username on !date', array('!username' => theme('username', $node), '!date' => format_date($node->created))); ?></span>
    <?php endif; ?>

to

    <?php if ($submitted): ?>
      <span class="submitted"><?php print $submitted; ?></span>
    <?php endif; ?>

See how simple doing it right can get.

 
 

Drupal is a registered trademark of Dries Buytaert.