Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there anyway to create an ID after someone registers

  • Profile photo 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)
  • Profile photo 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.

    Profile photo of shanebp
    shanebp
    Moderator

    @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.

    Profile photo of Henry
    Henry
    Participant

    @henrywright-1

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

    Profile photo of aducale
    aducale
    Participant

    @aducale

    Everyone that registers would get a unique ID.

    Example

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

    Profile photo 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.

    Profile photo of aducale
    aducale
    Participant

    @aducale

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

    Profile photo of Henry
    Henry
    Participant

    @henrywright-1

    Uh?

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

    Profile photo of aducale
    aducale
    Participant

    @aducale

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

    Profile photo of shanebp
    shanebp
    Moderator

    @shanebp

    @henrywright-1 Solve that one !

    Profile photo 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)
  • The topic ‘Is there anyway to create an ID after someone registers’ is closed to new replies.
Skip to toolbar