View Full Version : RSS Feeds stuff....
theMusicMan
12-11-2004, 09:19 AM
Hi All
I am really hoping that someone here will be able to offer some advice to me. I have asked over at vb.com and also on Sitepoint but so far nothing has come of the questions I ask.
I want to be able to offer RSS feeds for others to then be able to display the latest posts from my www site on their www site - and when a user/visitor of their www site clicks on one of the links, they then get taken to my site with the full thread in view.
I know how to turn on external feeds within vB and indeed have already done so - what I have no idea how to do is to then get the output of that external.php file actually displayed on another web page... or rather, how do I tell my users how they get the output of external.php to display on a web page on their own site...?
I can open up the RSS feed in a news reader application which works fine... but I want to be able to display these on web pages.
Also, if I could find out how to do this, I have a zillion ideas as to how to create useful new modules for vBA.
Can anyone help with this please...? thanks.
The folks that want to display your feeds on their sites must have a parser module on their software or stand-alone parser to "translate" your feed into html.
A lot of blogware have already parsers built-in but for everyone else there's MagpieRSS and Carp, both are projects on sourceforge.net
I prefer MagpieRSS for a several reasons, specially because it can parse atom feeds.
tomshawk
12-11-2004, 10:04 AM
If you use CARP http://www.geckotribe.com/rss/carp/
and your friend uses vbadvanced CMPS
I have realeased a couple of modules on this site for displaying RSS feeds
http://www.vbadvanced.com/forum/showthread.php?t=3098
http://www.vbadvanced.com/forum/showthread.php?t=2598
But, the instructions for the carp program as well as MagpieRSS show how to display feeds in a standard HTML file
HTH ;)
theMusicMan
12-11-2004, 10:52 AM
Thanks both.... great stuff there that at last I think I can get stuck into...:) cheers....
ptmuldoon
02-05-2005, 05:25 PM
Could someone possibly give me a hand with this one. I beleive I've done everything correct, and I have the block on home portal page. But when I choose my news feed, CNN World news, Its just blank. I do seem to have any errors either. The news feed is this:
//http://xml.newsisfree.com//feeds/15/2315.xml
Also, just a note, I found this site //http://www.newsmedianews.com/xml/xmllist.htm to be great source for newsfeeds.
Currently, I've only setup feed1, so all of others should be ingnored right now anyway.
tomshawk
02-05-2005, 07:44 PM
A link to your site might allow us to help you a little better ptmuldoon ;)
ptmuldoon
02-05-2005, 08:35 PM
Sorry. I need to add that into my profile. I'm in the middle of building a family site.
www.noodlum.com
tomshawk
02-05-2005, 08:56 PM
Could you post the contents of your forums/feed/feed1.php
I looked at the source and it looks like it is missing something
ptmuldoon
02-06-2005, 08:55 AM
Sure, no problem, and thanks for your help as well.
<html>
<body>
<div id="datacontainer" style="position:absolute;left:1px;top:10px;width:100%" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">
<?php
require_once "/home/public_html/carp/carp.php";
// Show 3 items
CarpConf('maxitems',10);
// surround the item link with a DIV
// CarpConf('bilink','<div style="background:#cccccc; width:210px; padding:2px; border:1px solid #333333;">');
// CarpConf('ailink','</div>');
// get rid of the underline under the links
// CarpConf('ilinkstyle','text-decoration:none');
// set the CSS classes of the channel and item links
CarpConf('clinkclass','h2');
CarpConf('ilinkclass','h3');
CarpConf('linktarget',1);
// Display it
CarpCacheShow('http://xml.newsisfree.com//feeds/15/2315.xml');
?>
<!-- END SCROLLER CONTENT -->
</div>
<script type="text/javascript">
/***********************************************
* IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2
//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500
function initializeScroller(){
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer")
dataobj.style.top="5px"
setTimeout("getdataheight()", initialdelay)
}
function getdataheight(){
thelength=dataobj.offsetHeight
if (thelength==0)
setTimeout("getdataheight()",10)
else
scrollDiv()
}
function scrollDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px"
if (parseInt(dataobj.style.top)<thelength*(-1))
dataobj.style.top="5px"
setTimeout("scrollDiv()",40)
}
if (window.addEventListener)
window.addEventListener("load", initializeScroller, false)
else if (window.attachEvent)
window.attachEvent("onload", initializeScroller)
else
window.onload=initializeScroller
</script>
</body>
</html>
tomshawk
02-06-2005, 09:44 AM
The problem is in your carp installation/configuration somewhere.
Go through the carp install again and that should get you up and running ;)
ptmuldoon
02-06-2005, 10:06 AM
Thansk, after running the setup again, and seeing that was working, I found the problem. It was actully the feed1 file, and not having the path correct for the require_once.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.