Ascendum Gaming Posted May 28, 2016 Share 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 Link to comment Share on other sites More sharing options...
Ascendum Gaming Posted May 28, 2016 Author Share Posted May 28, 2016 Halp! Anyone? D: Link to comment Share on other sites More sharing options...
Ahmad E. Posted May 28, 2016 Share 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. Link to comment Share on other sites More sharing options...
Ascendum Gaming Posted May 28, 2016 Author Share 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.