Skip to:
Content
Pages
Categories
Search
Top
Bottom

Check if User is Member of specific Group in Activities Loop


  • Seraph-Design
    Member

    @benjaminschulz

    I’m trying to figure out how to check if a User is Member of a specific Group while beeing in the Activities Loop.

    I query the recent activities of a group and want to display an icon if the User who has posted the activity is member of the group with the id “3” or slug “specialgroup”. Currently there is a “ with a nested “ which is working fine. But getting the groupslugs and or groupids for the current activity user (`$activity_userid = $activities_template->activity->user_id; `) is a problem for me.

    Thanks for help, i’m searching for hours now just to figure this out without any success.

  • The topic ‘Check if User is Member of specific Group in Activities Loop’ is closed to new replies.
Skip to toolbar