MyBB Community Forums
[How To?] Detect author's usergroup - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Detect author's usergroup (/thread-194287.html)



Detect author's usergroup - Hugop - 2016-06-17

What would be the best way to detect the author's usergroup on a thread/post?


RE: Detect author's usergroup - .m. - 2016-06-17

is it not already shown with the group image ?
anyway, {$usergroup['title']} in the postbit templates displays the group title of the post author
if group id (number) is required then {$post['usergroup']} can be used


RE: Detect author's usergroup - Hugop - 2016-06-17

(2016-06-17, 07:11 AM).m. Wrote: is it not already shown with the group image ?
anyway, {$usergroup['title']} in the postbit templates displays the group title of the post author
if group id (number) is required then {$post['usergroup']} can be used

Haha, I feel dumb now. Thank you, I owe you an unicorn.