Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can we send email notification of new posts?

  • Avatar of MatthewByrom
    MatthewByrom
    Participant

    @matthewbyrom

    Hi There,

    We are using Group Email Subscription to email Users about “Whats New” updates & Forum posts etc.

    However, is it possible to get it to email Users when Blog posts are created/added?

    Blog posts are added to the activity stream, just like Forum posts & updates, we just don’t get any emails about Blog posts.

    Any advice welcomed.

Viewing 16 replies - 1 through 16 (of 16 total)
  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    Have you read the Note to plugin authors at the botom of the plugin description page ?

    try ‘ass_this_activity_is_important’ and return TRUE when $type matches your activity.

    http://wordpress.org/extend/plugins/buddypress-group-email-subscription/

     

    Avatar of MatthewByrom
    MatthewByrom
    Participant

    @matthewbyrom

    Hi @chouf1,

    Thanks for the reply.

    Fair point – I have taken a look at that section.

    “If your plugin posts updates to the standard BuddyPress activity stream, then group members who are subscribed via 3. Daily Digest and 5. All Email will get your updates automatically.”

    Currently this isn’t happening either.

    A blog post appears to go into the activity stream & is of type “New Post Published”. No one is being emailed, regardless of the subscribed user’s email frequency preference.

    I’m going to take another look in bp-activity-subscription-functions.php – see if I can make _all_ activities important (the users want to be notified if someone so much as sneezes on this site, apparently!..)

    Thanks again,

    Matthew.

    Avatar of MatthewByrom
    MatthewByrom
    Participant

    @matthewbyrom

    Hi @chouf1,

    Thanks for the reply.

    Fair point – I have taken a look at that section.

    “If your plugin posts updates to the standard BuddyPress activity stream, then group members who are subscribed via 3. Daily Digest and 5. All Email will get your updates automatically.”

    Currently this isn’t happening either.

    A blog post appears to go into the activity stream & is of type “New Post Published”. No one is being emailed, regardless of the subscribed user’s email frequency preference.

    I’m going to take another look in bp-activity-subscription-functions.php – see if I can make _all_ activities important (the users want to be notified if someone so much as sneezes on this site, apparently!..)

    Thanks again,

    Matthew.

    Avatar of becskr
    becskr
    Participant

    @becskr

    I am helping Matt with this.

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    each user can set his own notifications. Have you checked this ?

    top right toolbar, username > settings > notifications

    group email notifications are there too.

    Avatar of Alexander
    Alexander
    Participant

    @ashenkargmailcom

    @matthewbyrom Are you using the groupblog plugin?

    http://wordpress.org/extend/plugins/bp-groupblog/

    If so – what version of WP and BP are you using?

    I’m asking because it doesn’t seem to work in the latest release.

    Avatar of MatthewByrom
    MatthewByrom
    Participant

    @matthewbyrom

    Hi @ashenkargmailcom,

    Looking at the site, we do have the groupblog plugin installed on the site, but it’s deactivated. My gaffer, John may well has installed it at some point when he was trying to get this functionality.

    I only really got introduced to our site when it was clear all the plugins weren’t working as desired, so there are a few plugins left that I honestly don’t know what they’ve had done to them.

    As it was, @becskr developed some code that adds a post into the activity stream, which uses BuddyPress Group Email Subscription as a dependency. Cracking stuff & a lifesaver in my book.

    We have a new headache, as the Users want additional functionality, but I think I’d best post as a separate issue.

    As for versions, we’re running WP 3.5 with BP 1.6.4

    Avatar of HouseofType
    HouseofType
    Participant

    @houseoftype

    Hello @matthewbyrom,
    adding posts to the activity stream is something which we would find useful too, so BuddyPress members can get email notifications. Please can you or @becskr share the code somewhere for us to try?
    Thanks,
    Lyndsey

    Avatar of becskr
    becskr
    Participant

    @becskr

    Hi there

    Here’s the link to the pastebin with the plugin: http://pastebin.com/R5U6TLG7

    Avatar of becskr
    becskr
    Participant

    @becskr

    I forgot to add, your group slug must match the post category slug EXACTLY for this to work. If you need to change your group slug, you can install this plugin: http://wordpress.org/extend/plugins/bp-edit-group-slug/

    Unfortunately you’ll have to download it and upload it to your site as it’s old and therefore won’t let you do it in-browser

    Avatar of northerntony
    northerntony
    Participant

    @northerntony

    Hi there,

    I’m trying to achieve a similar thing but don’t quite understand what is meant by ‘your group slug must match the post category slug’. On our site it’s set to send a daily digest of several group’s activities. But we also have a blog that the owner uses that isn’t linked to any group (it’s a standard WP blog). Is it possible to include notification of his new blog posts in the digest email if the blog doesn’t go through BuddyPress? And if it is, how do I go about setting it up?

    Any help would be much appreciated.

    Avatar of becskr
    becskr
    Participant

    @becskr

    hi @northerntony – yes my blog is is a wordpress blog (not a buddypress group blog). I have categories set up on there which match the groups we have. Therefore when we write posts that are meant for that group, we would assign the category that matches the group.

    E.g. “Durham” group will have a “durham” category (and category slug) on the blog.

    If you try my plugin out (there’s a pastebin link) you should be able to get it to work. Make yourself a test group and a test category on your blog before you start blasting a loads of peeps with emails.

    Avatar of northerntony
    northerntony
    Participant

    @northerntony

    Hi @becskr, wow I wasn’t expecting such a quick response.
    Thanks for the explanation, I understand now, I was thinking that it had to be a BuddyPress blog to work. I’ll grab your plug-in and give it a go, thankfully we have a development site set up so I can play around on there.

    Thanks again, your a star.

    Avatar of becskr
    becskr
    Participant

    @becskr

    @northerntony I have notification emails on for this particular topic that’s why I replied so quickly. Always happy to help with BP, the documentation is sparse and there’s so much you got to work out for yourself. I have spent many hours going round in circles on problems like the one you need help with so just trying to share and care!

    Avatar of northerntony
    northerntony
    Participant

    @northerntony

    @becskr Back again with another question I hope you can help with. I got it all working with the blog posts but we now want to add a custom post type as well. I had hoped that just having the slugs the same would work, but it didn’t. I’ve had a look at the code and on line 48 to 49 I see:
    // Don't record this if it's not a post
    if ( !in_array( $post->post_type, apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) ) ) )
    return false;

    If I add my post type (podcast) to the filter so that it looks like this:
    // Don't record this if it's not a post
    if ( !in_array( $post->post_type, apply_filters( 'bp_blogs_record_post_post_types', array( 'post', 'podcast' ) ) ) )
    return false;

    Will that work, or am I barking up the wrong tree? Thanks for any help you can give and in the meantime I’ll play around with it to see if I can work it out.

    Avatar of becskr
    becskr
    Participant

    @becskr

    Hi @northerntony

    Sorry for the late reply, I was on holiday.

    Yes that should work, easiest way is to test and find out though!

Viewing 16 replies - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.