XF 2.2 Mention Users in HTML widget

In case it might help anyone, this is the HTML I have:
HTML:
<a href="https://www.prog.co.il/members/XXX/" class="username" data-user-id="XXX" data-xf-init="member-tooltip">members name</a>

I was hoping for a shorter way, if there is...
 
You could use BBCode:

HTML:
{{ bb_code('[USER=1]Username[/USER]', 'widget', $widget) }}

Or the username_link template function:

HTML:
{{ username_link({'username': 'Username', 'user_id': 1}) }}
 
Back
Top Bottom