View Full Version : How to get the usergroup of thread starter in forumdisplay?
Abhik
02-03-2012, 01:16 PM
How to get the usergroup of thread starter in forumdisplay??
This seems not working..
<vb:if condition="$threadinfo['postuserid'] == is_member_of($vbulletin->userinfo, 5,6,7)"></vb:if>
I think you might want:
<vb:if condition="is_member_of($threadinfo, 5,6,7)"></vb:if>
Abhik
02-03-2012, 06:18 PM
That's not working..
What I want to achieve is a different threadbit class for selected usergroups.
I can make it work with "postuserid" and put userids in an array.
<li class="<vb:if condition="in_array($thread[postuserid],array('1'))">altthreadbit<vb:else />threadbit</vb:if>
Is there any way to put usergroupids instead of userid in threadbit template?
I put in $threadinfo because you had that in the code you posted, but maybe $thread instead?
<vb:if condition="is_member_of($thread, 5,6,7)"></vb:if>
Abhik
02-04-2012, 03:54 AM
Awesome!! That 100% working.
Thanks Kevin.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.