BuddyDev

Search

[Resolved] rtMedia Activity URL Preview plugin blocked by Community Builder theme?

  • Keymaster
    (BuddyDev Team)
    Posts: 24645
    Brajesh Singh on #37811

    Hi Janet,
    Thank you for the patience.

    I have tested the theme with WordPress 5.7, BuddyPress 7.3.0, RT media 4.6.6 and the
    rtMedia Activity URL Preview 2.3.0 and the url preview in activity stream(sitewide, group’s and user’s) are working as expected.

    If you are using BuddyPress 7.x, you can safely upgrade to 7.3, there are minor changes and will have no impact on the site.

    Can you please provide me a guest account on your live site or staging site to allow me check what could be causing the issue.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 76
    Janet B on #37861
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24645
    Brajesh Singh on #37873
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 76
    Janet B on #37903

    Thanks Brajesh. Yes, there is a filter is functions.php to restrict the activity to updates only, to suppress distracting messages about people joining groups, etc.

    Removing it fixes the problem, but I’m not sure why, since posts with rtMedia in them are still “updates”.

    Janet

  • Participant
    Level: Enlightened
    Posts: 76
    Janet B on #37906

    This is the filter I’m using. Is there a better way to accomplish this?

    add_filter( 'bp_after_has_activities_parse_args', function ( $args ) {
    
            /*if ( ! bp_is_group() ) {
                    return $args;
            }*/
    
            $args['action'] = 'activity_update';
    
            return $args;
    } );
  • Participant
    Level: Enlightened
    Posts: 76
    Janet B on #37907

    Hello,

    I was able to accomplish this with a small change that allows selection of multiple activity types:

    add_filter( 'bp_after_has_activities_parse_args', function ( $args ) {
            
            $args['action'] =
            array(
                    'activity_update',
                    'rtmedia_update',
                    'activity_comment',
                    'new_blog_post',
                    'new_blog_comment'
                    //'friendship_created'
                    //'created_group'
                    //'joined_group'
            );
    
            return $args;
    } );
  • Keymaster
    (BuddyDev Team)
    Posts: 24645
    Brajesh Singh on #37909

    Hi Janet,
    Thank you.
    Adding ‘rtmedia_update to the list was important.

    I am marking this topic resolved. In future, Please open a new topic.

    Regards
    Brajesh

The topic ‘ [Resolved] rtMedia Activity URL Preview plugin blocked by Community Builder theme?’ is closed to new replies.

This topic is: resolved