WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: flickrRSS] Not working in WP 2.9.1 (3 posts)

  1. Truth
    Member
    Posted 4 years ago #

    Can the plugin author or whoever looks into this?

    It used to be working but stopped working today. No images are showing
    up. I tried the fix under common problems but nothing shows up.

    I am using WordPress 2.9.1

    Please kindly advice. Thanks!

    http://groups.google.com/group/flickrrss/browse_thread/thread/f2e71df93d3b626e

    http://wordpress.org/extend/plugins/flickr-rss/

  2. imwy2cool
    Member
    Posted 4 years ago #

    I'm having the same issue. NO CHANGES to my blog and they just stopped working. You can check out the pagelines.com forums and there is a lot of chatter over there. I've tried all the fixes I've seen posted and still nothing.

  3. imwy2cool
    Member
    Posted 4 years ago #

    Okay for once I have solved a problem. :-) At least it works for me with WordPress 2.9.2

    Replace this code in flickrrss.php

    if(preg_match('<img src="([^"]*)" [^/]*/>', $item['description'],$imgUrlMatches)) {
    					continue;
    				}
    				$baseurl = str_replace("_m.jpg", "", $imgUrlMatches[1]);

    With:

    // Hack to switch regular expression for 2.9.2
    				$pattern = '<img src="([^"]*)" [^/]*/>';
    
    				if(!preg_match($pattern, $item['description'], $imgUrlMatches)) {
    
    					continue;
    				}
    
    				$url_array = explode(' ',$imgUrlMatches[1]);
    				$baseurl = str_replace("_m.jpg", "", $url_array[0]);

    You'll find it around line 150.

    This is similar to what was said in a previous post regarding wordpress 2.8.5.

    It's NOT perfect as it is a hack, but at least my images are working now. I hope it works for you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags