Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Showcase Questions

Feedback and questions about sites in the Community Showcase.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Creating a First Name


Reply

6 Posts   1718 Views

Avatar
Denny

26 August 2010 at 10:07pm Community Member, 55 Posts

I am creating a website, and a new user will have to register to use it. Now, after signing up on the site, I want their first name to appear once logged in. How can I do this?

Avatar
Willr

26 August 2010 at 10:25pm Forum Moderator, 5511 Posts

You can access any of the fields of the currently logged in member by using $CurrentMember. To get the first name you can do $CurrentMember.FirstName. To see all the properties you can call on $CurrentMember look at the Member.php class.

Avatar
Denny

28 August 2010 at 12:14pm Community Member, 55 Posts

Thank you for your help. The information you provided was excellent.

Avatar
Denny

28 August 2010 at 12:50pm Community Member, 55 Posts

I was wondering how to create a first and last name?

Avatar
Willr

28 August 2010 at 1:07pm (Last edited: 28 August 2010 1:08pm), Forum Moderator, 5511 Posts

I was wondering how to create a first and last name?

Member has a Name function which returns the full name. $CurrentMember.Name

Avatar
Denny

29 August 2010 at 7:14am Community Member, 55 Posts

I want to thank you help. It works. I wouldn't be able to figure it out without your help.