A customizable plugin to display photos from an RSS or Atom feed as a widget or shortcode.
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.
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).
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'.
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
var $force_feed = true;
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). Here's a link to the SimplePie Core plugin.
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!
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.
Please feel free to leave a comment at the plugin's website. 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.