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

Getting Enclosure value from RSS item in feed?

Discussion in 'Troubleshooting and Problems' started by Kevin, May 9, 2012.

  1. Kevin

    Kevin Well-Known Member

    To clarify that title, I am trying to bring in NASA's Picture Of The Day (POTD) feed...


    As part of the item it includes a standard RSS enclosure tag at the item level. The enclosure tag contains a link to the actual image.

    In vBulletin I can bring in that feed and show the image by including the enclosure tag.
    [url={feed:link}][b][i](click to view the full-size image)[/i][/b]
    [i](More at  [url={feed:link}]NASA Picture Of The Day[/url])[/i]
    Can I get the enclosure link using XF's feed manager?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I believe this requires extending the feed model with an addon:


    This function returns an array with an index at 'entries' that contains the individual feed items. This appears to be where the tokens are defined for use in the message template. This obviously requires some programming ability.

    You know what might be a cool feature is a callback for individual feeds.
  3. Kevin

    Kevin Well-Known Member

    Aaarrrghh. Converted a vB site to XF and forgot about this issue. :X3:
  4. Kevin

    Kevin Well-Known Member

Share This Page