Keyword

Written by username

  • Pocket Money Marketing
  • Pocket Money Marketing's Avatar
  • Offline
  • New Member
More
11 years 10 months ago #101915 by Pocket Money Marketing
Replied by Pocket Money Marketing on topic Re: Written by username

Lefteris Kavadas wrote: I also do not understand why you want to post by your username instead of your real name.... Anyway you can achieve what you want by making a template override and use the following code:

<?php echo $item->author->username; ?>
or
<?php echo $this->item->author->username; ?>

depending on the context.


Thanks for this. Could you please give an indication to which file this needs to be changed. I am surprised it is not an option in the global configuration? There are many people who do not wish to publish articles using their own names, especially if it on a local community site.

Regards
Mike

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum