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

Feed Importer - include also media tags

R

ragtek

Guest
#1
We should be possible to define also "own" html => bb Handlers without using the code event system.

For example check this feed: http://feeds.feedburner.com/TrailerSchautManBeiTrailerzonede

Content tag:
Code:
<object width="853" height="505"><param name="movie" value="http://www.youtube.com/v/_InWk8-jjLk?fs=1&amp;hl=de_DE&amp;rel=0&amp;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_InWk8-jjLk?fs=1&amp;hl=de_DE&amp;rel=0&amp;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="853" height="505"></embed></object><p><img src='http://www.trailerzone.de/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/1202.jpg&amp;w=200&amp;h=130&amp;zc=1&amp;ft=jpg' alt='post thumbnail' /></p> 
<p><strong><img class="alignright size-full wp-image-1203" title="Meine Erfundene Frau Trailer" src="http://www.trailerzone.de/wp-content/uploads/meine_erfundene_frau.jpg" alt="Meine Erfundene Frau Trailer" width="163" height="231" />Genre:</strong> Komödie &#8211; USA 2010<br /> 
<strong>Kinostart:</strong> 24.02.2011<br /> 
<strong>Laufzeit:</strong> 95 Minuten<br />
As you see, it contains a youtube video.
Even i have a youtube media tag, the feedimporter just ignores this, and my post is:
Code:
<img src="http://www.trailerzone.de/wp-content/plugins/simple-post-thumbnails/timthumb.php?src=/wp-content/thumbnails/1190.jpg&amp;w=200&amp;h=130&amp;zc=1&amp;ft=jpg" class="bbCodeImage LbImage" alt="[IMG]" /><br /> 
<b><a href="http://www.trailerzone.de/wp-content/uploads/gullivers_reisen.jpg" target="_blank" class="externalLink" rel="nofollow"><img src="http://www.trailerzone.de/wp-content/uploads/gullivers_reisen.jpg" class="bbCodeImage LbImage" alt="[IMG]" /></a>Genre:</b> Komödie – USA 2010<br /> 
 <b>Kinostart:</b> 10.02.2011<br /> 
 <b>Laufzeit:</b> 89 Minuten<br /> 
 <b>FSK:</b> 6 Jahre<br />
 

Mike

XenForo developer
Staff member
#2
That's really going to be a challenge to process generally, as there are so many different forms for this stuff to take; our snippets definitely don't fit with the "default" ones. We don't even keep track (explicitly) of the actually swf/flv URL, so it's not easy to pull it out of that. There's some scope for it, but it would involve a fair bit more configuration for a fairly rare case, IMO.
 
B

bogus

Guest
#5
A quick reminder :whistle: Seems like some of us would like to get this included.
I appeal again to the devs. Please, do not forget us. Thanks a lot
 

lightbox

Active member
#7
MediaRSS would be really great, but to extend on this feature request, I could also imagine to add OPML support.
OPML makes it possible to combine multiple MediaRSS feeds into one OPML feed.

Example:
You have 3 subforums serving as showrooms for your users.
One subforum for photography, one for illustrations and paintings and one for 3D rendered images.

Wouldn't it be great to provide a feed that contains all three MediaRSS feeds in one? OPML could provide just that.

Dummy XML for MediaRSS:
Code:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
	<title>My MediaRSS Feed 1</title>
	<link>http://xenforo.com/forums/photography</link>
	<description>Photography Showroom</description>
	<pubDate>Tue, 12 Oct 2011 00:00:00 -0000</pubDate>
	<lastBuildDate>Tue, 12 Oct 2011 00:00:00 -0000</lastBuildDate>
	<generator>http://xenforo.com/</generator>
	<image>
		<url>http://xenforo.com/community/feedimages/feed-photography.png</url>
		<title>Our Photography Showroom</title>
		<link>http://xenforo.com/forums/photography</link>
	</image>

	<item>
		<title>Member-Card (Nature Calls)</title>
		<link>http://xenforo.com/community/threads/member-card-nature-calls.11847/</link>
		<description>My Member-Card Design 1</description>
		<pubDate>Tue, 11 Oct 2011 05:47:21 -0700</pubDate>
		<media:content url="http://xenforo.com/community/attachments/preview1-png.10718/"
			type="image/png"
			height="650"
			width="315"/>
		<media:title>Member-Card (Nature Calls)</media:title>
		<media:thumbnail url="http://xenforo.com/community/attachments/thumb-preview1-png.10718/" 			type="image/png"
			height="75"
			width="75"/>
		<media:credit role="photographer">Shelley</media:credit>
	</item>
	</channel>
</rss>
Dummy code for OPML:
Code:
<?xml version="1.0"?>
<opml version="1.1">
   <head>
      <title>Xenforo MediaRSS Feeds</title>
   </head>
   <body>
      <outline type="rss" xmlUrl="http://xenforo.com/myMediaRSSfeed1.xml" />
      <outline type="rss" xmlUrl="http://xenforo.com/myMediaRSSfeed2.xml" />
      <outline type="rss" xmlUrl="http://xenforo.com/myMediaRSSfeed3.xml" />
</opml>