By Alexandre Cayer on Wednesday, 18 June 2014
Posted in Technical Issues
Replies 15
Likes 0
Views 1.1K
Votes 0
Hi Guys,

My ES Groups are all in Invite only. When I want to publish a Module (
EasySocial Group Categories ) to es-dashboard-sidebar-bottom position, it doesn't show nothing since all my groups are invite only. Could you provide me a fix ????
At the end of the day, this is quite similar to a "MY GROUP" module...

Thanks

Alex
Hello Alexandre Cayer,

Sorry for late reply to this,
By default, when you set the group type in "invite only group", then it will not show out in the module, but it will show in your "My group" filter there.
·
Wednesday, 18 June 2014 13:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Arlex,

I don't let the user acces the Group tab properly speaking since I don't want them to have access to others' group.
I would want to see if its feasible to have a "My Group" Module, done through a template override with the current Module available in 1.2...
Any code ?

Alex
·
Wednesday, 18 June 2014 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

Sorry but I am a little lost here. The group categories module simply displays the categories available for the groups and because the groups are "invite only", they won't be able to see any groups. Do you mean you still want to display the categories despite the fact that they cannot see any groups? That is pretty bad don't you think?

If you really need to modify this, edit the file /modules/mod_easysocial_groups_categories/helper.php and at line 29 locate the codes below,


$options[ 'state' ] = SOCIAL_STATE_PUBLISHED;


Replace it with,


$options[ 'state' ] = "all";
·
Thursday, 19 June 2014 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

I would want it to dispay Group that are visible AND those not visible IF the current user is a member of that not visible group.

A "My Group" for the current user would be a better idea but I haven't find such, therefore the request for such hack.

Sorry if it wasn't that clear. I wouldn't want these not visible group to become visual in general.

Let me know,

Alex
·
Friday, 20 June 2014 13:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

Hm, sorry but are you referring to the recent groups module or the group categories module here?
·
Friday, 20 June 2014 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Here is what I'm doing:

1) All my created groups will be Invite only.
2) I have publish Module Manager: Module mod_easysocial_groups to sidebar bottom.
3) Since they are all private nothing shall show BUT i was thinking that it will at least display the non-visible group that the current user is a member of.
4) options were: Display Members Counter= no, Display Category=no, # of Groups to Display=5

Therefore, I was thinking that this would achieve the publication of the first five group the current user is a member of since all others are private and not visible.

My whole thinking was just to create a "current-user-registered-group" module. Any other way to achieve such would be welcome.

Alex
·
Friday, 20 June 2014 20:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

Ah, I see. I get where you are heading on now. In short this module would also serve as a "My Groups" module?
·
Saturday, 21 June 2014 00:54
·
0 Likes
·
0 Votes
·
0 Comments
·
with a little bit a customization, yes.
Right now, that should provide the option to see MY GROUP when all groups are invite only.

However, I have tried the code you gave me. at helper:
$options[ 'state' ] = "all";
//$options[ 'state' ] = SOCIAL_STATE_PUBLISHED;

Didn't work! Any guess why ?
It does print a public group but doesn't print the INVITED ONLY GROUP...

At the end of the day, providing a MY GROUP module would be easier i suppose lollll
·
Monday, 23 June 2014 13:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

The codes that I provided above would actually display all groups on the site actually but what you are looking for is like a 'My Groups' module?
·
Monday, 23 June 2014 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes

I was trying to make it work but it is not working.
Would need to have a module like this one which would display all Groups for current user.

If i wanted to display such, how could I change the helper to display only the groups (including invite only) the current user is a member of.

Thanks
·
Monday, 23 June 2014 23:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

I am sorry but we don't actually have such a module currently I'll add this as a feature request.
·
Monday, 23 June 2014 23:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

I could probably do it by myself since module is sorta the easiest dev for joomla but I would need some sort of API of dev guide on the structure class of the program.
Does anything exist ?

Thanks
·
Tuesday, 24 June 2014 01:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre,

You want to take a look at the group's model file and you can load up the model like this,


<?php
$model = Foundry::model('Groups');


You can call the methods in the group's model
·
Tuesday, 24 June 2014 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark,

here would be my demo. check attachment.
Works for me.

Alex
·
Tuesday, 24 June 2014 11:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alexandre Cayer,

Thanks for kindly to share your demo here
·
Monday, 14 July 2014 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post