By tdobbs on
Hi,
I would like to know how I can add the username to the recent comments or the recent blog entries section? I tried messing around with the blocks, but I couldnt figure it out and couldnt find anything searching the forum?
Thanks
Comments
Anyone know how to do this?
Anyone know how to do this? I would think it is a common thing that people want?
Here is a hack I just
Here is a hack I just created,
add [c.name] after c.timestamp on line 324 on modules/comment/comment.module file
also add [.' by '. $comment->name] at the end of line 395
------
GiorgosK
Geoland Web development/web design
------
GiorgosK
Web Development
Thanks. This works and is
Thanks. This works and is very useful!
Update for 7.0
In 7.0 you don't need the first change and you make the second (or something like it) to line 597. As changed, I have that line as
$items[] = l($comment->subject, 'comment/' . $comment->cid, array('fragment' => 'comment-' . $comment->cid)) .', by '. $comment->name .','. ' <span>' . t('@time ago', array('@time' => format_interval(REQUEST_TIME - $comment->changed))) . '</span>';