Can't get a "submitted by username" text on posts
scoobeee - May 2, 2007 - 17:47
| Project: | Garamond |
| Version: | 5.x-1.1 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
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.

#1
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?
#2
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.
#3
I think the $picture variable handles the avatar... is it in your template file?
#4
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?