TinyPortal

Development => Feedback => Topic started by: Jeff on November 14, 2005, 03:56:01 PM

Title: RSS for dummies
Post by: Jeff on November 14, 2005, 03:56:01 PM
I'm interested in playing with RSS and adding feeds.  However, the best I can do is get the URL of the feed to show up.

I.e., if I enter:
http://xml.newsisfree.com/feeds/61/2261.xml

or:
http://rss.cnn.com/rss/cnn_topstories.rss

All that shows up is the URL in the block...

Help?
Title: Re: RSS for dummies
Post by: WebMasterZ on November 14, 2005, 04:09:09 PM
Are you choosing RSS Feed as the type of box ?

then enter your feed url in the field labelled  RSS feed
Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 04:17:13 PM
Yes... Type of box is RSS feed.  That gives me a place to enter the RSS  feed which I enter exactly as shown above.  End result is just the URL showing.

Visit www.cbrlist.com/forum and switch to Helios_TP theme and you will see this.
Title: Re: RSS for dummies
Post by: WebMasterZ on November 14, 2005, 04:38:51 PM
I cant switch themes as a guest

Try this feed I know it works
http://www.itv-motoring.com/includes/ITV/rss/getNewsRss.asp?num=50
Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 04:57:00 PM
Tried it and same thing...

Check out the site now, I defaulted it to Helios_TP
Title: Re: RSS for dummies
Post by: WebMasterZ on November 14, 2005, 05:01:03 PM
Jeff I only see the forum No portal?
Title: Re: RSS for dummies
Post by: WebMasterZ on November 14, 2005, 05:08:14 PM
You need to go into TPADmin > Edit blocks > Edit & grant permissions to whatevever groups to see the side bars
Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 05:21:25 PM
Sorry... try now.
Title: Re: RSS for dummies
Post by: IchBin on November 14, 2005, 05:30:42 PM
You sure you have your info right? It works on my test site. Here's how my RSS looks.

Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 05:50:07 PM
Ichbin, that is *EXACTLY* the way mine looked and was entered...

Perhaps I'll try a new theme.
Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 05:55:29 PM
Tried a new theme.  Still no dice...  I think I have something screwed up from the installation...

Title: Re: RSS for dummies
Post by: IchBin on November 14, 2005, 05:57:29 PM
What version of SMF/Theme/TP are you running?
Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 06:01:08 PM
SMF 1.0.5
TP v.0.75

Note, I did have a problem with an RSS feed upon first configuring which required me to change a file manually per Bloc's instructions (search on my last posts or I'll find this afternoon).  Perhaps that did me in...
Title: Re: RSS for dummies
Post by: WebMasterZ on November 14, 2005, 06:18:26 PM
Yep thats exactly why it doesnt work now
Quote from: Bloc on November 11, 2005, 02:09:23 PM
you can open up TportalBlocks.tempalte and simply rename "function TPortal_rss()" to "function TPortal_none()". Then the rss block will not render and you can delete/adjust the block again in TPadmin.

Remember to rename back once you want rss blocks to work again.

http://www.tinyportal.net/smf/index.php?topic=1345.msg10836#msg10836
Title: Re: RSS for dummies
Post by: IchBin on November 14, 2005, 06:18:57 PM
Did you remember to name your function back like Bloc told you?
TPortal_none should say TPortal_rss in your TportalBlocks.tempalte file.
Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 06:23:21 PM
I didn't change it back manually.  I thought the button selection would alter this file.  I'll change it in about an hour when I have SSH access to the server.

Thanks guys  8) 

Sorry for being  :uglystupid2:
Title: Re: RSS for dummies
Post by: Jeff on November 14, 2005, 08:10:20 PM
bingo... works like a champ.  Thanks much.
Title: Re: RSS for dummies
Post by: Jeff on November 20, 2005, 03:35:30 AM
Okay, now that I have that issue resolved, is there a way (well, of course there is, but how do I) to have RSS links spawn a new window when clicked?  I don't want people leaving my forum if they click an RSS link.
Title: Re: RSS for dummies
Post by: bloc on November 21, 2005, 05:26:47 PM
That would be something I need to add..the option of opening links in a new window.

You can do it already though..on a permanent basis..find this code in TPortal.php:
function endElement($parser, $tagName) {

  // This function is used when an end-tag is encountered.

  global $insideitem, $tag, $title, $description, $link, $tpimage;

  if ($tagName == "ITEM") {
   echo '<div style="font-size: larger; font-weight: bold;">';
   printf("<a href='%s'>%s</a>", trim($link),htmlspecialchars(trim($title)));

echo '</div><div class="smalltext" style="margin-bottom: 4px;">';
printf("%s",$description); // Print out the live journal entry
echo '</div>';
$title = $description = $link = $insideitem = false;
   }

}


add a target="_blank" to this line:

   printf("<a target="_blank" href='%s'>%s</a>", trim($link),htmlspecialchars(trim($title)));