Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author r-a-y

    (@r-a-y)

    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.

    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.

    Plugin Author r-a-y

    (@r-a-y)

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

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

    Thread Starter Weshaw

    (@weshaw)

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

    @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

    Plugin Author r-a-y

    (@r-a-y)

    @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.

    Thread Starter Weshaw

    (@weshaw)

    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.

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

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

    Thanks in advance
    Lena

    Thread Starter Weshaw

    (@weshaw)

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

    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.

    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=’https://uptownalmanac.com/2014/03/dolores-park-renovations&#8217; title=’Demolition Stage of Dolores Park Renovations Proceeding Quickly | Uptown Almanac’ image=’https://uptownalmanac.com/sites/default/files/images-on-cdn/1956692_10152257081150901_1344628240_o.jpg’%5DIt’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.

    Mails received when updates are done on groups look unprofessional. Mails show the shortcodes [bpfb_link url=… and [bpfb_video] .

    Any chance for a solution /workaround?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Parsing with Buddypress Activity Plus’ is closed to new replies.