In the previous version of ED , with your help I was able to customize to show the 'answered' filter active on page load for support group. This helps the support group to easily find the answered questions. But that customization does not work in the new version.
The Customization was done on the file : Components/com_easydiscuss/view/index/view.html.php
by finding the user group id and putting and making the Unanswered filter when certain ID was found.
$gid = $my->groups;
//8 is the group_id of superuser, 11 is for lawyer, 17 is for moderator
$lawyer ='11';
$superuser = '8';
$moderator= '17';
if (in_array($lawyer, $gid)){$filter='unanswered';}
if (in_array($moderator, $gid)){$filter='unanswered';}
Now in the latest version, the following code does not fetch the group id on the above specified file:
$gid = $my->groups;
My question is what shortest code should I use here to fetch user group id or array of the group ids.