Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+8 votes
553 views
in Q2A Core by
edited by
1. open qa-page-user.php (from v1.6.3 it is file: qa-page-user-profile.php)

2. After line:

            qa_lang_sub($favorite ? 'main/remove_x_favorites' : 'users/add_user_x_favorites', $handle));

Insert:

    // output userid on user profile page
    $userIdOutput = '';
    if($loginlevel>=QA_USER_LEVEL_ADMIN) {
        $userIdOutput = ' → UserID: '.$userid;
    }
 

3. Then change line:

   'label' => qa_lang_html('users/member_type'),

to:

    'label' => qa_lang_html('users/member_type').$userIdOutput,

4. Check and go to any of your user-profiles. You need to be admin!
Q2A version: 1.5.4

1 Answer

0 votes
by
Excellent recomendation!

Works great as well in 1.6.1

Just the filename changed to qa-page-user-profile.php

Thanks
by
nice that you like it :-)
by
I needed the userid of the actual profile to show a list of the users favorites.
And there was no elegant way (as far as I know) to get the users id.
Really great and simple...
...