Tagged: user ID profile php
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
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.
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>’;
Just append your additional field code on the appropriate location.
You must be logged in to reply to this topic.