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.
I'm trying to customize <p class="comment-submitted"><?php print $submitted;
to remove some parts that I don't need.
I used the line
<span class="submitted"><?php print t('Submitted by !username on !datetime', array('!username' => $name, '!datetime' => $date));
from this post http://drupal.org/node/1244912#comment-4849422. But I only got "Submitted by on", the username and date didn't show.
Also how do I print the permalink? Thanks!
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedIn AT this is handled in preprocess, add this to template.php and clear the cache. Thereafter you can add/remove bits as needed.
Comment #2
giorgio79 CreditAttribution: giorgio79 commentedOr this http://drupal.org/project/submitted_by
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedDid you test that module with this theme?
Comment #4
giorgio79 CreditAttribution: giorgio79 commentedNot yet. The module says we need to make sure we have "theme('node_submitted')"
Comment #5
fehin CreditAttribution: fehin commentedThanks Jeff. I got it to work.