How to change User Name with the Real Name ?

More
8 years 10 months ago #28767 by La Jicara
Hello friends
I have installed the component with no problems and works well
I would like to use the real name and not the username.
How to make the change?
Thank you for your attention..
Attachments:

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

More
8 years 10 months ago - 8 years 10 months ago #28768 by nordmograph
Hi Mig,

Feel free to leave a review at the JED if you like the extension and support.
extensions.joomla.org/extensions/extensi...aylists-and-podcasts

For your request, Open
components/com_myplayer/views/player/tmpl/default.php
on lines 52 & 56
replace
Code:
JFactory::getUser($userid)->username
by
Code:
JFactory::getUser($userid)->name

There might be other places where you want to edit, depending on if you use Jomsocial, CB or Easysocial integrations and Activity Streams. Let me know.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
Last edit: 8 years 10 months ago by nordmograph.

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

More
8 years 10 months ago #28777 by La Jicara
Thanks for your quick response.
I've made the changes in the code,
but I think I'll have to make other changes because I use EasySocial.
'If you teach me I follow you'
Nice day

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

More
8 years 10 months ago #28779 by nordmograph
Did it work yet ?
Well the other places where you could want to see that change would be the easysocial profile app and activity stream.
Can you confirm?

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

Time to create page: 0.325 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.