- This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by
Pie Register.
- AuthorPosts
- January 29, 2016 at 5:13 pm #10004367
Arturo DíazParticipantHi!
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
…
MyCreatedQRCodeWithIDFebruary 1, 2016 at 3:42 pm #10004370
Pie RegisterParticipantHello,
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
February 1, 2016 at 8:08 pm #10004373
Arturo DíazParticipantI 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;February 2, 2016 at 5:17 pm #10004379
Pie RegisterParticipantJust append your additional field code on the appropriate location.
Thanks
- AuthorPosts
- The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.
