February 2, 20215 yr Owner Sometimes you might want to control something based on member groups. One way to do this is to set a variable using JavaScript: In a template to use just the primary group: <script> var groupId = {expression="\IPS\Member::loggedIn()->member_group_id"}; </script> or for all group ids (comma-separated): <script> var groupIds = "{expression="implode( ',', \IPS\Member::loggedIn()->groups )"}"; </script> View full record
Sometimes you might want to control something based on member groups. One way to do this is to set a variable using JavaScript:
In a template to use just the primary group:
or for all group ids (comma-separated):
View full record