XF 2.1 Displaying user ID

  • Thread starter Thread starter Deleted member 184953
  • Start date Start date
D

Deleted member 184953

Guest
Hello,
Is it possible to display in front page the user ID ?
I would like to display the user ID in widget_visitor_panel template, as the ID will become the member card number :)
Thanks !
 
Like this?
199038

If so, edit template account_visitor_menu

Find:
HTML:
<!--[XF:stats_pairs:above_messages]-->

Add directly below:
HTML:
<dl class="pairs pairs--justified fauxBlockLink">
                        <dt>{{ phrase('user_id') }}</dt>
                        <dd>
                            <span>{{ $xf.visitor.user_id }}</span>
                        </dd>
                    </dl>

This will also show in the user menu drop down.
199039
 
You are awesome !
I wanted to use user ID in visitor_panel_widget as ID is the number of member card user, like this :

Capture d’écran 2019-03-27 à 16.28.34.webp

Thank you very much @Steve F (y)
 
This is great, how can I display it on below of the 'Well-known member' (kindly refer to the attached screenshot)?

Screen Shot 2020-04-23 at 3.46.02 PM.webp

Cheers
 
Back
Top Bottom