Tagged: user ID profile php
- January 29, 2016 at 5:13 pm #4367
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:
Other details: My details
MyCreatedQRCodeWithIDFebruary 1, 2016 at 3:42 pm #4370
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.
ThanksFebruary 1, 2016 at 8:08 pm #4373
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;February 2, 2016 at 5:17 pm #4379
Just append your additional field code on the appropriate location.
You must be logged in to reply to this topic.