UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline
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.
The replies under this section are restricted to logged in users or users with an active subscription with us