Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there anyway to create an ID after someone registers

  • Avatar of aducale
    aducale
    Participant

    @aducale

    I would the the person who registers to receive a unique numerical ID. So after they register the page would say something like “welcome, here is your challenge ID.” This would be something different than their username. Is this possible?

    Thanks!

    I am on WP version 3.6.1, BuddPress version 1.8.1

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of Henry
    Henry
    Participant

    @henrywright-1

    Each new member automatically gets assigned a numerical ID which you can use for this purpose.

    <?php echo bp_loggedin_user_id(); ?> will display it on screen for the user if they are logged in.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    >This would be something different than their username.

    You mean different than their user_id ?

    You can create anything you like, such as integer assigned to a user.
    How you create it, where you store it and how you use it will require knowledge of WP, BP, php and mysql.

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    @shanebp I think the OP just needs a unique numerical?

    Avatar of aducale
    aducale
    Participant

    @aducale

    Everyone that registers would get a unique ID.

    Example

    User 1 = 1001
    User 2 = 1002
    User 3 = 1003

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    @aducale OK. In that case <?php echo bp_loggedin_user_id(); ?> would work so long as the user is logged in when viewing the page.

    Avatar of aducale
    aducale
    Participant

    @aducale

    Thanks for trying to help. They wouldn’t be logged in yet because they haven’t registered.

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    Uh?

    So after they register the page would say something like ‘welcome, here is your challenge ID’

    Avatar of aducale
    aducale
    Participant

    @aducale

    Sorry for the confusion, but yes, that’s exactly what I would want.

    Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    @henrywright-1 Solve that one !

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    @shanebp lol. There must be a plugin out there somewhere :)

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.