WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Group Email Subscription
[resolved] Parsing with Buddypress Activity Plus (13 posts)

  1. Weshaw
    Member
    Posted 9 months ago #

    Can't live without this plugin, which is why I'm on here hoping to find help.

    I'm using this plugin plus Buddypress Activity Plus and the results are. . . not great.

    The issue is with the parsing. If I'm the only one running into this, I'm sure it's not worth the developers' time to fix, but a guy can hope. Right now, I get email alerts that look like this

    [bpfb_link url='http://google.com' title='Google' image='http://google.com//intl/en_ALL/images/srpr/logo1w.png']© 2013 - Privacy & Terms[/bpfb_link]

    If it just sent the link, that'd be fantastic. Would it be hard to do this? It looks like if, when it saw "[bpfb_link" and "/bpfb_link]" it just looked for the URL and axed the rest, that would solve it.

    Any ideas?

    Thanks much. This is a great plugin.

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

  2. r-a-y
    Member
    Plugin Author

    Posted 9 months ago #

    What happens when you send a regular at-mention in BuddyPress with that shortcode?

    I'm guessing the same thing happens, right?

    I'm thinking that BuddyPress (and, consequently, GES) should strip shortcodes from plain-text emails.

    So in your example, only "2013 - Privacy & Terms" would show up in the email instead of showing the unparsed shortcode.

    I can see some problems with stripping shortcodes as well though. (I'm thinking particularly of plugin developers that might want to do their own parsing in emails.) So I'm hesitant to say that a fix will be added for this.

    You could probably write a small plugin to parse the shortcode and strip the URL though.

  3. elpix
    Member
    Posted 9 months ago #

    Hi,

    Is there any way to modify the appearance of the email ?
    I've tried :

    add_filter('bp_ass_new_topic_content' , 'my_bp_ass_new_topic_content' , 1 , 2);
    
    /**
     **/
    function my_bp_ass_new_topic_content($val, $attr, $content = null)
    {
    	return "bws";
    }

    But it never return "bws" in the email.
    If I succeed to modify the appearance, maybe I will be able to transform the activity plus shortcodes in normal code ...

    Thanks.

  4. r-a-y
    Member
    Plugin Author

    Posted 9 months ago #

    @elpix - That filter is for the older BP legacy forums.

    You'll want to use the 'bp_ass_activity_notification_content' filter instead.

  5. Weshaw
    Member
    Posted 9 months ago #

    Thanks for the advice, Ray. Any chance you'd be interested (hirable) in writing that plugin?

  6. vincent-webmaster
    Member
    Posted 8 months ago #

    @Weshaw

    To disappear contents [bpfb_link , I propose :

    open files : bp-activity-subscription-digest.php

    add this befor "// save the cache" :

    $item_message = preg_replace ("#bpfb_link([^<]*)bpfb_link#", '', $item_message);

    The idea is to remove what is between the tags. Of course, you can refine the function, but I'm stuck a bit because I do not fluent in php.

    Excuse me, I'm french and I can not write in English

  7. r-a-y
    Member
    Plugin Author

    Posted 8 months ago #

    @Weshaw - I don't really do one-off fixes.

    @vincent-webmaster - You probably don't want to hack the plugin to do this.

    You'll want to hook into the following filters:

    - 'bp_ass_activity_notification_content' - for regular emails like "All Mail" and "New Topics"
    - 'ass_digest_format_item' - for digest emails

    Then you can do your manipulation there. You have to be a little familiar with how to use WordPress hooks though.

    If you don't know how to use them, there are a ton of tutorials on the net.

    Hope that helps.

  8. Weshaw
    Member
    Posted 8 months ago #

    Thanks, @r-a-y and @vincent-webmaster.

    @vincent-webmaster, I tried your code but didn't have luck with it. I'll try to modify it.

    @r-a-y: absolutely understand that you don't have time for little projects like this. I'll bumble along and figure something out. If I succeed wildly, I'll post back here.

  9. vincent-webmaster
    Member
    Posted 8 months ago #

    @r-a-y Ok I understand the good manipulation. Have nice week

  10. lenasterg
    Member
    Posted 8 months ago #

    @Weshaw, hi.
    Can you share the complete code you used if/when to find the solution?

    Thanks in advance
    Lena

  11. Weshaw
    Member
    Posted 8 months ago #

    @lenasterg: If I crack the case, I'll definitely share. Hope I can help, but I'm a crummy coder.

  12. brucedwilliams
    Member
    Posted 7 months ago #

    I'm having the same issue as Weshaw and second his request for some way to make the email look cleaner when using the Activity Plus plugin.

  13. energynet
    Member
    Posted 3 weeks ago #

    I'm also in the same boat on this...

    Weshaw... No updates at all on this?

    Activity Plus and GES are mission critical plugins.

    I would certainly be willing to donate money to get this important fix done...

    My sample of what a recent digest mailing looked like...

    [bpfb_link url='http://uptownalmanac.com/2014/03/dolores-park-renovations' title='Demolition Stage of Dolores Park Renovations Proceeding Quickly | Uptown Almanac' image='http://uptownalmanac.com/sites/default/files/images-on-cdn/1956692_10152257081150901_1344628240_o.jpg']It’s been only a little over a week since renovations began on the nothern half of Dolores Park, and a drone-mounted camera hovering overhead earlier today reveals almost all of the sod and half of the courts are already gone. If last weekend was any indication, the renovations haven’t hurt the[/bpfb_link] –

    vs. what it could like:

    Demolition Stage of Dolores Park Renovations Proceeding Quickly
    It’s been only a little over a week since renovations began on the northern half of Dolores Park, and a drone-mounted camera hovering overhead earlier today reveals almost all of the sod and half of the courts are already gone. If last weekend was any indication, the renovations haven’t hurt.

    I'm not expecting miracles, but if this could be fixed to look even remotely like the standard Google format we've all seen, would make this important part of drawing people away from Facebutt.. etc.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.