TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 446
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 108
  • Total: 108

RSS Articles?

Started by redeye, December 03, 2005, 05:21:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

redeye

Any way of putting an RSS feed into an article?

I'm wanting to have a couple of feeds that are not on the front page but which can be linked to the content manager.

TIA

IchBin

You try creating a php article and include the rss with php?

include('yourlinktoRSShere');

redeye

#2
Tried it and get -

Parse error: parse error, unexpected T_STRING in http://www.webbikeworld.com/motorcycles/rss.xml on line 1

using

include('http://www.webbikeworld.com/motorcycles/rss.xml');

EDIT: Just noticed that when you go back to edit the article, that the PHP tick box isn't showing.
Does that have an effect?

IchBin

Seems to be their problem not yours.

redeye

Tried a few of the rss feeds and they all give the same error - even the one that works in the RSS Block on the homepage.

winrules


redeye


JDMhustle

Just what i needed, thanks ;)

Nokonium

#8
I think I've cracked it  ;D  :tickedoff: No I hadn't

This is an RSS feed from M$ - Microsoft At Home

global $context, $settings, $options, $scripturl, $txt, $modSettings;

         echo '<div style="padding: 5px;" class="smalltext">';
            TPparseRSS('http://www.microsoft.com/athome/security/rss/rssfeed.aspx');
         echo '</div>';



[Edit]Not quite, that only works if you have a block with a live feed, it must be something simple, the globals are the same for both the TPortal.template and TPortalBlocks.template.[/s]

elpvn

Quote from: winrulesTry http://jade.mcli.dist.maricopa.edu/feed/index.php?s=build that's how i put a fe feeds in my articles.

it's great, I'm success with my address RSS feed: http://www.elpvn.org/index.php?type=rss;action=.xml

Result I add this Scriptblock to TP:

<script language="JavaScript" src="http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.elpvn.org%2Findex.php%3Ftype%3Drss%3Baction%3D.xml&chan=y&num=5&date=y&targ=y&html=a" type="text/javascript"></script>

<noscript>
<a href="http://jade.mcli.dist.maricopa.edu/feed/feed2js.php?src=http%3A%2F%2Fwww.elpvn.org%2Findex.php%3Ftype%3Drss%3Baction%3D.xml&chan=y&num=5&date=y&targ=y&html=y">View RSS feed</a>
</noscript>


;D Thanks


This website is proudly hosted on Crocweb Cloud Website Hosting.