Skip to Content Skip to Menu

[#3678] update name when firstname or lastname is edited

  • comyoo
  • comyoo
  • OFFLINE
  • Posts: 87
  • Thanks: 1
  • Karma: 0
12 years 2 months ago - 12 years 2 months ago #209312 by comyoo
Hi,

We use the e-mailadress to login.
We use firstname and lastname on profile.

When someone edit his / her firstname of lastname, the new value is imported in the joomla 'name' field, so the name in the breadcrumbs and 'name' field when auto-update it in a form isn't correct anymore.

I think auto-actions can help me out, but not get the right configuration yet. Can you help me out. As attachment a screenshot of my auto-action rule.

Or is there another way to do this in default?
Attachments:
Last edit: 12 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
12 years 2 months ago #209317 by krileon
Name column in _user users is supposed to be a compilation of First Middle Last. Joomla doesn't have a first/middle/last, only CB does. It should update when any of CBs name fields change. Is this not the case?


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • comyoo
  • comyoo
  • OFFLINE
  • Posts: 87
  • Thanks: 1
  • Karma: 0
12 years 2 months ago #209384 by comyoo
when edit by example last name in backend (administrator) user manager from CB the 'name' is created from the firstname and lastname. But if you edit your firstname or lastname on profile on the frontend online the one you edited will be imported in the 'name' field.

I think I configured something wrong. But what?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
12 years 2 months ago #209395 by krileon
"name" is made up from "first middle last". That's working as intended. If you change first then it'll update name with the new first. Same applies for middle and last. Are you wanting to change "name" and "first" independently (separate from one another)? Don't understand why you need to, but anyway you can't.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • comyoo
  • comyoo
  • OFFLINE
  • Posts: 87
  • Thanks: 1
  • Karma: 0
12 years 2 months ago #209458 by comyoo
Hi,

I want the first and lastname to be putted together in the name field as intented. But something does go wrong.

When I frontend edit lastname or firstname with the ajax plugin enabled, only the one you change is put in the name field. And not both firstname and lastname is combined.

:unsure:
When I edit in backend it works fine.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
12 years 2 months ago #209471 by krileon
Profile edit also works fine? You always need to be specific from the beginning of your post. If I'd known it was ajax usage specifically it would've been significantly easier to review what is wrong. ;)

Editing individual name fields doesn't fire the reformat function. That's only done after a profile update so that'll need to be added to the ajax core fields plugin.

Was able to confirm as a bug and have created the below bug ticket for investigation.

forge.joomlapolis.com/issues/3678


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: comyoo

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

Moderators: beatnantkrileon
Powered by Kunena Forum