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

XF 1.5 RSS Feeder tag question

#1
Here is an excerpt xml of a fictional YouTube channels videos:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:yt="http://www.youtube.com/xml/schemas/2015" xmlns:media="http://search.yahoo.com/mrss/" xmlns="http://www.w3.org/2005/Atom">
<link rel="self" href="http://www.youtube.com/feeds/videos.xml?channel_id=1234567890"/>
<id>yt:channel:1234567890</id>
<yt:channelId>1234567890</yt:channelId>
<title>some name</title>
<link rel="alternate" href="http://www.youtube.com/channel/1234567890"/>
<author>
  <name>some name</name>
  <uri>http://www.youtube.com/channel/1234567890</uri>
</author>
<published>2014-08-13T03:24:11+00:00</published>
<entry>
  <id>yt:video:ABCDEF</id>
  <yt:videoId>ABCDEF</yt:videoId>
  <yt:channelId>1234567890</yt:channelId>
  <title>some title</title>
  <link rel="alternate" href="http://www.youtube.com/watch?v=ABCDEF"/>
  <author>
   <name>ftog thorgal</name>
   <uri>http://www.youtube.com/channel/1234567890</uri>
  </author>
  <published>2015-10-23T20:00:00+00:00</published>
  <updated>2015-10-23T20:00:00+00:00</updated>
  <media:group>
   <media:title>some title</media:title>
   <media:content url="https://www.youtube.com/v/ABCDEF?version=3" type="application/x-shockwave-flash" width="640" height="390"/>
   <media:thumbnail url="https://i1.ytimg.com/vi/ABCDEF/hqdefault.jpg" width="480" height="360"/>
   <media:description>lorem ipsum</media:description>
   <media:community>
    <media:starRating count="0" average="0.00" min="1" max="5"/>
    <media:statistics views="3"/>
   </media:community>
  </media:group>
</entry>
</feed>
When setting up a new Feed in the Xenforo ACP you can access a few tags in the message template:
{title} {content} {author} {link}

My question is how can I parse other tags from the xml? I can parse {id} and a few others, but none of the tags with ":" in them work.

What I am trying to achieve is to parse the "yt:videoId" in to a media=youtube bbcode like this:
Code:
[media=youtube]{yt:videoId}[/media]
 

Mike

XenForo developer
Staff member
#2
In general, parsing tags other than what's available by default would require custom development.