Orit Active member Jan 9, 2022 #1 Hello, How can I mention users in a HTML widget? Last edited: Jan 9, 2022
Orit Active member May 9, 2022 #2 Still looking for an easy way to mention users in a HTML widget apart from using href... @Brogan @Chris D anyone else?? Thanks! Upvote 0 Downvote
Still looking for an easy way to mention users in a HTML widget apart from using href... @Brogan @Chris D anyone else?? Thanks!
Orit Active member May 9, 2022 #3 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... Upvote 0 Downvote
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...
Jeremy P XenForo developer Staff member May 9, 2022 #4 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}) }} Upvote 0 Downvote
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}) }}
Orit Active member May 11, 2022 #5 Thank you so much! I used this option (it works great even with special characters) Jeremy P said: {{ username_link({'username': 'Username', 'user_id': 1}) }} Click to expand... Too bad there isn't an easier way Upvote 0 Downvote
Thank you so much! I used this option (it works great even with special characters) Jeremy P said: {{ username_link({'username': 'Username', 'user_id': 1}) }} Click to expand... Too bad there isn't an easier way