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:

  1. If it doesn’t already exist, create the directory `/wp-content/cache` and give it permissions of 755
  2. Upload all files to the `/wp-content/plugins` directory (consider creating an rssphoto subdirectory to hold the plugin files)
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

To use the widget:

  1. Navigate to the ‘Widgets’ section of the ‘Appearance’ menu in WordPress
  2. Drag the widget to the sidebar
  3. Configure the widget as needed

To use the shortcode:

  1. Edit the page you want to display the images
  2. Add the following text to the page:
    [rssphoto url="your.url.com"]
  3. 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:

  1. The plugin needs to be installed and activated.
  2. Copy and paste the contents of the file RSSPhotoTheme.functions.php to the end of the file functions.php in your theme directory.
  3. Declare RSSPhoto settings (multiple instances are supported).
  4. 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:

  1. (title) Title: Text that appears over the RSSPhoto image(s). “String in quotes”
  2. (url) URL: address of the RSS or Atom feed. “http://your.url.com/feed.xml”
  3. (height) Height: height of the RSSPhoto images in pixels; or, ‘variable’ to maintain the aspect ratio given the specified width (see #4). [Number]|”variable”
  4. (width) Width: width of the RSSPhoto images in pixels; or, ‘variable’ to maintain the aspect ratio given the specified height (see #3). [Number]|”variable”
  5. (img_sel) Image selection: the script can randomly select images or just display the first image in the feed item. “Random”|”Most Recent”
  6. (num_img) # Images per Item: how many images embedded in each feed item to display. [Number]
  7. (item_sel) Item Selection: RSSPhoto will choose a random feed item, or the most recent feed item. “Random”|”Most Recent”
  8. (num_item) # Items: choose how many feed items to display. [Number]
  9. (show_title) Show Title: whether to display the main RSSPhoto title over the images. 1|0
  10. (show_img_title) Show Image Titles: whether to display the titles of each displayed thumbnail. 1|0
  11. (output) Output: images will load as a slideshow or can be displayed statically. “Slideshow2″|”Slideshow”|”Static”
  12. (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

screenshot-1
screenshot-2

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. #1 by arabic on August 5th, 2009

    nice plugin , thank you

  2. #2 by baron on August 6th, 2009

    Works great, thank you

  3. #3 by mark berck on August 6th, 2009

    It gives me an error….

    Fatal error: Class ‘SimplePie’ not found in /home/username/public_html/wp-content/plugins/rssphoto/rssphoto.php on line 40

  4. #4 by Spencer on August 6th, 2009

    mark berck :

    It gives me an error….

    Fatal error: Class ‘SimplePie’ not found in /home/username/public_html/wp-content/plugins/rssphoto/rssphoto.php on line 40

    Hi Mark,

    Thanks for downloading RSSPhoto. The error you’re getting is probably because the SimplePie Core plugin isn’t installed or activated. That’s the plugin I used to read the RSS and Atom feeds.

    Here’s the link: http://wordpress.org/extend/plugins/simplepie-core/

    Let me know if you still have problems. I’m happy to help till we get it figured out.

  5. #5 by mark berck on August 6th, 2009

    Spencer :

    mark berck :
    It gives me an error….
    Fatal error: Class ‘SimplePie’ not found in /home/username/public_html/wp-content/plugins/rssphoto/rssphoto.php on line 40

    Hi Mark,
    Thanks for downloading RSSPhoto. The error you’re getting is probably because the SimplePie Core plugin isn’t installed or activated. That’s the plugin I used to read the RSS and Atom feeds.
    Here’s the link: http://wordpress.org/extend/plugins/simplepie-core/
    Let me know if you still have problems. I’m happy to help till we get it figured out.

    Thanks, I’ll read the freaking manual next time ;-0

  6. #6 by Spencer on August 6th, 2009

    haha :) no problem.

  7. #7 by amix on August 10th, 2009

    Can this be used from a template level?

  8. #8 by Spencer on August 10th, 2009

    I haven’t designed or modded WordPress templates yet (on my to-do), but I don’t see why it wouldn’t work, perhaps with a bit of massaging. I would be happy to offer coding support if you want to try it out.

  9. #9 by Daniel on August 11th, 2009

    Hello,

    Got the SimplePie core installed, and the widget pointing to my feedburner feed. I’ve tested it with my regular feed but I am still not getting anything but the widget title to show up. I’ve setup the cache folder under wp-content and set the permission to 755. I do not see any content building in this folder though. Anything I am missing? Seems like a great plugin. Thanks for the support.

  10. #10 by Spencer on August 11th, 2009

    Hey Daniel,

    This is likely due to an issue I just discovered today where the thumbnails for some feedburner feeds (psdtuts, e.g.) are in the description tag instead of the content tag of the XML feed. Look for an update in the near future, probably tonight, with a fix. I’ll send you an e-mail when I post it so you can try it out and let me know if that fixes the problem

    Thanks,
    Spencer

  11. #11 by pure on August 23rd, 2009

    hi, i installed this and it works, however, the image is showing at a very small size: 120px × 27px

    in the settings i put max width 516

    can you please help?

  12. #12 by victor on August 24th, 2009

    Can this be used to display photos on a page instead of a sidebar?

  13. #13 by Spencer on August 24th, 2009

    @Pure – Sure, I’d be glad to help. First can you send me the feed you’re using and the site you’re testing on if possible? I’ll verify that it works on my site and then we can figure out what’s going wrong.

  14. #14 by Spencer on August 24th, 2009

    @Victor – The plugin itself isn’t set up to do that, but I’d be happy to help you use the basic code to set the page up.

  15. #15 by pure on August 24th, 2009

    whats your email so i can send you the file, and what is the file called rss.php?

    thanks

    Spencer :
    @Pure – Sure, I’d be glad to help. First can you send me the feed you’re using and the site you’re testing on if possible? I’ll verify that it works on my site and then we can figure out what’s going wrong.

  16. #16 by pure on August 26th, 2009

    its puregraffiti.com/art i enabled the plugin and added the feed for my picture gallery here: puregraffiti.com/graffiti-space/

    the rss feed for the pictures gallery is:
    http://www.puregraffiti.com/graffiti-gallery/rss.php

    and i add the widget to the blog at puregraffiti.com/art and it displays it in that small size no matter what.

    thanks for your help i would really like to use your plugin on my blog

  17. #17 by pure on August 26th, 2009

    the url i added on the rssphoto admin is this url:
    http://www.puregraffiti.com/graffiti-gallery/rss.php?type=rss2

    and the settings i chose where:

    Feed Item Selection:
    Most Recent

    Image Selection:
    Random

    Pull Images From:
    Content
    Description
    (tried both and they both showed the image in small size)

    Display Settings
    Fixed Dimension:
    Width

    Dimension Size (px):
    516

  18. #18 by pure on August 26th, 2009

    i just enabled it on my blog to see if it would work and now its showing a new image of size: 120px × 90px even with the settings above

    thanks

  19. #19 by Ron Mirasol on August 26th, 2009

    thanks for a great plug-in. any chance you can update it to be able to display multiple pictures?

  20. #20 by Spencer on August 27th, 2009

    @pure,

    I took a look at your feed and I think I know what’s happening. RSSPhoto pulls images straight out of the RSS feed, so it’s actually loading the small thumbnails displayed in the feed.

    Can you modify the RSS feed of your gallery to include larger thumbnails?

  21. #21 by Spencer on August 27th, 2009

    @ron,

    Yeah, I can update the plugin to include an option like that. Give me a day or two and I’ll have it out.

  22. #22 by mesaboogie on August 30th, 2009

    just downloaded the plugin along with simple pie .. both plugins are activated and it works great with your feed … when I go to put in my feed I get nothing … the website is http://www.shitsangiggles.com
    the RSS feed for the site is
    http://shitsangiggles.com/index.php?x=rss

    for the life of me I can’t figure out what I’m doing wrong … the website is done with pixelpost which is a photoblog … can you please help me .. THANKYOU

  23. #23 by Spencer on August 30th, 2009

    @mesaboogie, Hey, thanks for downloading RSSPhoto. It looks like the images from your RSS feed are in the description, not the content, of your RSS feed. Have you tried changing that setting in the widget config page? (In RSSPhoto v0.4, that would be “Pull Images from” and you’d want to make sure “description” was selected.) Let me know if that helps -

    Thanks,
    Spencer

  24. #24 by mesaboogie on August 31st, 2009

    thanks for the reply … tried changing it to the description and it still doesn’t work … the only way I can get it to work is if I burn the feed through feedburner and then it works … I would like to use the original RSS feed and no matter what I change it doesn’t work … do you have any other suggestions …

  25. #25 by mesaboogie on August 31st, 2009

    me again … just tried one more time to get it to work with the original feed and it just won’t … maybe you can try it on your end, the original feed is this

    http://shitsangiggles.com/index.php?x=rss

    this is the feedburner feed and it works if I use it

    http://feeds.feedburner.com/ShitsAnGiggles

    for the life of me I can’t figure out why it won’t work with the original feed ..

  26. #26 by Spencer on August 31st, 2009

    @mesaboogie,

    I think I understand what’s going on now. The problem is the PHP generating your RSS feed doesn’t set the correct headers identifying the text as XML, so the SimplePie Core plugin doesn’t load the feed correctly. Check out the warning at this link for more information:

    http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fshitsangiggles.com%2Findex.php%3Fx%3Drss

    I copied and pasted the content of your feed into a file called “sample.xml” in a sample WordPress install and everything works fine:

    (sandbox): http://test.spencerkellis.net/wordpress/
    (sample XML, just to verify it’s the same): http://test.spencerkellis.net/sample.xml

    To fix this problem, you need to add a line like:

    header(‘Content-type: text/xml’);

    before any text is output to your RSS feed. Let me know how it goes and if I can help in any way.

  27. #27 by mesaboogie on August 31st, 2009

    thank you … sorry for being confused but where do I add this line …

    header(’Content-type: text/xml’);

  28. #28 by mesaboogie on August 31st, 2009

    me again … could you PLEASE tell me where to add the line of code to fix the problem … you have the RSS feed working perfect and I have no idea where to put the code in order to make it work for me …. I REALLY APPRECIATE ALL YOUR HELP … THANK YOU

  29. #29 by Spencer on September 1st, 2009

    I just wanted to document the solution to the above discussion with mesaboogie since we resolved it outside the comment section of this blog.

    The problem was a wrong media type, although it appears pixelpost does include the correct headers. The SimplePie class, by default, will refuse to parse feeds that are not XML.

    The solution is to set the SimplePie option “force_feed” which forces SimplePie to parse the feed despite the incorrect media type. In v0.4, this required adding a line just above current line 72:

    $feed->force_feed(true); // new line
    $feed->init(); // original line 72, now line 73

    In v0.5, a variable has been added to access this fix. Look for

    private $force_feed = false;

    and change the value to true:

    private $force_feed = true;

    This solution (v0.5) is also documented in the FAQ now on this page and at http://wordpress.org/extend/plugins/rssphoto/faq/

  30. #30 by Ron Mirasol on September 3rd, 2009

    hey Spencer, I’m still on 0.4 – are you going to be adding back multi-widget support? thanks!

  31. #31 by Spencer on September 3rd, 2009

    hey Ron, I’ll be working on multi-widget support in an upcoming release. to be honest, the way I did it before was a bit of a hack and there’s not a whole lot of great documentation on supporting multi-widgets in WordPress 2.8+ so it’s basically a matter of reading through what’s available and figuring it out. i’ll let you know when it’s ready though, and hopefully that will be sooner than later. :)

  32. #32 by handig on September 4th, 2009

    Hi,
    It works great. Is there a way to include the feed item title in the slideshow?

    And would it be possible to use an url out of the description field instead of the feed url? So if you click on the photo it goes directly to the page of the photo.

  33. #33 by Spencer on September 5th, 2009

    Hi handig, thank you for the questions/suggestions. Are you referring to the shortcode or widget?

  34. #34 by marketmike on September 16th, 2009

    I am hoping to get a plugin to work with this feed http://www.missingkids.com/missingkids/servlet/XmlServlet?act=rss&LanguageCountry=en_US&orgPrefix=NCMC&state=FL and to show image of child and description text and link to the childs record on missingkids.com. I installed the plugin and it does not seem to be recognizing my feed or at least I assume it doesn’t as the widget loads on page with widget titel but no content. If I use your defaul feed url… I see an image. Guess my 2 questions are… can it work with the feed I provided and can the description text be displayed along with the image?

    Thanks
    Mike

  35. #35 by Spencer on September 17th, 2009

    Hey Mike,

    Thanks for checking out RSSPhoto. I found the problem and I’ve checked in a new version, 0.6.1, with a fix. That feed should display fine now (but let me know if you have problems).

    As for showing the description, first change the display method to “Static” instead of “Slideshow”. Then, edit RSSPhoto.class.php and find the line (near the top) that says

    var $show_desc = false;

    and change it to

    var $show_desc = true;

    This will show the description text.

    Thanks,
    Spencer

  36. #36 by marketmike on September 17th, 2009

    Spencer,

    Awesome…. works… in what file can I edit the layout so the image aligns left of text! Also, when you selecte static… does it NOT load the jquery. I already have Jquery loaded from Google and would not want the extra load!

    Thanks Mike

  37. #37 by Spencer on September 17th, 2009

    To prevent jquery from being loaded again, check out the RSSPhotoWidgetInit function in rssphoto.php – comment or delete the line wp_enqueue_script(‘jquery’).

    You can change the alignment using CSS. Look for .rssphoto_static div and change the text-align:center; line.

    Thanks,
    Spencer

  38. #38 by Joan on September 24th, 2009

    Hello Spencer,
    thank you for this great plugin.
    I’m looking to show a list of photos (+20) from different feed sources. Is there any way I can do this with your plugin?
    You can see what I mean in this site: http://barcelonaphotobloggers.org
    Thank you!

  39. #39 by Spencer on September 24th, 2009

    Hi Joan,

    Thanks for checking out RSSPhoto. There’s not currently a way to pull photos from multiple feeds in a single RSSPhoto widget. If you can get those multiple sources into a single feed, you can use the “static” display option to create a display very similar to the example you posted.

    Another option would be to suppress the title from displaying (I can help with that since it’s not an option in the rssphoto settings) then put multiple rssphoto instances in the sidebar. Without a title, the instances wouldn’t be separated by anything and would appear similar to that example.

    Good luck and let me know if I can help any more,
    Spencer

  40. #40 by Joan on September 24th, 2009

    Thank you for your fast reply, Spencer!
    I will check out the proposed solutions.
    I’ll come back to you if I need more help.
    Regards!

  41. #41 by ilhaverde on October 6th, 2009

    Hi

    Thanks for the great plugin. One of my favorites. I’m experiencing a problem that I hope there is a solution for.

    First, installed is: WP Version 2.8.4, RSSPhoto Version 0.6.1 and SimplePie Core Version 1.1.1

    This is the error message I’m getting

    Warning: Invalid argument supplied for foreach() in /home/myaccount/public_html/Blog/wp-content/plugins/rssphoto/RSSPhoto.class.php on line 96

    It doesn’t show on every page load but when it does show, the slideshow still works.

    this is the code bit it’s referencing

    foreach($image_url as $url)

    I have no clue what to do with it.

    Have you seen this problem before?

    Thanks
    ilhaverde

  42. #42 by Spencer on October 6th, 2009

    Hi ilhaverde,

    Thanks for using RSSPhoto and I’m glad you like it so much. That error is an indication that the plugin is pulling something out of the RSS feed by mistake (e.g., not really a photo). Can you send me the RSS feed you’re using? I’ll take a look at it and see if I can figure it out.

    I will be traveling in the next little bit so I apologize in advance for any delays. I promise to figure it out though. :)

    Thanks,
    Spencer

  43. #43 by ilhaverde on October 6th, 2009

    Thank you so much for such a quick reply. Your really on top of things!

    here’s the feed link

    http://booksandunusuals.com/index.php?main_page=rss_feed&feed=new_products

  44. #44 by Scott on October 14th, 2009

    I’m loving the idea of this plugin but having trouble getting it to display anything. Is it my feed? I’m using:

    http://lookingaroundme.wordpress.com/feed/

    This is a wordpress.com blog that I make entirely with my iPhone. I’m trying to pull the latest photo into another site. Thanks for any help you can offer!

    -scott

  45. #45 by Grace on November 6th, 2009

    Hello, thank you for this widget! it’s working perfectly for me.

    I wonder if there is a way to hardcode the plugin into my site, without using widgets or the shortcode.

    Is there a code I can put directly in a page template?

  46. #46 by Spencer on November 9th, 2009

    @Grace,

    Hey, glad you like the widget. If you’re using v0.6 or later, you can use the following template in any file (e.g., sidebar.php):

    <?php
    $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]);
    ?>

  47. #47 by Spencer on November 9th, 2009

    @Scott,

    The problem you’re having is because the images in your feed are embedded in the feed content and not as an enclosure or the description. It seems every feed generation system likes to put images in a different place and I’m still figuring out the best way to intelligently choose (on-line) where to pull images from.

    For now, though I committed a new version, 0.6.2, which includes a workaround. On line 33 in RSSPhoto.class.php, change the value of the variable $rss_type_src from ‘Choose’ to ‘Content’ so that it reads like so:

    $rss_type_src = ‘Content’;

    Your feed should work fine then.

  48. #48 by Cris B on November 11th, 2009

    Hi Spencer

    Nice plugin :)

    Unfortunately I don’t seem to be able to get it to work with Photobucket e.g. this random example

    http://feed0006.photobucket.com/albums/0006/findstuff22/account.rss

    Am I missing a trick? The plugin is working fine if I point it to look at a stream off another source such as Flickr.

    Cheers

    CB

  49. #49 by Grace on November 17th, 2009

    Spencer :
    @Grace,
    Hey, glad you like the widget. If you’re using v0.6 or later, you can use the following template in any file (e.g., sidebar.php):

    <?php
    $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]);
    ?>

    I’m using V 0.6.2, but when I tried to use that code, it displayed the following error message:

    “Fatal error: Call to undefined function display_rssphoto() in [the page template file]“

  50. #50 by scott on November 17th, 2009

    Thanks for the update! Works great now!

1 2 3
(will not be published)