RSSPhoto
Description
RSSPhoto is a WordPress plugin to display photos from RSS and Atom feeds. It includes a widget for easy addition to a sidebar, or it can be configured by shortcode to display on any page. Easy theme integration is also possible. RSSPhoto includes jQuery-powered, cross-browser compatible slideshow as well as static image display.
RSSPhoto uses the built-in WordPress functions to parse RSS and Atom feeds (which are based on SimplePie). A cache directory, writable by the server, is required for thumbnail storage. The GD library is required for generating thumbnails.
Installation
RSSPhoto install simply requires creating a writable directory (default location wp-content/cache) to store thumbnails, and installing/activating the plugin itself:
- If it doesn’t already exist, create the directory `/wp-content/cache` and give it permissions of 755
- Upload all files to the `/wp-content/plugins` directory (consider creating an rssphoto subdirectory to hold the plugin files)
- Activate the plugin through the ‘Plugins’ menu in WordPress
To use the widget:
- Navigate to the ‘Widgets’ section of the ‘Appearance’ menu in WordPress
- Drag the widget to the sidebar
- Configure the widget as needed
To use the shortcode:
- Edit the page you want to display the images
- Add the following text to the page:
[rssphoto url="your.url.com"]
- Include any of the following attributes (see descriptions of these settings below)
- title=”Title”
- url=”http://your.url.com/feed.xml”
- height=150
- width=185
- img_sel=”Most Recent”
- num_img=1
- item_sel=”Random”
- num_item=10
- show_title=1
- show_img_title=1
- output=”Slideshow2″
- interval=6000
- min_size=10
- max_size=500
To integrate with a theme:
- The plugin needs to be installed and activated.
- Copy and paste the contents of the file RSSPhotoTheme.functions.php to the end of the file functions.php in your theme directory.
- Declare RSSPhoto settings (multiple instances are supported).
- Call the function display_rssphoto() from your theme (e.g., sidebar.php). An example of the last two steps:
<?php $settings[0]['title']='RSSPhoto'; $settings[0]['url']='http://photography.spencerkellis.net/rss.php'; $settings[0]['output']='Slideshow'; $settings[0]['num_item']=10; $settings[0]['interval']=10000; $settings[0]['fixed']='Height'; $settings[0]['size']=80; $settings[0]['before_title']='<h2>'; $settings[0]['after_title']='</h2>'; $settings[0]['before_html']='<li>'; $settings[0]['after_html']='</li>'; display_rssphoto($settings[0]); ?>
Here’s a quick description of the settings:
- (title) Title: Text that appears over the RSSPhoto image(s). “String in quotes”
- (url) URL: address of the RSS or Atom feed. “http://your.url.com/feed.xml”
- (height) Height: height of the RSSPhoto images in pixels; or, ‘variable’ to maintain the aspect ratio given the specified width (see #4). [Number]|”variable”
- (width) Width: width of the RSSPhoto images in pixels; or, ‘variable’ to maintain the aspect ratio given the specified height (see #3). [Number]|”variable”
- (img_sel) Image selection: the script can randomly select images or just display the first image in the feed item. “Random”|”Most Recent”
- (num_img) # Images per Item: how many images embedded in each feed item to display. [Number]
- (item_sel) Item Selection: RSSPhoto will choose a random feed item, or the most recent feed item. “Random”|”Most Recent”
- (num_item) # Items: choose how many feed items to display. [Number]
- (show_title) Show Title: whether to display the main RSSPhoto title over the images. 1|0
- (show_img_title) Show Image Titles: whether to display the titles of each displayed thumbnail. 1|0
- (output) Output: images will load as a slideshow or can be displayed statically. “Slideshow2″|”Slideshow”|”Static”
- (interval) Slideshow Interval: the amount of time in milliseconds to wait between image transitions for the slideshows. [Number]
Frequently Asked Questions
How do I change the title, feed URL, or dimensions for a widget?
After your widget appears in the sidebar, go to the ‘Widgets’ section under the ‘Appearance’ menu in WordPress and open the settings for the widget (click the down arrow in the widget titlebar and the form will appear). Modify the fields as needed and click save.
Is there a way to prevent very small images from being displayed?
Yes, you can set a variable to require a minimum size (in pixels) of either width or height. In RSSPhoto.class.php, look for
var $min_size = 10;
And change the value as needed (default is 10 pixels).
My feed doesn’t display any photos and there are no problems with the feed validation
RSS feeds can be implemented in numerous ways. RSSPhoto attempts to intelligently find the pictures in an RSS feed, but sometimes you need to point it in the right direction. In RSSPhoto.class.php, try changing the value of the variable $rss_type_src to one of the following values: ‘Choose’ (default), ‘Description’, ‘Content’, or ‘Enclosures’.
My feed doesn’t display any photos; W3C Feed Validation says it’s valid but has a warning about wrong media type
If you get a warning from the W3C Feed Validation Service about your feed being served with the wrong media type, and RSSPhoto doesn’t display your images, you may need to install the SimplePie Core plugin and force RSSPhoto to use it. The integrated SimplePie refuses to parse the feed because of the incorrect media type. Follow the FAQ point below to enable SimplePie Core. Then, open RSSPhoto.class.php and set the $force_feed variable to true:
var $force_feed = true;
How do I force RSSPhoto to use the SimplePie Core plugin so I have access to more feed-level options for troubleshooting?
To be clear, this option is available for fringe cases and is not expected to be commonly used (hence getting down and dirty with the code). An example is where the XML feed does not set its headers correctly and the SimplePie “force_feed” option must be set.
First, de-activate RSSPhoto. Next, install and activate the SimplePie Core plugin (not the full SimplePie plugin).
Now, edit RSSPhoto.class.php and change the value of the variable $parser from ‘built-in’ to ‘simplepie-core’:
var $parser = 'simplepie-core';
Re-activate RSSPhoto. That’s it!
I’m getting an error about the SimplePie class not being found. What’s wrong?
This should only happen if you have followed the directions above to force RSSPhoto to use the SimplePie Core plugin.
Here’s what the error might look like:
Fatal error: Class .SimplePie. not found in /home/username/public_html/wp-content/plugins/rssphoto/rssphoto.php on line 40
If you receive this error, the most likely problem is that the SimplePie Core plugin is not installed or activated. Here’s a link to the SimplePie Core plugin.
I’m still having problems. What should I do?
Please feel free to leave a comment below. I usually respond fairly quickly.
If you’re interested in getting your hands dirty, there’s a debug mode you can enable. In RSSPhoto.class.php, set the $debug variable to 1:
var $debug = 1;
By default, the debug output is hidden in HTML comments (<!– and –>), so view the page source to find the debug messages. This could offer some useful information and could help in leaving detailed comments for troubleshooting.
Screenshots


Changelog
version 0.8
- Introduction of Slideshow v2: principal improvement is the ability to fade in and out image titles when the user moves the cursor over the image.
- Simplified method for specifying dimensions: set the width and height directly, and RSSPhoto will automatically general thumbnails without distortion from incorrect aspect ratio.
- Introduction of a debug mode to simplify troubleshooting
- Bug fix: previous versions could generate incorrect paths to the cache when the blog URL and wordpress URL were different, resulting in no thumbnails being displayed.
- Various stability, performance, and bug fixes.
version 0.7.1
- Bug fix: extra HTML tags which distorted the sidebar layout
- Bug fix: removed check for thumbnail cache directory which caused problems in some installs
version 0.7
- RSSPhoto *no longer requires* the SimplePie Core plugin! (but support for using SimplePie Core plugin is preserved). Instead, the WordPress built-in `fetch_feed` function is used.
- Improved error messages and feedback
version 0.6.8
- Various stability improvements
- Added the (beta-version) capability to show image titles although the option has not been extended to the widget settings UI yet (see FAQ)
version 0.6.7
- Compatibility update for yet another different mime type that means “jpeg”
version 0.6.6
- Stability update: works “out-of-the-box” with all the feeds I’ve encountered so far in troubleshooting, except where SimplePie settings need to be changed
- Performance improvements: removed an http request from the critical path for thumbnail generation
- When embedded images are small, RSSPhoto will now allow upscaled locally cached thumbnails (previously, images would not be displayed at all)
- Added support for wordpress.com feeds
version 0.6.5
- Improved RSS parsing code to handle more implementation varieties (specifically better handling of enclosures)
version 0.6.4
- Added support for MobileMe (Apple) RSS feeds
version 0.6.3
- Added support for theme integration
version 0.6.2
- Added a method for retrieving images from different portions of an RSS 2.0 feed (Atom feeds remain the same)
version 0.6.1
- Add support for images contained in RSS enclosure tags
- Fixed an annoyance where slideshow would play with only one image
version 0.6
- Add shortcode support allowing RSSPhoto to be displayed on any page
- Further improved code organization, separating RSSPhoto code from shortcode and widget code.
- Re-introduced multi-widget support
version 0.5
- Added jQuery slideshow option (default)
- Intelligently selects content or description tag based on feed type
- Streamlined options to make widget configuration simpler
- Improved code organization with better class structure and readability
- Separated Javascript, CSS, and PHP; separated HTML internally
- !Important: Removed multi-widget support!
- Added support for solution to display images from a feed with incorrectly identified media type
version 0.4
- Added support for multiple images and multiple feed items
- Added support for filtering out images smaller than a user-defined pixel value (height or width)
- Reconfigured to the Widget options panel to reduce the height
version 0.3.3
- Added support for PNGs and GIFs
version 0.3.2
- Improvement on previous bug fix to use bloginfo ‘wpurl’ variable to form thumbnail URL
- Separate out image selection from feed item selection (so you can select a random image from the most recent feed item or vice versa)
- Improve the display of the Widgets settings as more options were becoming available
version 0.3.1
- Major bug fix with thumbnail URLs pointing to the wrong location
version 0.3
- Allow multiple RSSPhoto widgets to be present simultaneously
- Selection of fixed width, height, or max dimension for thumbnails
- Selection of pulling images from Content tags or Description tags from feeds
- Fixed a bug where changing the thumbnail size wouldn’t be reflected due to cached thumbnails with the same filename
version 0.2
- Rolled up all other bug fixes from 0.1.* plus fixed a bug where there was no default value for the Image Selection field.
version 0.1.2
- Fixed a bug where the title may not have been saved properly
version 0.1.1
- Fixed an issue where the Max dimensions field had the wrong label
version 0.1
- Original version
- Specify widget title
- Accepts any RSS or Atom feed URL
- Customize thumbnail size
- Select random or most recent image selection method
- jQuery image sliding effects with graceful degradation to plain Javascript
Download
Download the most recent version here.
Donate
If you use this plugin and feel like it’s been helpful to you in a meaningful way, please feel free to donate in return. I accept donations through PayPal.










#1 by Spencer on November 17th, 2009
Lol. I showed you code from a working copy that wasn’t checked in! That’s my bad.
The new version, 0.6.3, includes support for theme integration. The example I showed above is the correct way to use it. Instructions for enabling theme integration are found in the readme.txt file. Basically you just copy and paste the contents of RSSPhotoTheme.functions.php into your theme’s functions.php file, then use the above code to call it.
Sorry again for the inconvenience. Let me know how it goes.
#2 by Spencer on November 17th, 2009
Hey @CB -
Glad you like the plugin, hopefully you’ll like even more when it starts working.
The issue you’re seeing is similar to the problem Scott had (a couple comments up from yours). The fix for you is to change the variable $rss_type_src (in RSSPhoto.class.php) from ‘Choose’ to ‘Description’:
$rss_type_src = ‘Description’;
Let me know how it goes.
Thanks,
Spencer
#3 by Alan on November 20th, 2009
Hey Spencer,
I love the idea for this pluggin, and once I get it working I’m sure I’ll love it in practice. I’m trying to pull images from a mac.com web gallery and I cant seem to make it work.
feed://gallery.mac.com/patchets/100073/?webdav-method=truthget&feedfmt=recentrss&aggregate=-1
I tried changing the $rss_type_src option to all four possibilities and nothing seemed to work. Any advice?
thanks,
alan
#4 by Hamad on November 22nd, 2009
When I use the plugin with teh default feed address that you left in there it works fine but with any other feed (feedburner, feedrinse, wordpress feed, rinse feed) Its not working.
#5 by Hamad on November 22nd, 2009
ah works now.. most amazing plugin EVEER.. and it doesnt even use flash.. Rock on bro
#6 by Spencer on November 23rd, 2009
Hey @alan,
I have looked into your issue and have uploaded the fix as v0.6.4. The problem stemmed from an incorrectly specified mime type (image/jpg instead of image/jpeg) for the feed enclosures. RSSPhoto now checks for a variety of mime types just in case, but it will definitely work with jpg images on MobileMe.
Hope that helps!
Thanks,
Spencer
#7 by Spencer on November 23rd, 2009
@Hamad,
Glad you like the plugin. Just out of curiosity, what was the problem you encountered at first?
Thanks,
Spencer
#8 by Hamad on November 23rd, 2009
@Spencer Hello man,
The problem was something like that feed was showing summary instead of full content.
Here is the new issue
I have three feeds
1) Forum feed # 1
2) Forum feed #2
3) Blog feed.
The problem with blog feed is that it shows summary in Firefox and works fine in Internet Explorer. The settings that Ive chosen at wordpress are show full posts in feed.
I wanted to mesh em up and then input to your plugin
I burned all the feeds at feedburner and combined them through yahoo pipes.
This is the new feed : http://pipes.yahoo.com/pipes/pipe.run?_id=e28ad40581e6ffa4a6a84ac12a914a0a&_render=rss
again the new feed shows complete content in IE but in FF it shows summary of the blog posts and the same thing is happening in your plugin. It’s taking input from both forum feeds but not showing content from blog feed. What could be the possible problem behind the summary/full feed difference in different browsers and why is plugin unable to pickup the photos. Once again amazing plugin and thanks for giving it out to all of us
Regards,
Hamad
#9 by Spencer on November 23rd, 2009
Hey @Hamad,
I’m not sure I understand the problems you’re having so I just want to clarify.
You’re combining three feeds into one using yahoo pipes (and routing the source feeds through feedburner). But the feed from your blog only shows the summaries in the new combined feed, and none of the pictures from that source show up in RSSPhoto. Is that a good summary?
If that’s the case, this is an issue I’ve been struggling with myself. There are a million different ways people embed pictures and text into RSS feeds, and hence there are a million different ways of interpreting them. I’m guessing this is the root of your problem – probably IE and FF interpret different RSS tags differently, such as enclosure and description tags, and choose to display different representations of an RSS item. Again I haven’t researched the issue, but it’s an educated guess.
In its current form, RSSPhoto assumes a feed is structured the same way across all feed items, so it makes sense that pictures from the one feed that’s different aren’t showing up.
My first suggestion then would be to figure out how to make the sources look the same. As to how to do this, one idea might be to pull out Atom feeds instead of RSS feeds, as Atom feeds seem to have a more common structure across implementations.
If using Atom feeds isn’t possible, another idea would be to look through options provided by feedburner or the three source feed generators. For example, try to put photos as enclosures in all feeds, then set $rss_type_src = ‘Enclosures”; in RSSPhoto.class.php (or equivalently put photos in descriptions).
These are just some ideas – as I mentioned, I’ve never used feedburner or yahoo pipes so I won’t be able to give you too much help with those services.
Good luck,
Spencer
#10 by Hamad on November 23rd, 2009
Hey,
Yes you understood the problem right.
I read about the FF issue with the feeds. FF forces to show the “Description” of the feed even if the content is available. The only way to override this is to comment/delete some code from rss2.php so, FF gets left with the content only and show that.
By altering the code my FF started showing the complete feed for the blog. However, I still haven’t been able to confirm if the plugin will start to act fine after that because the feedburner and yahoo pipes take sometime updating themselves.
I wanted to highlight the fix here for others
1. Open file.
/wp-includes/feed-rss2.php
2. Find following lines
<![CDATA[]]>
<![CDATA[]]>
3. Now comment out last line. We can remove it too but commenting is safe option. So it will look like…
<![CDATA[]]>
<!- -
<![CDATA[]]>
– ->
4. Save file. That’s it.
#11 by Hamad on November 23rd, 2009
I missed to copy some parts. Here is the fix : http://www.devilsworkshop.org/force-firefox-to-display-your-full-feeds-wordpress-hack/
#12 by Hamad on November 23rd, 2009
Yes, the changes also depicted in slideshow, you might like to include the above information for wordpress feeds.
Regards and thanks
#13 by Spencer on November 23rd, 2009
I’ve noticed a problem where RSSPhoto will attempt to load photos from empty enclosures. v0.6.5 now approaches enclosures more intelligently and will disregard enclosures without a link or with unrecognized mime-types/medium specifications.
Thanks,
Spencer
#14 by Spencer on November 24th, 2009
The updates have been rolling out fast and furious!
The most recent version, 0.6.6, rolls up a lot of fixes I’ve encountered while troubleshooting various feeds. In this version, all the feeds mentioned in these comments work out of the box, with the exception of one which needs a SimplePie setting change (to force SimplePie to load the feed b/c the file’s not specified as an XML file). The bottom line – no more editing source files to change the rss_type_src variable!
Ultimately I hope to get RSSPhoto to intelligently recognize and interpret as many implementations of RSS and Atom feeds as possible – without little tweaks here and there in the source code or otherwise.
#15 by Alan on November 25th, 2009
Spencer,
Thanks for being so quick with all the updates! I’m glad that mobile me got added in. I’ve updated to 0.6.6 and for some reason my mobile me feed doesnt bring back any results in the widget or in a dedicated page. Is there something I’m doing wrong?
#16 by Bruce on November 25th, 2009
Hi Spencer,
I’m getting this error using the plugin after following all the directions (http://sureknockjones.com/v1/)
It says
Fatal error: Call to a member function get_thumbnail() on a non-object in /home/backerm2/public_html/sureknockjones.com/v1/wp-content/plugins/rssphoto/RSSPhoto.class.php on line 446
What do you think I should do?
Thanks!
#17 by Spencer on November 26th, 2009
Just to add some closure on the comment above – the problem is fixed with v0.6.7. The cause was (yet another) different way of specifying jpeg as a mime type.
#18 by Chris on November 26th, 2009
I really like this plugin concerning the idea. But I cannot use it, because the necessary plugin “SimplePie-Core 1.1.1″ cannot be activated with WordPress 2.8.6. SimplePie-Core causes a “fatal error”:
Fatal error: Out of memory (allocated 31719424) (tried to allocate 1245184 bytes) in /homepages/25/d13574424/htdocs/v0_kunstblog_neu/wp-content/plugins/simplepie-core/simplepie.inc on line 5348
And when I only try to activate plugin RSSphoto, it says “Fatal error: Class ‘SimplePie’ not found in /homepages/25/d13574424/htdocs/v0_kunstblog_neu/wp-content/plugins/rssphoto/RSSPhoto.class.php on line 70″
Isn’t there any workaround, so that I don’t need this SimplePie-Core? Your plugin is such a great idea and so helpful for me, so that I’m really sad about not getting it to work (I use your version 0.6.8).
Any idea?
Many thanks.
#19 by Spencer on November 26th, 2009
Hey @Chris,
Sorry to hear you’re having so many problems! Unfortunately there’s no easy way to avoid the SimplePie Core plugin. It’s fundamental to how RSSPhoto reads RSS and Atom feeds.
That said, I do have a few ideas. First, I’m surprised you’re having problems activating the SimplePie Core plugin. I’m using WordPress 2.8.6, and SimplePie Core 1.1.1 activates just fine for me. There must be some problem here, perhaps a server issue? It might be worth investigating through the SimplePie forums. Without SimplePie Core, RSSPhoto will definitely not activate for exactly the reason you encountered.
Has anyone else had a problem with SimplePie Core and WordPress? I’ve never seen any other reports of problems. If it turns out to be a general problem, I’ll certainly investigate other methods of parsing RSS/Atom feeds.
I hesitate to even suggest this, but it’s an option – you’re welcome to pull the HTML off my site (i.e., view the source and copy/paste the RSSPhoto HTML) and hard-code your own images. You’d also need rssphoto.css and rssphoto.js from the plugin download.
If it were me, I’d probably want to figure out why SimplePie Core isn’t activating, since it may be indicative of deeper problems with your environment.
#20 by Chris on November 27th, 2009
Thank you for your help. I have de-activate all other plugins – SimplePie causes the same fatal error. Every other things are working fine. Is RSSphoto not based, or something like the flickrRSS? I have used it some day agao, and it works fine. No, I have it no longer in my WordPress, it’s not the reason for SimplePie not working. FlickrRSS can only be used as sidebar widget, but I’m looking for a plugin, that can place the photos from an RSS into a post or page – and from whereever … so your plugin seemed to be the best for it. I don’t know, where to look and what to do, to get it work
#21 by Spencer on November 27th, 2009
Hey @Chris,
So, I decided to look more into how flickrRSS parses RSS feeds and I have discovered, to my surprise, that WordPress actually comes with SimplePie already integrated (as of WP 2.8)! Thanks for the inspiration to investigate this, as I’ve been thinking all along that I needed the SimplePie core plugin installed separately. This will simplify installation for most everybody. There may be a few exceptions where some SimplePie options need to be modified.
I’ll be releasing an update that no longer requires the SimplePie Core plugin in the near future, but for now here’s a quick fix for you.
Edit RSSPhoto.class.php
Find the lines that look like this:
// initialize SimplePie object
$this->feed = new SimplePie();
$this->feed->set_cache_location($this->cache_location);
$this->feed->set_feed_url($this->url);
$this->feed->force_feed($this->force_feed);
$this->feed->init();
And change them to look like this:
// fetch feed using built-in functon
$this->feed = fetch_feed($this->url);
You should be good to go. Please keep me updated on how it works out.
Thanks,
Spencer
#22 by Spencer on November 27th, 2009
And just like that the previous comment is already outdated as v0.7 was just committed. This version removes the requirement for the SimplePie Core plugin.
If you want to remove the SimplePie Core plugin, you’ll need to de-activate RSSPhoto first, then de-activate and uninstall SimplePie Core, then re-activate RSSPhoto.
I’ll be keeping an eye out for issues with the new feed parsing method and should be able to keep things working in a timely fashion if any problems do crop up.
#23 by Hamad on November 27th, 2009
The plugin was working perfect. Updated to 0.7 today and this is what it says
“The thumbnail cache specified as wp-content/cache does not exist”
#24 by Hamad on November 27th, 2009
I opened my host and checked the cache folder.. all the files are there.
#25 by Hamad on November 27th, 2009
My blog is uploaded here http://www.koolmuzone.com/main/
but opens here
http://www.koolmuzone.com
is the error inducing because these change in address?
The error wasn’t there before. It occurred as soon as i updated.
#26 by Spencer on November 27th, 2009
@Hamad -
Thanks for the quick feedback. I didn’t encounter that problem in my own testing. I’ve just committed v0.7.1 which is a bug fix release targeted at that issue and one other layout issue I found.
Thanks,
Spencer
#27 by Scott on November 29th, 2009
I’m in the same situation as Hamad in post #25. When I changed my blog’s homepage, the plugin went from working perfectly to telling me the cache folder wasn’t writable.
I’ve since updated to v0.7.1 and am no longer getting the message, but the plugin won’t display photos. I did try the different $rss_type_src variables.
Any ideas?
(This is for a wordpress.com feed.)
#28 by Chris on November 30th, 2009
Hi Spencer,
thanks a lot for your quick updates! I used now version 0.8.
I added into a page:
[rssphoto url="http://vi.sualize.us/rss/csign/malerei/"]
and get the error:
WP HTTP Error: Couldn’t resolve host ‘«http:’
The feed-URL I used is from http://vi.sualize.us/ and in that special case, the URL that they provide by their rss-icon (works perfect in my Outlook RSS-Reader):
http://vi.sualize.us/rss/csign/malerei/
I added this URL to your code provided for pages, but it causes the error above.
Before installing RSSphoto 0.8, I’ve deleted the old SimplePie-plugin and the old RSSphoto.
I guess, the error has something to do with the kind of URL?
#29 by Chris on November 30th, 2009
I just have discovered, that I have this error
WP HTTP Error: Couldn’t resolve host ‘«http:’
if I add the RSSphoto shortcode into a page as well as if I use the Flickr RSS of my photos there.
In the sidebar (with your widget) nothing is shown but the headline.
Do you have any idea?
#30 by Chris on November 30th, 2009
Another try:
I changed in RSSPhoto.class.php ‘Choose’ to ‘Description’ because the source code of the rss feed I’d like to use says something about “description”, where the photos appear (see source code of here: http://vi.sualize.us/rss/csign/malerei/), but the same error, in widget and with shortcode in a page:
WP HTTP Error: Couldn’t resolve host ‘«http:’
#31 by Spencer on November 30th, 2009
Hi @Chris,
Sorry to hear you’re having problems again! Just to confirm, it was working in v0.7.1 and it stopped in v0.8?
I’ve checked out your feed and it seems to be working fine on my test wordpress site both in shortcode and in the Widget. I’m guessing we’re still dealing with problems between our environments.
Could you enable the debug mode? In RSSPhoto.class.php, set var $debug = 1; (near the top). Then, view the source and find some commented code that begins “RSSPhoto v0.8 debug output START” and ends similarly. Send me that output and let’s see if that can help us figure out what’s going on.
#32 by Chris on November 30th, 2009
Thank you very much for your great support, Spencer.
Here is the source code:
images; setting status to -1
RSSPhoto v0.8 debug output END
–>
If this helps, this is the page:
http://kunstblog.birgit-heinz.de/inspiration/
The shortcode of RSSphoto is in the page, and in the sidebar of this page, too. In the sidebar it shows only a white rectangle (the last widget at the bottom of the sidebar).
By the way: if I use Flickr-RSS, it works, see in the sidebar above. I have no idea, why RSSphoto don’T want to work
#33 by Chris on November 30th, 2009
By the way, I haven’t used and tested 0.7.1, because I have not been online until now, so I haven’t seen your comment; so I have used your newest version 0.8.
#34 by Chris on November 30th, 2009
The source-code of debugging has not worked in this comment. I posted this code here:
http://pastie.org/720644
#35 by Spencer on November 30th, 2009
Hey @Chris,
Thanks for pasting that code and also for sending me the address for your site. If you leave the debug mode on, I can just view it from the source of your site directly and you shouldn’t have to paste it anywhere. Although I do like that site you used.
So it’s evident that the call to getimagesize() is failing for some reason. I’ve introduced some more advanced debugging output in a development version: http://downloads.wordpress.org/plugin/rssphoto.zip
Do you mind dowloading and trying that out? It will output the specific error from getimagesize() along with the other debug output.
Thanks,
Spencer
#36 by Chris on November 30th, 2009
Hi Spencer,
thanks a lot for your time. I have uploaded your new version, same page and same last sidebar widget at this page as mentioned before.
I don’t have any idea on the new debug messages. It’s late here and I will be back tomorrow morning. Thanks in advance.
Chris
#37 by Spencer on November 30th, 2009
Hey @Chris,
No problem, thanks for working with me. The debug output was very helpful and indicates that your server has the PHP option allow_url_fopen disabled. This means that functions like getimagesize and the GD library can’t open remote images, only locally stored images.
I’ve added a provisional method for dealing with this situation to the development version. When you get a chance tomorrow, download it (same link, http://downloads.wordpress.org/plugin/rssphoto.zip) and try it out.
Let me know how it goes -
Thanks,
Spencer
#38 by Chris on November 30th, 2009
Me again
I just worked at my site, but now I’m really tired.
But I have just installed your newest version 0.8.2.
You let me know please, if I should have to put into the page another kind of shortcode or something like that?
At the moment, the content of the page is still:
[rssphoto url="http://vi.sualize.us/rss/csign/malerei/"]
Same Feed URL in last sidebar widget.
It still has the same error message. You’re right, allow_url is disabled: http://i47.tinypic.com/2w36r04.jpg
Let me know, if you need some other informations from me.
Thanks for having so much time to get it work. I’ve never met a plugin’s author, who keeps so much care. Thanks. (sorry for my bad English)
Now it’s far after midnight … I’ll look at here tomorrow again.
Christina
#39 by Spencer on November 30th, 2009
Hey @Christina -
Always fun to be burning the midnight oil for a website.
I’m glad I can be helpful. The interaction is a good part of why I enjoy maintaining this project.
In the version you tried last, I managed to miss one of the places I use getimagesize on a URL so the code failed out and removed that image even though it might have worked.
So, when you get up at noon tomorrow
check out the dev release again http://downloads.wordpress.org/plugin/rssphoto.zip and see how it goes.
Thanks,
Spencer
#40 by Chris on December 1st, 2009
Hi Spencer, noooo, it’s not noon, just 1 hour before
I’ve uploaded your newest version and …tatatataaaa … in the sidebar it works, in the page itself not.
I’ve put in sidebar twice your plugin: once as a slideshow and below as a static, if you would like to test there anything.
By the way: I like very much, that we can use your plugin with more than 1 widget, several times.
In the page itself I have the same code:
[rssphoto url="http://vi.sualize.us/rss/csign/malerei/"]
But:
WP HTTP Error: Couldn’t resolve host ‘«http:’
I don’t understand, why a page don’t like this code, although it worked in the sidebar?
By the way: I tested the code by adding it into a post, too, with this code:
[rssphoto url="http://vi.sualize.us/rss/csign/malerei/"]
This is the link to the test posting:
http://kunstblog.birgit-heinz.de/2009/11/test/
But there’s the same error message as with RSSphoto in a page:
WP HTTP Error: Couldn’t resolve host ‘«http:’
My intention there is: I would like to show in weekly postings inspirations for paintings. For this I have planned to add RSSphoto into a posting with some description text above and below the images coming from RSSphoto.
I use vi.sualize.us for my image bookmarks, because there are not only images from flickr, and there is a nice firefox plugin for adding images with just 1 click to vi.sualize.us.
And RSSphoto places itself obviously always on top in a page or posting, regardless of any text above or below the RSSphoto-code.
In the posting, mentioned above, I’ve added this text/code:
http://pastie.org/721535
I guess, you’ll make it … I’m very happy that we’ll succeed in some time
#41 by Hamad on December 1st, 2009
0.8 was working great and as I upgraded it says “Bad image URLs” :S
#42 by Chris on December 1st, 2009
Good morning, Spencer
#43 by Spencer on December 1st, 2009
Hey @Hamad,
I looked more into your issue and found the problem. It’s not the upgrade that broke, but a recently added item to that Yahoo Pipes feed has only a Flash SWF in it, and I wasn’t handling that case very well. If you want to check out the dev version (http://downloads.wordpress.org/plugin/rssphoto.zip) it should be fixed.
Thanks,
Spencer
#44 by Spencer on December 1st, 2009
Hey @Chris – buenos dias, as they say in Spain.
I’m so happy that something finally worked! That was a long time coming, but we figured at least one problem out.
I guess there are two problems left then – the Shortcode doesn’t display anything except that WP HTTP Error and the positioning of the Shortcode output in the post.
Let’s start with the Shortcode displaying for now. I dug into the WordPress code a little bit, and that seems to be a pretty fundamental error – meaning the “WP HTTP Error” part comes from code that’s used to request other, remote pages; the “Couldn’t resolve host” part I think comes from PHP itself when it tries to execute the request.
If it were my own site, I could just go adding print statements willy-nilly throughout the WordPress code and track it down like that. But where we’re debugging through a commenting system on a blog…
things get a little harder. It’s also unfortunate that I haven’t been able to replicate the problem from my sites.
The first thought I had is why that strange « character is there in the URL. The problem could be that somehow the URL string in quotes is getting mangled as it’s read out from the shortcode and passed around. So could you try taking the quotes out so it’s just like
[rssphoto url=http://vi.sualize.us/rss/csign/malerei/]?
Then try single quotes. Then try my feed url with/without single and double quotes:
[rssphoto url=http://www.spencerkellis.net/atom.php]
If we’re lucky, one of these things will work.
Thanks,
Spencer
#45 by Spencer on December 1st, 2009
Hey @Chris – another thing to try: edit RSSPhotoShortcode.class.php and on line 44 it should say currently:
‘url’ => ‘http://photography.spencerkellis.net/rss.php’
Edit that to show your feed url so it’s like
‘url’ => ‘http://vi.sualize.us/rss/csign/malerei/’
Then in the shortcode, just put
[rssphoto]
Without any attributes (the value modified above is the default value so if nothing’s specified it will just use that URL).
Thanks,
Spencer
#46 by Hamad on December 1st, 2009
hello
upgraded to 0.82
plugin displays slideshow with this code
function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Name or service not known [in /home/koolmuzo/public_html/main/wp-content/plugins/rssphoto/RSSPhoto.class.php on line 205] [*] PHP ERROR [2] getimagesize(http://photos-f.ak.fbcdn.net/photos-ak-snc1/v2682/169/54/1153080069/n1153080069_30498645_4995514.jpg) [function.getimagesize]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known [in /home/koolmuzo/public_html/main/wp-content/plugins/rssphoto/RSSPhoto.class.php on line 205] [*] Failed to open image at http://photos-f.ak.fbcdn.net/photos-ak-snc1/v2682/169/54/1153080069/n1153080069_30498645_4995514.jpg using getimagesize() in function create_thumbnail(): returning false [*] Failed to add image at http://photos-f.ak.fbcdn.net/photos-ak-snc1/v2682/169/54/1153080069/n1153080069_30498645_4995514.jpg because create_thumbnail() returned false Feed is of type RSS There are no enclosures in the feed; looking for images in the description Evaluating http://i453.photobucket.com/albums/qq255/kingjawad007/benx/n733833006_1318069_3003.jpg Relative wordpress path found to be /main Automatically-resolved cache directory is main/wp-content/cache Final thumbnail path is main/wp-content/cache/rssphoto-b34b1fd6bb4580e48eccd471b464fbe2-167×200.jpg Final thumbnail URL is http://www.koolmuzone.com/main/wp-content/cache/rssphoto-b34b1fd6bb4580e48eccd471b464fbe2-167×200.jpg Evaluated thumbnail: orig 453×604; crop 453×377; thumb 198×165 Adding locally stored file http://www.koolmuzone.com/main/wp-content/cache/rssphoto-b34b1fd6bb4580e48eccd471b464fbe2-167×200.jpg In function check_thumbnails(), there are 22 images in $this->images; setting status to 1 RSSPhoto v0.8.2 debug output END –>
#47 by Hamad on December 1st, 2009
works fine now :s It’s a weird world
#48 by Chris on December 1st, 2009
Hi Spencer,
thanks for your instructions.
ok, I just have tried what you’ve said in #45, it shows images, but not mine
Ok, now I will try your instructions of comment #44 … wait a moment …
#49 by Spencer on December 1st, 2009
@Hamad, glad to hear it. Sorry for the little blip, not sure why that happened.
#50 by Chris on December 1st, 2009
OK, it works, you are simply the best
Thank you very much.
It shows your (?) photos, if I do like your comment #45.
Then I have done it like you have said in comment #44. This works fine with no quotes at all:
[rssphoto url=http://vi.sualize.us/rss/csign/malerei/]
Now I have “only” some small problems
I haven’t found anything, where to make changes, so that the text line, that I have added BEFORE the RSSphoto-code appears really BEFORE.
The code of my page:
http://pastie.org/722030
looks like this:
http://i49.tinypic.com/2u77xqu.jpg
And although I have changed in RSSPhoto.class.php in line 73 “Slideshow2″ to “Static” it shows in this page only the slideshow.
Where can I add attributes to the code of the page as you offer it for the widget (size, number of items/images …)?
Nearly we (you
) got it. Thanks for your help, Spencer!