TinyPortal

Development => Support => Topic started by: WKC on October 15, 2007, 01:30:18 PM

Title: RSS FEED BLOCK
Post by: WKC on October 15, 2007, 01:30:18 PM
When I am using three RSS feed blocks the page loads very slow. I know that it will take a bit more time than normal for a page to load when accessing multiple feeds like that, but it seems to be a bit extreme. I have three RSS feeds (in the form of blocks) that I show only on my Front Page. If I show them everywhere (as I would like to do) it makes every page run too slow.

So for now I am showing them only on the front page, and everything else is lightning fast. Any ideas for fixes on this? I would welcome anything...

SMF 1.1.4
TP   0.9.8
Title: Re: RSS FEED BLOCK
Post by: Zetan on October 15, 2007, 01:37:39 PM
I have all my feeds on one page. they take far too long to load otherwise.
My host has broken my RSS.. so can't really show you.

Have a look here:
http://www.tinyportal.net/index.php?topic=18766.0

as I try to explain. Also, try Optimising your forum in the Maintenance panel if you never have.
As for feeds being slow to load, thats more likely to be down to the site/s hosting the feed.
Title: Re: RSS FEED BLOCK
Post by: IchBin on October 15, 2007, 02:31:39 PM
Not much TP can do about an external source that is taking long to load I'm afraid.
Title: Re: RSS FEED BLOCK
Post by: WKC on October 17, 2007, 03:52:10 AM
OK, I have come up with a solution to the problem.

