Thanks, I haven't started on the query yet, are you thinking I need a join? I was thinking that I would try to do a select on user where userid = $thread[postuserid] and grab the usergroupid from there, like
Code:
$getUserGroup= $vbulletin->db->query_read("SELECT usergroupid FROM `user` WHERE `userid`= $thread[postuserid]);
then I will test for what usergroup and assign it to a $is_admin variable for example.
I only have 4 usergroups that I care about so it not that big of a problem. I would wrap the conditional around my display code:
HTML Code:
<if condition="$is_admin">
I got sidetracked with it because I was trying to use user conditions on a variable value test so it either selected all threads or none. So I am thinking that the thread starter is a variable I should be able to test for to find out what group they are in then add a title or image next to the name in the thread display.
I am thinking that the threadbit_display hook, should that be correct?
If you are thinking something different, I'd be glad to hear about it.
thanks, Michael