adding Firstname and Lastname to the Profile details display

Post

Posted
Rating:
#7206 (In Topic #2011)
Avatar
Standard member
cwdean is in the usergroup ‘Well-settled’
Hopefully this is a simple question, but I'm wondering how to make the Firstname and Lastname display in the details section of a member's Profile.  The reason I ask is that members can specify their own username, and sometimes the username is vague enough that I cannot tell who that individual is.  If I could easily see the member's Firstname and Lastname on their Profile details that would be extremely helpful.  Is this possible?  And if so, how?

Thanks in advance for your help!

Best,
Christopher
 
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#7210
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Hi,

Browse to Admin Zone→ Setup→ Configuration→ User/usergroup options and enable the first and last name Special CPF's. Then scroll down a bit and add the ID's for those fields into the Display name generator. On my install first name is 35 and last name is 36 so these are the ID's I would need to use. You can check the ID's on your install at Admin Zone→ Tools→ Members→ Custom Profile Fields by selecting edit and viewing the existing field ID's.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#7212
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Adam gave a good answer. They are masked out by default until that config checkbox is enabled.

I don't think you need to do the display name bit if you just want them showing individually on your profile.

Edit: I just tested it. Users with the shopping cart addon installed (i.e. a default install which has that) don't need to enable it, but otherwise you do need to enable the checkbox. Otherwise you can't even edit that CPF. The way Composr works in this regard is there are various bundled standardised CPFs, but they only get enabled if something installed needs them or sometimes there's a checkbox to manually unmask them to make them show.

Last edit: by Chris Graham



Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7214
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
Ahh yes, I have no idea why I mentioned the Display name generator. A step too far, but hopefully useful information for anyone who wants to use First/Last name or some other CPF to replace the username :)
Online now: No Back to the top

Post

Posted
Rating:
#7215
Avatar
Standard member
cwdean is in the usergroup ‘Well-settled’

Adam said

Hi,

Browse to Admin Zone→ Setup→ Configuration→ User/usergroup options and enable the first and last name Special CPF's. Then scroll down a bit and add the ID's for those fields into the Display name generator. On my install first name is 35 and last name is 36 so these are the ID's I would need to use. You can check the ID's on your install at Admin Zone→ Tools→ Members→ Custom Profile Fields by selecting edit and viewing the existing field ID's.

Thanks Adam!  I actually already have the CPF's enabled for Firstname and Lastname.  I saw the 'Display name generator' field but didn't know how to find the field ID's.  So thanks for that tip!  Unfortunately, when I go to Custom Profile Fields and select edit to find the field ID, I'm not seeing it.  Here is a screenshot of what I am seeing:
edit_custom_field.jpg
I don't think the Order field is the FieldID, but I'm not seeing FieldID anywhere.  This screenshot is for FirstName.
 Thoughts?
Online now: No Back to the top

Post

Posted
Rating:
#7216
Avatar
Standard member
cwdean is in the usergroup ‘Well-settled’

Chris Graham said

Adam gave a good answer. They are masked out by default until that config checkbox is enabled.

I don't think you need to do the display name bit if you just want them showing individually on your profile.

Edit: I just tested it. Users with the shopping cart addon installed (i.e. a default install which has that) don't need to enable it, but otherwise you do need to enable the checkbox. Otherwise you can't even edit that CPF. The way Composr works in this regard is there are various bundled standardised CPFs, but they only get enabled if something installed needs them or sometimes there's a checkbox to manually unmask them to make them show.

Thanks Chris.  I do want to show individually on my profile…and to do so you do need to edit the CPF and enable Owner Viewable and Publicly Viewable (which both were not set).  Adam's response pointed me in the right direction  :thumbs:

Please see my previous response to Adam's post as I am having trouble finding the field ID's in order to take advantage of the Display name generator.
Online now: No Back to the top

Post

Posted
Rating:
#7217
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
It's in the URL (address bar) of the edit screen.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#7220
Avatar
Standard member
cwdean is in the usergroup ‘Well-settled’

Chris Graham said

It's in the URL (address bar) of the edit screen.

Thanks Chris.  I suspected that and therefore I looked, and this is what I saw:
url1.jpg
However, for other folks that may not have thought to 'click inside the address bar', or perhaps this is specific behavior to certain browsers (I'm using Chrome) — you may need to click inside the address bar in order to see the full URL:
url2.jpg
 :)
Online now: No Back to the top

Post

Posted
Rating:
#7222
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
I think the Order ID is the Field ID. I've never checked the URL for it, always check the CPF edit screen and use the Order ID (which I thought was called Field ID so sorry for the confusion).
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#7223
Avatar
Standard member
cwdean is in the usergroup ‘Well-settled’

Adam said

I think the Order ID is the Field ID. I've never checked the URL for it, always check the CPF edit screen and use the Order ID (which I thought was called Field ID so sorry for the confusion).

Actually it turns out the Field ID is what is specified in the address bar.  The Order ID appears to be something else.  I did try the Order ID initially thinking the same as you, that perhaps the Order ID is the Field ID but when saving and going to my home page the username appeared as "{24} {25}"…so definitely wasn't working.  Once I switched to the Field ID as specified in the address bar it did work  :)

Thanks again for the help!
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,055 topics, 7,197 posts, 10,875 members
  • Our newest member is TobertHanz
Back to Top