By Alex Lee on Tuesday, 18 October 2016
Posted in General Issues
Replies 9
Likes 0
Views 193
Votes 0
Hey Hey,

i'm looking to modify how the groups notifications work i need to get all members of a certain group to get a notification that there has been a new reply to a discussion even if they are not part of that discussion

Do you know what files are responsible for that?

best
hey Alex,

Correct me if I getting wrong your meaning here, do you mean you would like to notify all the group member when someone reply on the group discussion?

You mean the group discussion is Easysocial group discussion or Easydiscuss group discussion?
·
Tuesday, 18 October 2016 18:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Easy Social Group discussions, same thing i did for easyDiscuss but this time i need to do it for Groups in EasySocial now also
·
Tuesday, 18 October 2016 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
You can take a look this following file location the way group member submit a new discussion from the group, it will notify to all group members.

JoomlaFolder\media\com_easysocial\apps\group\discussions\controllers\discussion.php (you can refer on my attached first screenshot below.)

That "notifyMembers" function is located this file ->
JoomlaFolder\administrator\components\com_easysocial\includes\group\group.php

From the reply section, it will calling this file ->
JoomlaFolder\media\com_easysocial\apps\group\discussions\controllers\reply.php

(you can refer on my attached second screenshot below.)
·
Tuesday, 18 October 2016 18:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
where can i get the id's of each members who are member of a group???Please let me the file and functions from where i can get this??
·
Wednesday, 19 October 2016 20:22
·
0 Likes
·
0 Votes
·
0 Comments
·
In the reply section
JoomlaFolder\media\com_easysocial\apps\group\discussions\controllers\reply.php
i am passing
$options[ 'targets' ] = $discussion->getParticipants( array( $discussion->id ) );
instead of
$options[ 'targets' ] = $discussion->getParticipants( array( $reply->created_by ) );
still i am getting only the 2 user...1. who has owner of post and2. who has created the reply
that's why these 2 are getting the emails notifications only, while i want to send notification to all members of that particular grop. Please let me know the solution for it...
Thanks.
·
Thursday, 20 October 2016 14:24
·
0 Likes
·
0 Votes
·
0 Comments
·

Hello,
where can i get the id's of each members who are member of a group???Please let me the file and functions from where i can get this??

You can use following code to get each members from the group.

$model = ES::model('Groups');
$users = $model->getMembers($group->id, $options);




In the reply section
JoomlaFolder\media\com_easysocial\apps\group\discussions\controllers\reply.php
i am passing
$options[ 'targets' ] = $discussion->getParticipants( array( $discussion->id ) );
instead of
$options[ 'targets' ] = $discussion->getParticipants( array( $reply->created_by ) );
still i am getting only the 2 user...1. who has owner of post and2. who has created the reply
that's why these 2 are getting the emails notifications only, while i want to send notification to all members of that particular grop. Please let me know the solution for it...
Thanks.

I believe I already did explained how the system work, try check again with my above reply and do some comparison with those group members submit question and reply code, if you didn't pass in the 'target' option, so it will just notify to all group member.

By the way, I am really sorry but unfortunately we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in http://stackideas.com/support

Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.
·
Thursday, 20 October 2016 18:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello ..
where i can find this function getContent() as it's written in In the reply section
JoomlaFolder\media\com_easysocial\apps\group\discussions\controllers\reply.php
"$reply->getContent();" under submit function.
Please let me know where i can find this....
·
Friday, 21 October 2016 14:14
·
0 Likes
·
0 Votes
·
0 Comments
·
That $reply variable defined from this following code, this function getContent() is coming from this file -> JoomlaFolder\administrator\components\com_easysocial\tables\discussion.php

$reply = FD::table( 'Discussion' );


Hope this help.
·
Friday, 21 October 2016 15:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post