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'; ?>
</span>

Tags: 
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 http://tinyurl.com/8a8nxno

We provide the most Shiny Drupal Bits & Pixels

Since Drupal 4.x