Home Forums Plugins Support Vidi – Video WordPress plugin Buddypress Activity Posting (Bug Reports)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12620
    grpetz
    Supported

    Hello. I discovered that when creating a channel it does not display the channel link in the Buddypress activity feed but leaves the activity post blank with nothing after user creates a channel.

    We need at least the channel link and description of channel to appear in Buddypress feed after creating channel.

    Can you provide this code fix too?

    You got the video post link working in this thread, used as a reference to this? Thank you!

    Buddypress Activity Video Bug

    • This topic was modified 3 months ago by grpetz.
    #12624

    Hi,
    Thanks for contacting us and choosing our product!
    First of all sorry but this is not a bug because it already show activity on your BuddyPress.
    You can customize it follow this: https://harutheme.com/forums/topic/buddypress-activity-video-bug/#post-12617
    but need change the code to this:

    if ( ! function_exists( 'haru_video_activity_content' ) ) {
        function haru_video_activity_content( $cpt ) {
            if ( 'new_video' === $cpt['type'] ) {
               if ( $cpt['secondary_item_id'] ) {
                    $video_title = get_the_title( $cpt['secondary_item_id'] );
                    $video_url = get_the_permalink( $cpt['secondary_item_id'] );
                    $cpt['content'] = '<a href="' . $video_url . '" target="_blank">' . $video_title . '</a> ' . $cpt['content'];
               }
            }
    
            if ( 'new_channel' === $cpt['type'] ) {
               if ( $cpt['secondary_item_id'] ) {
                    $channel_title = get_the_title( $cpt['secondary_item_id'] );
                    $channel_url = get_the_permalink( $cpt['secondary_item_id'] );
                    $cpt['content'] = '<a href="' . $channel_url . '" target="_blank">' . $channel_title . '</a> ' . $cpt['content'];
               }
            }
         
            return $cpt;
        }
    
        add_filter( 'bp_before_activity_add_parse_args', 'haru_video_activity_content' );
    }

    Hope this helps!

    ****
    Regards,
    HaruTheme

    #12630
    grpetz
    Supported

    Thank you. It helped much!

    #12640

    Thanks for your feedback!

    ***
    Regards,
    HaruTheme

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.