- Posts: 257
- Thank you received: 3
What is the file responsible for saving the "name" to the table "#_users"
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
4 years 1 month ago - 4 years 1 month ago #145318
by hide10
What is the file responsible for saving the "name" to the table "#_users" was created by hide10
Hello,
User data registered through Membership Pro is recorded in the column "name" in the table "#_users", too. This "name" is automatically saved as a combination of first_name + last_name.
I want to change the order when saving to "name" to be last_name + first_name.
(If possible, it would be ideal to have this specification only when the site language is selected as Japanese.)
Could you tell me what is the Membership Pro file responsible for saving the "name" to the table "#_users"?
Thanks
User data registered through Membership Pro is recorded in the column "name" in the table "#_users", too. This "name" is automatically saved as a combination of first_name + last_name.
I want to change the order when saving to "name" to be last_name + first_name.
(If possible, it would be ideal to have this specification only when the site language is selected as Japanese.)
Could you tell me what is the Membership Pro file responsible for saving the "name" to the table "#_users"?
Thanks
Last edit: 4 years 1 month ago by hide10.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
4 years 1 month ago #145319
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic What is the file responsible for saving the "name" to the table "#_users"
Hello
It's saveRegistration method in components/com_osmembership/helper/helper.php
Regards,
Tuan
It's saveRegistration method in components/com_osmembership/helper/helper.php
Regards,
Tuan
The following user(s) said Thank You: hide10
Please Log in or Create an account to join the conversation.
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 3
4 years 1 month ago #145320
by hide10
Replied by hide10 on topic What is the file responsible for saving the "name" to the table "#_users"
Hello,
I found that I could achieve my goal by changing the following:
(line: 3339)
Thank you so much!
I found that I could achieve my goal by changing the following:
Code:
$userData['name'] = trim($data['first_name'] . ' ' . $data['last_name']);
Thank you so much!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
4 years 1 month ago #145321
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic What is the file responsible for saving the "name" to the table "#_users"
Yes, that's right. Unfortunately, that could not be made using override, so you would need to redo the change each time you update
I will see if I can make it simpler to override the change for the next release
Tuan
I will see if I can make it simpler to override the change for the next release
Tuan
Please Log in or Create an account to join the conversation.
- hide10
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 257
- Thank you received: 3
4 years 1 month ago #145322
by hide10
Replied by hide10 on topic What is the file responsible for saving the "name" to the table "#_users"
Thank you for your quick and kind response! (
)/

Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
4 years 1 month ago #145323
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic What is the file responsible for saving the "name" to the table "#_users"
Friendly extension developer, lol.
The following user(s) said Thank You: hide10
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.