• 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?

Kevin

Well-known member
#1
To clarify that title, I am trying to bring in NASA's Picture Of The Day (POTD) feed...

http://www.nasa.gov/rss/image_of_the_day.rss

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.
Code:
[url={feed:link}][b][i](click to view the full-size image)[/i][/b]
[img]{feed:enclosure_href}[/img][/url]
 
{feed:description}
 
[i](More at  [url={feed:link}]NASA Picture Of The Day[/url])[/i]
Can I get the enclosure link using XF's feed manager?
 

Jake Bunce

XenForo moderator
Staff member
#2
I believe this requires extending the feed model with an addon:

XenForo_Model_Feed::getFeedData

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.