ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Display User's First & Last name instead of Username

April 16, 2011 2:01pm

Subscribe [4]
  • #1 / Apr 16, 2011 2:01pm

    Deep Arora

    153 posts

    I’m storing user’s email address in username field, so I need to display user’s first & last name everywhere in the profile, forum etc..

    So how to do that? Do I need to modify all the templates? or is there an easy option to display first name instead of username?

  • #2 / Apr 16, 2011 2:50pm

    Mark Bowen

    12637 posts

    Hiya,

    By default ExpressionEngine doesn’t come with a first name or last name fields. How do you have this information stored? If you don’t have that information stored then you will need to first create two custom member profile fields to store the information and then get all your users to fill it out.

    Once you have the information though you will be able to use it in templates using the Custom Profile Fields Tag or perhaps a SQL query depending on where you need to spit out the information.

    Best wishes,

    Mark

  • #3 / Apr 16, 2011 3:13pm

    Deep Arora

    153 posts

    Sorry, my question is if I store the F & L names in custom fields I can show them in a template..that’s fine..but EE shows username everywhere by default - forum profiles, member profile areas…so is there a way to show these custom fields without having to modify lot of templates?

    Or better question - can screen name be a non-unique field? We already have username to identify user, why we need screen name to be unique? If this can be non-unique, I can use this field to enter first name (which can be same for many users).

  • #4 / Apr 16, 2011 10:33pm

    giusi

    94 posts

    Try give a look to Name Wrangler .
    Not sure if it fits your needs but maybe it can help you.

  • #5 / Apr 18, 2011 4:02am

    John Henry Donovan

    12339 posts

    giusi,

    so is there a way to show these custom fields without having to modify lot of templates?

    No unfortunately as they are unique custom fields you need to update templates manually

    I haven’t checked out the suggested add-on but what I do sometimes with member sites is create a first and last name member field like you have and at time of registration have the screen name a hidden field but have it populated by the values of first and last name at submission. Would that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases