Custom submitted by in tpl files

Here is a line of code to override Drupal's submitted by elements in node.tpl.php file.

<span class="submitted">
<?php print format_date($node->created, 'custom', "F d, Y");  print ' | ' . theme('username', $node); print ' | ' . $node->comment_count . ' Comments'; ?>

Drupal 6, Drupal Quick Tips, Drupal theming

Recent Comments

Forward by Dries Buytaert, Founder and Project Lead, Drupal; CTO Acquia.

Order now from:

Managing Expectations Podcast with DrupalEasy

Author Interview

We provide the most Shiny Drupal Bits & Pixels

Since Drupal 4.x