- Posts: 5
COMMUNITY FORUM
Written by username
- Sveinung Grytøyr
-
Topic Author
- Offline
- New Member
Much like this post btw, my username is Moraxxus, and i would like that to be displayed instead of my full name...
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Sveinung Grytøyr
-
Topic Author
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
<?php echo $item->author->username; ?>
<?php echo $this->item->author->username; ?>
depending on the context.
Please Log in or Create an account to join the conversation.
- Sveinung Grytøyr
-
Topic Author
- Offline
- New Member
- Posts: 5
Unfortunatley, I am to much of a noob to find the way to do the same for user comments. As far as I can see, it is already picked out to be userName. Am I in the wrong file, or is it another way to change the comment author?
Really appreciate it!
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Sveinung Grytøyr
-
Topic Author
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Sveinung Grytøyr
-
Topic Author
- Offline
- New Member
- Posts: 5
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Pocket Money Marketing
-
- Offline
- New Member
- Posts: 6
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:
or<?php echo $item->author->username; ?><?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.