By Marc on Monday, 19 June 2017
Posted in Technical Issues
Replies 3
Likes 0
Views 509
Votes 0
Hi there,
For a number of reasons (such as FB integration) I want to change my Easysocial setup from using username to realname as the default profile name.
However, to achieve this I need to replace all of the existing realnames with the current usernames
(This is to ensure users don't see any difference on profiles when they log in)

Can I do this with in the database a simple SQL statement to update the "_user" table
Or are there other things I need to consider first (such as the easysocial alias) or other Easysocial fields which would be affected by the change?
Actually you can change the user name format to real name from backend Easysocial setting, you can check my attached screenshot below.

Hope this will help.
·
Monday, 19 June 2017 22:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, thats what I plan to do.
However, for the existing members, the names and usernames fields have different data in then.
For example, a profile name might be John, but the username is Big Mac.
Everyone knows this user by the name of Big Mac, they are friends with Big Mac etc They don't know that John is actually Big Mac. So before making the change, I need to make sure that the name field is updated with the current username.

I can do a simple update on the Joomla _users table and copy the data from the username to the name field, just replacing the current name information (its not currently used for anything)

What I'm concerned with is what impact this will have on EasySocial.
Will I also have to update the alias field? or any other EasySocial table?
What about the short URL addon?
·
Monday, 19 June 2017 23:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually that is quite difficult to use SQL to update username into user full name custom field, you can check my attached screenshot below.

It involved 2 tables :
- #__social_users (user alias)
- #__social_fields_data (user full name custom field data)
·
Tuesday, 20 June 2017 12:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post