I can set up as many 'scriptblock' blocks as I want and use Java/HTML to pull the RSS feeds down. So I just create new blocks that are scriptblocks and then use this page RSS TO JAVA CODE MADE EASY (http://itde.vccs.edu/rss2js/build.php) to get the code I need to pull the feed down. They are lightning fast and do not slow everything down like using the actual RSS FEED BLOCKS do for some reason.

Not sure what the difference is, but this works great. Same solution (showing RSS feed using the blocks) but different way of getting there. Basically something about the actual RSS Feed blocks is just not working for me as they make everything far too slow. But this works fine. Let me know if you have any thoughts or suggestions on this please.

Title: Re: RSS FEED BLOCK
Post by: Zetan on October 17, 2007, 09:23:33 AM
Nice find WKC  :up:

You Rock!  :coolsmiley:
Title: Re: RSS FEED BLOCK
Post by: AlbertA on November 20, 2007, 11:56:59 PM
How do you get rid of the bullets?
Quote from: WKC on October 17, 2007, 03:52:10 AM
OK, I have come up with a solution to the problem.

I can set up as many 'scriptblock' blocks as I want and use Java/HTML to pull the RSS feeds down. So I just create new blocks that are scriptblocks and then use this page RSS TO JAVA CODE MADE EASY (http://itde.vccs.edu/rss2js/build.php) to get the code I need to pull the feed down. They are lightning fast and do not slow everything down like using the actual RSS FEED BLOCKS do for some reason.

Not sure what the difference is, but this works great. Same solution (showing RSS feed using the blocks) but different way of getting there. Basically something about the actual RSS Feed blocks is just not working for me as they make everything far too slow. But this works fine. Let me know if you have any thoughts or suggestions on this please.


Title: Re: RSS FEED BLOCK
Post by: Zetan on November 21, 2007, 11:45:47 AM
Thats something you need to ask the script author.
Title: Re: RSS FEED BLOCK
Post by: AlbertA on November 21, 2007, 05:18:24 PM
Is there anyway to apply a CSS style to a specific block?
Title: Re: RSS FEED BLOCK
Post by: IchBin on November 21, 2007, 06:59:20 PM
Only if you create a custom block and do not use the header/title of TP's. You can then make youre own header/title body etc. The next TP will hopefully have more control of this. :)
Title: Re: RSS FEED BLOCK
Post by: AlbertA on November 21, 2007, 07:37:39 PM
Quote from: IchBinâ,,¢ on November 21, 2007, 06:59:20 PM
Only if you create a custom block and do not use the header/title of TP's. You can then make youre own header/title body etc. The next TP will hopefully have more control of this. :)

Thanks!
Title: Re: RSS FEED BLOCK
Post by: WKC on November 24, 2007, 03:39:36 AM
UPDATE:

Here is a better site to use.

RSS to JAVA Conversion Site (http://www.rss-to-javascript.com/p/RSSRDF-Converter___138.html)

After you generate the script that you want the way that you want, be sure to add this CSS script in the code before it for a different layout that makes it easier to read.


<style>
<!--
.channel { width: 200px; font-family: arial; font-weight: 400; font-size: 11px; margin-bottom: 0px; }
.channelDescription { width: 200px; font-size: 10px; margin-bottom: 0px;}
.channelPublisher { width: 200px; font-size: 10px; margin-bottom: 0px;}
.news {
background-color: #eaeaea;
display: block;
padding: 2px;}
.newsAlt {
background-color: #ffffff;
display: block;
padding: 2px; }
#newsItems {
display: block;
float: left;
width: 480px;
height: auto;
border: #eaeaea 2px solid;
padding: 2px;
margin-bottom: -1em;
}
#newsItemLink1 { font-size: 10px; font-weight: bold;}
#newsItemLink2 { font-size: 10px; font-weight: bold;}
#newsItemLink3 { font-size: 10px; font-weight: bold;}
#newsItemLink4 { font-size: 10px; font-weight: bold;}
#newsItemLink5 { font-size: 10px; font-weight: bold;}
#newsItem1 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem2 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem3 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem4 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem5 { float: left; width: 150px; height: 148px; font-size: 10px; }
-->
</style>



So, the finished feed for something is the above CSS script followed by the RSS feed the converter puts out. It works very well. You can customize it further if you wish.

Example of how I am using it can be found here:

My Gaming Site (http://www.duneheretics.com)

Title: Re: RSS FEED BLOCK
Post by: Zetan on November 24, 2007, 10:17:58 AM
My host seems intent on blocking feeds, the other one posted has stopped working now, I assume blocked.
No reason given, no email.. nothing.
Title: Re: RSS FEED BLOCK
Post by: WKC on November 24, 2007, 02:38:48 PM
The other one stopped working for me as well. That is what prompted me to find this new solution.  >:(

Oh well, this one seems to work better anyway.
Title: Re: RSS FEED BLOCK
Post by: AlbertA on November 26, 2007, 08:47:06 PM
That's excellent.

BTW, the other one stopped working for me too. I guess they blocked us out.
Quote from: WKC on November 24, 2007, 03:39:36 AM
UPDATE:

Here is a better site to use.

RSS to JAVA Conversion Site (http://www.rss-to-javascript.com/p/RSSRDF-Converter___138.html)

After you generate the script that you want the way that you want, be sure to add this CSS script in the code before it for a different layout that makes it easier to read.


<style>
<!--
.channel { width: 200px; font-family: arial; font-weight: 400; font-size: 11px; margin-bottom: 0px; }
.channelDescription { width: 200px; font-size: 10px; margin-bottom: 0px;}
.channelPublisher { width: 200px; font-size: 10px; margin-bottom: 0px;}
.news {
background-color: #eaeaea;
display: block;
padding: 2px;}
.newsAlt {
background-color: #ffffff;
display: block;
padding: 2px; }
#newsItems {
display: block;
float: left;
width: 480px;
height: auto;
border: #eaeaea 2px solid;
padding: 2px;
margin-bottom: -1em;
}
#newsItemLink1 { font-size: 10px; font-weight: bold;}
#newsItemLink2 { font-size: 10px; font-weight: bold;}
#newsItemLink3 { font-size: 10px; font-weight: bold;}
#newsItemLink4 { font-size: 10px; font-weight: bold;}
#newsItemLink5 { font-size: 10px; font-weight: bold;}
#newsItem1 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem2 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem3 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem4 { float: left; width: 150px; height: 148px; font-size: 10px; }
#newsItem5 { float: left; width: 150px; height: 148px; font-size: 10px; }
-->
</style>



So, the finished feed for something is the above CSS script followed by the RSS feed the converter puts out. It works very well. You can customize it further if you wish.

Example of how I am using it can be found here:

My Gaming Site (http://www.duneheretics.com)