1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RSS Feeder with NASA Image of The Day?

Discussion in 'XenForo Questions and Support' started by Kevin, Aug 10, 2011.

  1. Kevin

    Kevin Well-Known Member

    I'm going through one of my sites that will be converted to XF (one more to go :cool:, but it is the most important one :cautious:) and I'm comparing the RSS feeds that I'm currently using.

    In particular, the NASA Image of the Day feed. http://www.nasa.gov/rss/image_of_the_day.rss

    With XF, anybody know if it'd be possible to grab the enclosure tag so that the image can then be embedded in the post?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That image is defined like this in the feed:

    <enclosure length="1234567" type="image/jpeg" url="http://www.nasa.gov/images/content/578637main_image_2033_516-387.jpg"/>
    I can't figure a way to access that URL from within the message template. This may require custom code.
  3. Kevin

    Kevin Well-Known Member

    Adam Howard likes this.

Share This Page