I want to use the rss feed block in Moodle 1.6. The links to the messages all show fine, when you click them they open in a new window. But when choose to display a link to the original site, and to display the channel image, these links open in the same window, so they close my moodle site! Is it the block code that makes this happen or is it the rss feed content? And if it is the block code, is this a bug or a feature? To me it's a bug!
Another de Groot
I too have a rss feed block query ... does it attempt to contact the RSS server as the page (block) loads....
I have a problem here, in that when the feed is slow .. the page does not load. Sometimes up to 5 minutes...
I have had to give up putting breaking news onto my pages because they just hang.
Cheer
Peter
I too have a rss feed block query ... does it attempt to contact the RSS server as the page (block) loads....
I have a problem here, in that when the feed is slow .. the page does not load. Sometimes up to 5 minutes...
I have had to give up putting breaking news onto my pages because they just hang.
Cheer
Peter
Peter,
The magpie rss library handles caching for us. The page should be cached for most requests. However there will be occasions where the cache is missing or expired - in those circumstances the remote feed is loaded as the moodle page loads - slowing the moodle page down.
Some things you can do to help make the pages load faster would be to increase the cache time and setup a cron job to load your page (attempting to get the cron automated entry to take the remote load cache hit rather than a user load)
Daryl
The magpie rss library handles caching for us. The page should be cached for most requests. However there will be occasions where the cache is missing or expired - in those circumstances the remote feed is loaded as the moodle page loads - slowing the moodle page down.
Some things you can do to help make the pages load faster would be to increase the cache time and setup a cron job to load your page (attempting to get the cron automated entry to take the remote load cache hit rather than a user load)
Daryl
Hi Daryl,
Does the block_rss_timeout setting control the cache time or is it something else?
Does the block_rss_timeout setting control the cache time or is it something else?
block_rss_timeout is correct, Jan - it times out the cache file, expiring it and causing a fresh reload.
Marion, this is something done in the rss client block I believe. Please file a bug report against the rss_client block if you have not already.
Don't have a newsfeed which includes an image... but would this do the trick?
Lookup inside block_rss_client.php
...
$returnstring .= '<div class="image"><a href="'. $rss->image['link'] .'">
<img src="'. $rss->image['url'] .'" title="'. $rss->image['title'] .'" alt="'. $rss->image['title'] .'"/></a></div>';
...and change to ...
$returnstring .= '<div class="image"><a href="'. $rss->image['link'] .'" target="_blank">
<img src="'. $rss->image['url'] .'" title="'. $rss->image['title'] .'" alt="'. $rss->image['title'] .'"/></a></div>';