Hi how can i show the author name.. thanks

Comments

Anonymous’s picture

Currently you have to attach a text field for the user to fill the name.

bossmac’s picture

thanks :)

this is what i did..

<?php 
$user=user_load($reply->uid);
$username=$user->name;
?>
<div id="reply-<?php print $reply->id ?>" class="<?php print $classes ?>">

  <div class="reply-body"><?php print render($content) ?></div>
  <div>by : <?php echo $username; ?></div>
  <div class="reply-links"><?php print render($links) ?></div>

</div>
Anonymous’s picture

Use theme_username instead $username.

james.williams’s picture

Status: Active » Closed (works as designed)

Perhaps one day we could look at adding an author name field by default for node-replies, but for now, this requires no further work on the module.