Synchronising user name and profile name

White Agency
White Agency
@white-agency
9 years ago
204 posts
Coming from Ning, each user will only have one profile per user account.

I need to have someway of synchronising the user name and profile name so that they only have to update it in one place.

I suspect this could be done through a custom module but not too sure where to start?

Would be good if we could do the same with the profile and account image as well.
updated by @white-agency: 07/25/15 02:06:43AM
michael
@michael
9 years ago
7,714 posts
Its going to be like that to start with. If from there then they change it to something else, then it will be different.

Sure you could make a module to update the profile image each time the user image was updated.
Or you could update the skin to use just the profile image or just the user image everywhere.

Seams like over-kill to block the small percentage of users who would change their profile/user name/image, but its an option.

If you wanted to go the module route, then Events and listeners on the profile update or user account update would be a place to start.

"Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/development/1011/events-and-listeners
White Agency
White Agency
@white-agency
9 years ago
204 posts
With the users coming from Ning they won't understand ( or be un-willing to understand ! ) why the profile and username can be different.

I've managed to get a module working though so when they update the username, it updates the profile name at the same time.

:)
michael
@michael
9 years ago
7,714 posts
Fantastic! Really great to hear somebody is making headway into module creation. Well done. :)

Tags