My global settings for themes enable this feature but it will not work on Garamond. I switch to another theme and the username pops up on posts and teasers. The date will appear Garamond but the user's name/link to their profile will not show.

Comments

BradM’s picture

That's because the node.tpl.php file is missing the $submitted variable.

So if you change
<?php print (format_date($node->created)) ?>
To this
<?php print $submitted ?>
It will replace the current post date with the standard 'submitted by username on ...'

Although I kind of like how the date is reformatted here. Perhaps there's a way to glean the user name in a similar fashion, so it can by added elsewhere in the node?

lias’s picture

Would the lack of $submitted also affect whether user avatars / pictures are displayed in the theme? I can't seem to get them to show up even though I've enabled them in themes config. They do show up on user profile but that's handled by user module.

BradM’s picture

I think the $picture variable handles the avatar... is it in your template file?

vlooivlerke’s picture

I disabled a working "submitted by username" text on posts (blogs) and when i re-enabled it, my "submitted by username" text does not turn back on. I am using drupal 5.7, could this be a bug in the new update?