Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 28, 20168 yr So I was using this for the amazing work provided on this forum, it works amazing for PRIMARY groups, however I'd like to do it for Secondary Groups. Here is the code for Primary for Admins: {{if $comment->author()->member_group_id == '4'}}<li class='AdminPostbitBG'></li>{{endif}} Now how can I do it for Secondary? Please any help would be appreciated <3
May 28, 20168 yr {{if $comment->author()->inGroup( array(1,2,3) )}}<li class='AdminPostbitBG'></li>{{endif}} Where 1,2,3 are group ids. Untested but should work.
May 28, 20168 yr Author 1 hour ago, Ahmad E. said: {{if $comment->author()->inGroup( array(1,2,3) )}}<li class='AdminPostbitBG'></li>{{endif}} Where 1,2,3 are group ids. Untested but should work. You better have my children. You sexy beast ;-; It worked like a charm!
Archived
This topic is now archived and is closed to further replies.