Jump to content

Author Background for Secondary Groups


Recommended Posts

Posted

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  

Posted
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...