By Philippe on Saturday, 28 July 2018
Posted in Technical Issues
Likes 0
Views 702
Votes 0
Hello,

Does there a way to set a Default Email Digest setting ?
And select Daily for all Groups.

Thank you
Philippe
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Unfortunately currently that was not possible to configure this, but you can modify on this file JoomlaFolder/administrator/components/com_easysocial/includes/cluster/cluster.php


$interval = '1'; // default



$interval = '2'; // default
·
Sunday, 29 July 2018 09:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you again Arlex
It works !

On the other hand the problem is that if the user selects the original button "Default" (updates instantly) and that it refreshes the page, its parameter returns to Daily...

Philippe
·
Sunday, 29 July 2018 16:46
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like i provided that suggested code is not correct.

Can you revert back the changes what i suggested in my previous reply?

Then try add this following code into this method createMember under this file location
JoomlaFolder/administrator/components/com_easysocial/includes/group/group.php


$cluster = ES::cluster('group', $this->id);
$state = $cluster->subscribe($userId, '2');


So when the user join the group, they should automatically subscribe in this subscription interval (daily).
·
Monday, 30 July 2018 11:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex !

And I suppose then the data is written here :
_social_clusters_subscriptions

If I use your first method, and hide the first default button (instantly), does it work anyway ?

Philippe
·
Monday, 30 July 2018 16:57
·
0 Likes
·
0 Votes
·
0 Comments
·
And I suppose then the data is written here :
_social_clusters_subscriptions

Yes, that is correct.

If I use your first method, and hide the first default button (instantly), does it work anyway ?

Actually it doesn't work because after i check further the first method, it won't store the subscription interval (daily) immediately after user joined the group.

In other word, this group member will still receive that email notification immediately when someone post new story in the group even you set subscription interval to daily as default option.

So in order to achieve your current requirement, you have to use second method.
·
Monday, 30 July 2018 17:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok I understand.

If in the future it is preferable that the notifications be sent weekly, can I manually change the value of the "interval" column in _social_clusters_subscriptions ?

And replace "daily" to "weekly" ?

Thank you,
Philippe
·
Monday, 30 July 2018 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes can.
·
Monday, 30 July 2018 18:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Great
·
Monday, 30 July 2018 18:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Monday, 30 July 2018 19:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post