• Resolved alonagomez

    (@alonagomez)


    Hi Support,
    Please help me fix the issue to fool-proof the posting of website in the Activity. When the thumbnail is generated for the website and the URL was not deleted, it shows 2 Images and the Page name. You need to delete the URL to show the website but it may result to posting errors for new members who do not know that they need to delete the URL.
    Please help to fool-proof this either thru CSS hiding or a snippet. Please see before and after posting photo on the link for details or try it by yourself. Thanks.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Youzify

    (@kainelabsteam)

    Hello @alonagomez

    Thank for reaching us

    Can you please send your Activity page URL please? I will check it further.

    Best Regards, KaineLabs Team.

    Thread Starter alonagomez

    (@alonagomez)

    Hi Support,

    Here is the URL. Please try to fix it ASAP because I need to delete it, it looks ugly. Thanks. https://carefy.ph/activity/

    Plugin Support Youzify

    (@kainelabsteam)

    Hello @alonagomez

    Please try use this snippet to fix it

    /**
     * Disable All Auto Embeds and Keep Specific Sites Only.
     **/
    add_filter( 'bp_embed_oembed_html', function( $html, $url ) {
    
        if ( strpos( $url,'youtube') !== false || strpos( $url,'youtu.be') !== false || strpos( $url,'soundcloud.com') !== false || strpos( $url,'vimeo') !== false || strpos( $url,'dailymotion') !== false) {
            return $html;
        }
        return '';
    }, 10, 2 );
    
    /**
     * Mark Local Site Links as not Embed.
     */
    add_filter( 'pre_oembed_result', function( $null = null, $url ) {
    
        $site_domain = parse_url( site_url(), PHP_URL_HOST);
    
        if ( strpos( $url, $site_domain ) !== false ) {
            return '';
        }
    
        return null;
    
    }, 10, 2 );

    Best Regards, KaineLabs Team.

    Thread Starter alonagomez

    (@alonagomez)

    Thanks the snippet worked. You can close this issue.

    Plugin Support Youzify

    (@kainelabsteam)

    We are happy that we were able to help you.

    If you don’t mind could you take a moment to leave us a 5-Star rating please?

    https://www.ads-software.com/support/plugin/youzify/reviews/

    We know that this?might take little?effort and time from you, but your support will mean a lot to us.? Because your review will help people feel confident about choosing Youzify. And will help us grow the team to speed up the development process and improving this plugin.

    Have a wonderful day. ??

    Best Regards, KaineLabs Team.

    Thread Starter alonagomez

    (@alonagomez)

    I will 5 star review your plugin after you fixed the other issue on Youzify photos in the Media Library. Thanks.

    Thread Starter alonagomez

    (@alonagomez)

    Sorry support. Please re-open this because the snippet only work for the host website. But if you share other website and do not delete the URL, the post will be empty. Please help me fix this.

    Thread Starter alonagomez

    (@alonagomez)

    The empty post are happening on some websites using Guest mode in LiteSpeed. I close this issue and Thanks.

    Plugin Support Youzify

    (@kainelabsteam)

    Hello,

    Thank you for let us know this info. ??

    Best Regards, KaineLabs Team.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Activity Double Image & URL’ is closed to new replies.