• Resolved Manni79

    (@manni79)


    Hello,

    wee use RSS Aggregator by Feedzy a long time now. Featured images and text were shown fine till now. Today I saw our feeds are broken. I did not checked them after last updates, so I am not sure if it is update related. But I guess it’s update related.

    Webpage:
    https://www.testing-board.com/

    Both feeds under topic:
    “Externe weiterführende Artikel”
    See here as screenshot, two feeds, one left column, one right column:
    https://www.dropbox.com/s/k79x642uz243qok/Feedzy_Problem.png?dl=0

    When everything was fine, all images and texts (excerpt) of the images were shown consistent. If no features image is provided, our configured default image was shown. As you see in the screenshot, texts (excerpt) and images are missing (sometimes). It’s just a inconsistent mess.

    I checked Plugin Settings already.
    But there are not really any options which influence the results in this manner.

    We use some filter, but these are only about changing links and aspect ratio. Not about changing texts or remove images.

    /* --------------------  FEEDZY -------------------- */
    /* for  FEEDZY RSS Feeds */
    function bweb_feedzy_remove_link_matches( $matches ) {
        return $matches[2];
    }
    function bweb_feedzy_set_h2( $content, $feedURL ) {
        //$pattern= '/<a.*href=\"(https?:\/\/.*)\".*>(.*)<\/a>/iU';
        $content= '<h3>'.$content.'</h3>';
        return $content;
    }
    //Remove the title link
    add_filter( 'feedzy_title_output', 'bweb_feedzy_set_h2', 9, 2 );
    
    function bweb_feedzy_change_meta_tag( $content, $feedURL ) {
        //$pattern= '/<a.*href=\"(https?:\/\/.*)\".*>(.*)<\/a>/iU';
        //$content= '<h2>'.$content.'</h2>';
        return $content;
    }
    //Remove the title link
    add_filter( 'feedzy_meta_output', 'bweb_feedzy_change_meta_tag', 9, 2 );
    
    function bweb_feedzy_remove_link( $content, $feedURL ) {
        $pattern= '/<a.*href=\"(https?:\/\/.*)\".*>(.*)<\/a>/iU';
    	$content= preg_replace_callback( $pattern, 'bweb_feedzy_remove_link_matches', $content );
        return $content;
    }
    //Remove the title link
    add_filter( 'feedzy_thumb_output', 'bweb_feedzy_remove_link', 9, 2 );
    add_filter( 'feedzy_meta_output', 'bweb_feedzy_remove_link', 9, 2 );
    
    function bweb_feedzy_thumb_aspect_ratio( $sizes, $feedURL ) {
        $sizes = array( 
            'width' => $sizes['width'] * (16/10), 
            'height' => $sizes['height']
        );
        return $sizes;
    }
    add_filter( 'feedzy_thumb_sizes', 'bweb_feedzy_thumb_aspect_ratio', 10, 2 );
    
    function bweb_feedzy_add_link_param_matches( $matches ) {
        return '<a href="' . $matches[1] . '" target="_blank" rel="nofollow"' . $matches[2] . '</a>';
    }
    function bweb_feedzy_add_link_param( $content, $feedURL ) {
        $pattern= '/<a.*href=\"(https?:\/\/.*)\".*(( class="more-link"|>).*)<\/a>/iU';
        $content= preg_replace_callback( $pattern, 'bweb_feedzy_add_link_param_matches', $content );
    	
        return $content;
    }
    add_filter( 'feedzy_global_output', 'bweb_feedzy_add_link_param', 9, 2 );

    Example usage of feedzy shortcode:
    [feedzy-rss feeds="<ListOfFeeds>" max="9" summarylength="200" feed_title="no" target="_blank" title="65" size="100" thumb="yes" default="<PathToDefaultImage>"]
    And as I said, this was working fine for years/months and shows texts (excerpt) and images fine.

    Any help is very welcome.
    If it is a bug, fast fixes are also welcome. ??

    Best regards
    Manni

    • This topic was modified 4 years, 3 months ago by Manni79.
    • This topic was modified 4 years, 3 months ago by Manni79.
    • This topic was modified 4 years, 3 months ago by Manni79.
    • This topic was modified 4 years, 3 months ago by Manni79.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Manni79

    (@manni79)

    Sorry for pushing, but I really need some feedback.
    I think I have every information needed in my post. Inclusive links.
    Help is very welcome.

    • This reply was modified 4 years, 3 months ago by Manni79.
    Plugin Support Vytis

    (@bvytis)

    Hi @manni79,

    I tried to use the same syntax as you do and it works fine on my end.

    I haven’t used the custom code that you have so I recommend you to try 2 things:
    1) Try to remove the custom code that you have and check if items are rendered fine
    2) Check if the link to your “default” image still works and if the image is reachable.

    If the issue persists, please provide the shortcode with the exact data that you use (URLs of Feeds and URL of default image) to try to replicate this.

    Thanks!

    Thread Starter Manni79

    (@manni79)

    Problems occurred on different short codes with different feeds. On the linked page 2 shorts codes with different feeds are active, both has the problem.

    When I disable my custom code, everything is rendered fine and also excerpt is fine then. I tried already the default image link, it’s forking fine also.

    So, it seems to be the custom code. I did not change the custom code for a very long time now. Do you have any idea what changed in feedzy filters in last updates, so I can fix it and change it to current feedzy filter workflow easily?
    Would be cool if you have an advise.

    Here is one of the example short codes.
    [feedzy-rss feeds="https://www.testautomatisierung.org/feed/" max="6" summarylength="200" feed_title="no" target="_blank" thumb="yes" title="65" size="100" default="/wp-content/uploads/Fotolia_49320324_XS-180x100.jpg"]

    Thanks a lot

    • This reply was modified 4 years, 3 months ago by Manni79.
    • This reply was modified 4 years, 3 months ago by Manni79.
    Plugin Support Vytis

    (@bvytis)

    Hi @manni79,

    I don’t think we changed something critical that could have affected this so I would just go by removing those custom functions one by one to check which exactly is causing the issue and then investigate it by checking the code inside.

    I hope you’ll find the error this way.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feedzy stops showing images and text consitent’ is closed to new replies.