Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is there anyway to create an ID after someone registers

  • @aducale

    Participant

    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)
  • @henrywright-1

    Member

    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.

    @shanebp

    Moderator

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

    @henrywright-1

    Member

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

    @aducale

    Participant

    Everyone that registers would get a unique ID.

    Example

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

    @henrywright-1

    Member

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

    @aducale

    Participant

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

    @henrywright-1

    Member

    Uh?

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

    @aducale

    Participant

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

    @shanebp

    Moderator

    @henrywright-1 Solve that one !

    @henrywright-1

    Member

    @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