Get user ID

Home Forums Pie-Register 2.0 Support Get user ID

This topic contains 3 replies, has 2 voices, and was last updated by  Hasnain Abbas 2 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4367

    Arturo Díaz
    Participant

    Hi!

    I am trying to get the user ID of each user to post it in it’s profile and use it to create a QR code. However, I have been looking around the php code and I can’t find how to do this.

    Just to be clear, I want my profile to be something like this:
    Username: username
    Email: email@mail.com
    ID: userID
    Other details: My details

    MyCreatedQRCodeWithID

    #4370

    Hasnain Abbas
    Keymaster

    Hello,

    there is no native way to add user ID or QR code on the profile page unless you penetrate the code. You will need to modify Classes >> profile_front.php and add the code around case “email” inside print_user_profile function.

    Thanks

    #4373

    Arturo Díaz
    Participant

    I guessed I had to add by code.

    I managed to show the ID instead of the email, having something like this:
    ————————————————————-
    | User email: | user_id_I_managed_to_show |
    ————————————————————-

    I would like to add another box, similar to this, but not having to substitute the email for the ID:
    ————————————————————
    | User email: | user_email |
    ————————————————————
    | User ID: | user_id_I_managed_to_show |
    ————————————————————

    Any ideas? Right now I have this case ’email’:

    case ’email’ :
    $data .= ‘<tr><td class=”fields fields2″>’.$this->addLabel();
    $data .= ‘</td><td class=”fields”><span>’.$this->user->data->ID.'</span></td></tr>’;
    break;

    • This reply was modified 2 years, 8 months ago by  Arturo Díaz.
    • This reply was modified 2 years, 8 months ago by  Arturo Díaz.
    #4379

    Hasnain Abbas
    Keymaster

    Just append your additional field code on the appropriate location.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.