By Philippe on Sunday, 31 March 2019
Posted in Technical Issues
Replies 16
Likes 0
Views 595
Votes 0
Hello,

A few months ago you told me how to set a default digest setting. So as soon as a user joins a group, his email digest subscription is activated automatically.

See here : https://stackideas.com/forums/default-email-digest-setting#reply-425155
This custom code works.

However, I realized that if I manually add a user from the Back-end, this custom code that defines a default digest setting does not work.
The user is not added to the table: _social_clusters_subscriptions

Can you tell me how to correct this ?

Thank you,
Philippe
Hey there,

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

I assume your profile type got setup auto join group when new user registered on the site right?

If yes, may i know when you create a new member from backend, this member will automatically get approval once you save or you have to manually activate this user?
·
Sunday, 31 March 2019 09:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arlex,

I assume your profile type got setup auto join group when new user registered on the site right.
Yes.

If yes, may i know when you create a new member from backend, this member will automatically get approval once you save or you have to manually activate this user?
No, it's when I add a user already registered, to the list of members of a Group.

Philippe
·
Monday, 01 April 2019 03:06
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like this manually add new member process is under different function, so you have to add this following code into this file
JoomlaFolder/administrator/components/com_easysocial/controllers/groups.php

$cluster = ES::cluster('group', $groupId);
$state = $cluster->subscribe($id, '2');
·
Monday, 01 April 2019 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex
It works.

I assume your profile type got setup auto join group when new user registered on the site right.
Besides, your custom code does not work for that.
What is the custom code for :
as soon as a user registers on the site, the default interval of the Groups (part of his Profile Type) to be on Daily ?

Thank you,
Philippe
·
Wednesday, 03 April 2019 19:29
·
0 Likes
·
0 Votes
·
0 Comments
·
You mean manually add the new user from backend or frontend?
·
Wednesday, 03 April 2019 19:47
·
0 Likes
·
0 Votes
·
0 Comments
·
No. Sorry I misspoke.
The user registers himself from the front end.
I have set a Profile Type (classic member) with a Default Group.

Thus, I would like the Group's subscription to be Daily, including for members automatically added to the Group when they register on the site.

Philippe
·
Wednesday, 03 April 2019 19:54
·
0 Likes
·
0 Votes
·
0 Comments
·
It should work if you still have this custom code as what I mentioned this in previous ticket https://stackideas.com/forums/default-email-digest-setting#reply-425155 , because this part is for the new register user and manually join the group.

If the issue still persists, can you update your site backend and FTP access so I can better have a look?
·
Thursday, 04 April 2019 10:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex

I've put this custom code too, but it doesn't work.
No value is added in _social_clusters_subscriptions

Yes, you can access to site backend.

Philippe
·
Thursday, 04 April 2019 16:17
·
0 Likes
·
0 Votes
·
0 Comments
·
It seems like your current registration type set to 'require user activation' so this will proceed it differently.

I've applied some custom code into this file JoomlaFolder/administrator/components/com_easysocial/includes/user/user.php , you can refer at my attached screenshot below.

It should work fine now.
·
Thursday, 04 April 2019 18:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Arlex !
It works perfectly now.

I have a question about the Digest Weekly.
How is defined the day and the hour of sending the Weekly Digest email ?
Knowing that my EasySocial Cron is executed every minute.

Philippe
·
Friday, 05 April 2019 02:10
·
0 Likes
·
0 Votes
·
0 Comments
·
You're most welcome.

If you look at the #__social _clusters_subscriptions table, there got 1 column name call 'sent' (http://take.ms/RoE8q), this is the one use to determine that when the system send out the digest email notification.

For example :

1. When the user subscribe (weekly) on the group, created date is 2019-04-05 12pm.

2. Every time cron execute it, it will check the current date time and the clusters subscription table and see whether already reach a week for this subscriber.

3. After a week (imagine today is 2019-04-12 12pm), so it will only collect all the notification which need to notify to the user within a week then put into 1 digest email template and send to the user.

4. Once it send out, the system will update the `sent` column date time for that subscriber. (mean it will update this 2019-04-05 12pm to current date time 2019-04-12 12pm)
·
Friday, 05 April 2019 13:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post