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?
Are you choosing RSS Feed as the type of box ?
then enter your feed url in the field labelled RSS feed
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.
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
Tried it and same thing...
Check out the site now, I defaulted it to Helios_TP
Jeff I only see the forum No portal?
You need to go into TPADmin > Edit blocks > Edit & grant permissions to whatevever groups to see the side bars
Sorry... try now.
You sure you have your info right? It works on my test site. Here's how my RSS looks.
Ichbin, that is *EXACTLY* the way mine looked and was entered...
Perhaps I'll try a new theme.
Tried a new theme. Still no dice... I think I have something screwed up from the installation...
What version of SMF/Theme/TP are you running?
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...
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
Did you remember to name your function back like Bloc told you?
TPortal_none should say TPortal_rss in your TportalBlocks.tempalte file.
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:
bingo... works like a champ. Thanks much.
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.
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)));