Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Ascendum Gaming Posted May 28, 2016 Posted May 28, 2016 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
Ahmad E. Posted May 28, 2016 Posted May 28, 2016 {{if $comment->author()->inGroup( array(1,2,3) )}}<li class='AdminPostbitBG'></li>{{endif}} Where 1,2,3 are group ids. Untested but should work.
Ascendum Gaming Posted May 28, 2016 Author Posted May 28, 2016 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.