Get User ID Number

@halilesen · 19 Apr 2024 · 172 views
Post Reply
User avatar
halilesen
#1 ·
Posts: 38
Joined: 24 Mar 2024, 18:09
Full Name: Halil ESEN
Has liked: 3
Been liked: 1
When setting up the user schema data, I wanted to enter the user ID, but it was not possible by default display it on the profile pages. I solved it after a while.

To display user ID number in profiles, open /includes/functions_display.php file and find this line:

Code: Select all

'U_VIEW_PROFILE'	=> get_username_string('profile', $user_id, $username, $data['user_colour']),
Add after:

Code: Select all

'USERID'            => $data['user_id'],
Save it. Now code {USERID} gives the user number in text form. For example, the output for me is 2.
Post Reply
  • Similar Topics