SimplePortal
Support => English Support => Topic started by: simplelynoob on November 02, 2008, 06:35:58 PM
-
I've my 1st html block showing rss feed fine, working as expected.
When I creates another similar block with different rss feed (tried from different feeds source) it won't show its contents in the html block.
smf116 (default theme) + sp classic 205
edit: sorry forgot to mentioned feed is dynamic (script generated & powered by Google)
-
I would say at the first think, that you double insert the js code and it will generate an conflict with functions :x. (Only a thought).
Bye
DIN1031
-
maybe you should show us your codes so that we can understand what is going on.
-
Thank you for your interest, perhaps best is to try it out after generating a script from Google AJAX Feed (http://www.google.com/uds/solutions/wizards/dynamicfeed.html)
I pasted the script into my 1st. HTML Block (News) and works beautifully. Then,
wanted to create another block for Computer / IT News and found it keep showing
loading, without feed appears. Not sure this only happens on mine.
edit: Just create the additional block to show how it look at my site.
Well, seems to alternate feed from the two blocks. Meaning, only show one on every screen refresh.
edit2: Site Link removed
-
for the code you get for your second feed,
find
LoadDynamicFeedControl
replace
LoadDynamicFeedControl1
there are two instances of that word in those codes.
-
Asude, thank you very very much. It works! So wonderful to see it running.
Here is the script after added 1 to it, great hint! :applause:
<!-- ++Begin Dynamic Feed Wizard Generated Code++ -->
<!--
// Created with a Google AJAX Search and Feed Wizard
// http://code.google.com/apis/ajaxsearch/wizards.html
-->
<!--
// The Following div element will end up holding the actual feed control.
// You can place this anywhere on your page.
-->
<div id="feed-control1">
<span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
</div>
<!-- Google Ajax Api
-->
<script src="http://www.google.com/jsapi?key=notsupplied-wizard"
type="text/javascript"></script>
<!-- Dynamic Feed Control and Stylesheet -->
<script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js"
type="text/javascript"></script>
<style type="text/css">
@import url("http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.css");
</style>
<script type="text/javascript">
function LoadDynamicFeedControl() {
var feeds = [ {title: 'Cnet', url: 'http://news.cnet.com/2547-1_3-0-20.xml' }];
var options = {
stacked : false,
horizontal : true,
title : ""
}
new GFdynamicFeedControl(feeds, 'feed-control1', options);
}
// Load the feeds API and set the onload callback.
google.load('feeds', '1');
google.setOnLoadCallback(LoadDynamicFeedControl);
</script>
<!-- ++End Dynamic Feed Control Wizard Generated Code++ -->
edit: Kindly close this thread, thanks.
-
Like i thought ;) good to hear that it is solved :).
-
Thanks ディン1031 :wave:
-
hi guys, i have a similar issue, I'm similarly copying feed code and pasting it and similarly my first one works but second one doesnt. Since i'm a total code noob, wondering if anyone can point out what I need to change on the second one? Reading the above, it seems like a very similar problem. thanks!
<!-- Begin Feedzilla news widget Code -->
<script type='text/javascript' src='http://www.feedzilla.com/tools/swfobject.js'></script>
<script type='text/javascript'>
var flashvars = {id:'4110145341310',code:'flash',c:'',scroll:'',prov:'news',cat:'Top news',cat2:'Top stories',width:'135',height:'400',num_articles:'6',show_summaries:'No',show_sources:'No',show_dates:'No',title:'undefined',title_size:'11pt',title_bold:'No',keywords:'',url:'',headers_size:'14pt',font_size:'10pt',font_family:'Verdana',text_alignment:'Left',space:'Yes',titlecolor:'#000000',fcolor:'#0000FF',desccolor:'#000000',sourcecolor:'#FF0000',datecolor:'#999999',bgcolor:'#ECEDF3',ref:document.location.href};
var params = {scale:'noscale',salign:'lt',bgcolor:'#ECEDF3'};
var attributes = {};
swfobject.embedSWF('http://www.feedzilla.com/tools/news-widget.swf', 'Feedzilla_news_widget_7238', '130', '400', '9.0.0','',flashvars, params, attributes);
</script>
<div id='Feedzilla_news_widget_7238'></div>
<!-- End Feedzilla news widget Code -->