Here's another one you might to take a look at.
The comment section doesn't recognize user names, instead if says all comments were left by Anonymous.
This is trivial to fix. I'm not a Drupal pro so I don't know if my fix is done 'by the book' but seems to Work For Me (tm). There's at least one caveat lurking, though: my fix doesn't reveal if the comment was left by an anonymous user who just chose some name for him/herself, or if the comment was left by an actual registered user account.
---
function admire_grunge_comment_submitted($comment) {
return t('@day @datetime by !username',
array(
- '!username' => theme('username', $node),
+ '!username' => $comment->name,
---
Comments
Comment #1
thejaba CreditAttribution: thejaba commentedAdding the support for identifying anonymous/actually registered users was a snap, too :-)
---
function admire_grunge_comment_submitted($comment) {
+ if ($comment->pid == "0") {
+ $comment->name=$comment->name." (not verified)";
+ }
return t('@day @datetime by !username',
array(
- '!username' => theme('username', $node),
+ '!username' => $comment->name,
Comment #2
sakib000 CreditAttribution: sakib000 commentedfixed in new version.
Thanks to thjaba