Site Wide Daily Digest
- This topic has 5 replies, 3 voices, and was last updated 9 years, 11 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Tagged: activity stream, daily digest
Hey guys, I’m loving these Daily Digest emails that I get from CBOX and would like to implement it on our site. I know I’m supposed to use the Buddypress Group Email Subscription plugin. But I’m wondering if there is some way to use this on a site wide level rather than just within groups.
Ideally, we’d like to have all the things that appear on the activity stream (hopefully with some ability for an admin to filter what content gets put into the email) show up in every user’s email inbox.
Is there some way to accomplish this? My first thought would be simply get everyone in a General group. But that raises the question of whether it’s possible to add people to a group automatically without them having to join it themselves.
Thanks!
There’s nothing in the interface that would let you do this, but it’s simple enough to do with code. So, if you have a list of your user IDs, you can use groups_join_group( $group_id, $user_id );
to add each user in that list to a group with a known ID (your “General” group). If you want to do that on user registration, hook into the ‘user_register’ action. Something like:
add_action( 'user_register', 'my_add_to_group' );
function my_add_to_group( $user_id ) {
$group_id = 22; // replace with whatever your target group ID is
groups_join_group( $group_id, $user_id );
}
Cheers, Christian
I like the Christian solution, I tested a similar one some time ago. It is useful if the “General” group is linked to the main blog and this is the only blog. But, the idea to inform group members about all site activities can be not too good without a good activities filter, especially if there are more blogs and more groups.
The question is how to show all site activities in one group?
Thanks @haystack and @iurie. This a step in the right direction. So with that code we can have our users automatically added to a General group, that’s great.
But as you stated Iurie — the real question now is then how would we show all site activities in one group? A lot of the most valuable info that is coming off the activity stream is related to posts in the forum and newly added resource documents (coming from a custom plugin we’ve built similar to BP Docs) — the things that are outside of any group.
And yes, I agree that most users will not appreciate getting hit with all this info from the whole site, but at the stage the site is currently in it does actually make sense for everyone to know what’s happening on a site wide level.
Any additional thoughts?
@stevedtj,
I think that makes sense to have a special group where users are added automatically at registration, and users of that group can be subscribed (also automatically) to a kind of digest with some selected general site wide activities (about new resources/blogs, new forum topics, new posts), maybe with an option to select about what activities they want to be informed. I think that this could be done with a special plugin, but I am not a coder, @haystack or others can say if this is possible.
Hi Steve, I realise I didn’t really answer your more general issue of the email digest of all site activity. As Iurie says, this is definitely plugin territory if such a thing does not already exist. Personally, I would recommend that people subscribe to the sitewide RSS feed rather than go down this route.
Cheers, Christian