By Pawan on Thursday, 06 March 2014
Posted in Technical Issues
Likes 0
Views 1.2K
Votes 0
I have two user groups: (i) Lawyers and (ii) Non-lawyers.

My requirement is that when a Lawyer logs in, the 'Unswered' filter tab should be 'active' on 'page load'.

Can you please give me an if-them php statement for this. something like: if ($gid=='11') { load unswered active }

plesae help.
Hello Pawan,

Please replace the attached file ( frontpage.index.filters.php ) in ../components/com_easydiscuss/themes/simplistic/frontpage.index.filters.php. The if-else statement is at line 23. Hope this helps.
·
Thursday, 06 March 2014 16:57
·
0 Likes
·
0 Votes
·
0 Comments
·
I replaced your file in my local host. But it didn't work.
It still loads all posts. Plus it shows css issues on tab. see attachment.

I tried this code: if $ gid == '11' then $ activeFilter = 'unanswered'
it makes the unanswered tab active, but loads posts from 'all posts ' only.
·
Thursday, 06 March 2014 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Pawan,

Sorry, please replace this file instead.
·
Thursday, 06 March 2014 18:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

it makes the unanswered tab active, but loads posts from 'all posts ' only.
Does not load 'unanswered' posts.
·
Thursday, 06 March 2014 18:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Pawan,

Sorry to say, I've re-checked the code and seems like it is not possible to load by usergroup as it will affect other file.
·
Thursday, 06 March 2014 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
could you please add it in the feature list for next version.
·
Thursday, 06 March 2014 21:03
·
0 Likes
·
0 Votes
·
0 Comments
·
We'll consider this Pawan but no guarantee at this point of time
·
Thursday, 06 March 2014 22:58
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post