View Full Version : XML / RSS / RDF Feeds on your Portal
redlabour
06-10-2004, 03:51 AM
In your Admincp - Styles & Templates - Style Manager - Add a new template called "adv_portal_news1" or so on (2, 3, 4, 5 etc.).
Insert this code into the template:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Heise.de</b></span></td>
</tr>
<tr>
<td class="$getbgrow" align="center">
<span class="smallfont">
<script src="http://www.howdev.com/services/feedsweep/producer.aspx?feeds=http%3A%2F%2Fwww%2Eheise%2Ede%2Fnewsticker%2Fheise%2Erdf&hea dercolor=%23000000&textcolor=%23AECCEB&maxoutput=5&linecolor=%236699CC&title=Hei se%2Ede&width=50&titlecolor=%23FFFFFF&backgroundcolor=%23003366&datecolor=%23AEC CEB"></script>
</span>
</form>
</td>
</tr>
</table>
<br/>
Attention : You have to get the Javascript from this URL http://www.howdev.com/services/feedsweep/
Still in your Admincp - vBa CMPS - Add Module
- Module Title - Whatever your Newsfeeds should be named
- Module Identifier - Leave blank
- OR Template to Include - news1 (or so on 2, 3, 4, 5 etc.)
- Activate and select the column you want it in.
- Save and you are done.
For example look at http://www.redlabour.de
The module is working out great except for one thing. I can't seem to get it to brake from the next module. I've inserted <br /> and it double spaces above the feed module rather then below it. Any ideas?
cLord
06-13-2004, 03:20 AM
Add this at the end of previous code:
</table>
<br/> cLord ;)
Thanks for the help ....that did it! :)
redlabour
07-19-2004, 06:49 AM
Has anyone a other Link like http://www.clintongoveas.com/wire/getjscode.php?feed=
?? It is so slow sometimes that my Portal is loading after 20 sec. and more. I need a faster one.
mholtum
07-19-2004, 07:18 AM
that is a nice module. Thanks
Has anyone a other Link like http://www.clintongoveas.com/wire/getjscode.php?feed=
?? It is so slow sometimes that my Portal is loading after 20 sec. and more. I need a faster one.
Try this one... I use it and it eliminates the nag header. Feedroll (http://www.feedroll.com/rssviewer/)
redlabour
07-20-2004, 11:55 AM
Try this one... I use it and it eliminates the nag header. Feedroll (http://www.feedroll.com/rssviewer/)
Thx....thatīs it !!!! :D
oldfan
08-09-2004, 12:12 AM
I don't understand why I can't add http://www.roadrunnerrecords.com/blabbermouth.net/newsfeed.xml
this is the http://www.roadrun.com/blabbermouth.net/rssfeed.aspx
pdatotaal
08-12-2004, 02:05 AM
I need a news feed with lot of PDA/hendheld news.. What standing here don't have non.. Anybody a idea?
Here is one more excellent source for running RSS feeds from your site. They even have the code for running your own server. Feed2JS (http://jade.mcli.dist.maricopa.edu/feed/)
Swanny231
08-24-2004, 03:14 PM
I had a block for my old nuke site and would like to stream the xml data from teamwar to my new vbadvanced site... I tried to generate the code from the xml and it dont work anyone know how I get get this feed.....
I have attached my old block.php and the feed info is in there.. please help.. I set a new module and tried to pull the data from it and it dont show....
<?php
/************************************************************************/
/* TeamWarfare Standings-XML reader for PHPNUKE 6.0 */
/* ================================================= */
/* */
/* Copyright (c) 2003 */
/* http://phpnuke.org */
/* */
/* Version 1, modified by BurZurk */
/* http://www.nomercygiven.com */
/* Props to: Rodimus for the XMP parser (www.82nd.net) */
/* Humpa for the block/phpnuke help (www.nukeforums.com) */
/* */
/* Last Edited - 18 March 2003 */
/* */
/* This Block shows the TeamWarfare standings for all ladders of a */
/* given team from www.teamwarfare.com Laddername, rung #, W/L/T info */ /* */
/* 1- goto your team page, under your profile find "xml version" */
/* copy this link and paste below where indicated */
/* 2- save and upload the block to your "blocks" directory */
/* 3- In php admin section "blocks" enable "block-ladderinfo" */
/* be sure to call it "TWL Ladders" or whatever you want to appear */
/* at the head of the block */
/* 4- Done ;) */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (eregi("block-ladderinfo.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
ob_start();
$insideitem = false;
$tag = "";
$twf_rank = "";
$twf_wins = "";
$twf_losses = "";
$twf_forfeits = "";
$twf_status = "";
$search = "America's Army ";
$replace = "a";
function startElement($parser, $tagName, $attrs) {
global $insideitem,$tag, $twf_status;
if ($insideitem) {
$tag = $tagName;
}
elseif ($tagName == "LADDER") {
while (list ($key, $val) = each ($attrs)) {
if ($key == "NAME")
print "<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\">";
print "<tr><td colspan=\"2\"><u><b>";
echo str_replace("America's Army", "", $val);
print "</b></u><br><br></td></tr>";
}
$insideitem = true;
}
}
function characterData($parser, $data) {
global $insideitem, $tag, $twf_rank, $twf_wins, $twf_losses, $twf_forfeits;
if ($insideitem) {
switch ($tag) {
case "RANK": $twf_rank = $data; $tag = "";break;
case "WINS": $twf_wins = $data; $tag = "";break;
case "LOSSES": $twf_losses = $data; $tag = "";break;
case "FORFEITS": $twf_forfeits = $data; $tag = "";$insideitem = false; break;
}
}
}
function endElement($parser, $tagName) {
global $insideitem, $tag, $twf_rank, $twf_wins, $twf_losses, $twf_forfeits, $twf_status;
if ($tagName == "LADDER") {
print "<TR><TD valign=\"middle\">Rank:</td><TD valign=\"middle\"><STRONG>#$twf_rank<br></STRONG></td></tr>";
print "<TR><TD valign=\"middle\">Wins:</td><TD valign=\"middle\"><STRONG>$twf_wins<br></STRONG></TD></tr>";
print "<TR><TD valign=\"middle\">Losses:</td><TD valign=\"middle\"><STRONG>$twf_losses<br></STRONG></TD></tr>";
print "<TR><TD valign=\"middle\">Forfeits:</td><TD valign=\"middle\"><STRONG>$twf_forfeits<br></STRONG></TD></tr>";
print "</table><br>";
}
//$temp = true;
//$tagName = '';
}
// Create an XML parser
$xml_parser = xml_parser_create();
// Set the functions to handle opening and closing tags
xml_set_element_handler($xml_parser, "startElement", "endElement");
// Set the function to handle blocks of character data
xml_set_character_data_handler($xml_parser, "characterData");
// print "<hr>\n";
print "<TABLE BORDER=\"1\" CELLSPACING=\"0\" CELLPADDING=\"2\" WIDTH=\"100%\">\n";
print "<TR><TD ALIGN=\"center\" WIDTH=\"100%\" VALIGN=\"top\" >\n";
// Open the XML file for reading- PASTE YOUR LINK BELOW.
$fp = fopen("http://www.teamwarfare.org/xml/viewteam_v2.asp?team=3rd%2D565th+Armoured+Div","r") or die("Error reading RSS data.");
// Read the XML file 4KB at a time
while ($data = fread($fp, 4096))
// Parse each 4KB chunk with the XML parser created above
xml_parse($xml_parser, $data, feof($fp))
or die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
// Close the XML filef
fclose($fp);
// Free up memory used by the XML parser
xml_parser_free($xml_parser);
print "</TD></TR>";
print "</TABLE><BR>";
// end of file
$output = ob_get_contents();
ob_end_clean();
$content = $output;
?>
supernut
09-06-2004, 09:29 PM
Here is one more excellent source for running RSS feeds from your site. They even have the code for running your own server. Feed2JS (http://jade.mcli.dist.maricopa.edu/feed/)
would be create to add our own RSS Feeds Server as a module ?
cLord
09-22-2004, 12:37 PM
Thanks Lore!
With a bit of imagination and some creativity I managed to create a decent RSS feed for my site...
cLord ;)
Clord, your feed Rox! instructions please!
mholtum
09-28-2004, 02:59 PM
Thanks Lore!
With a bit of imagination and some creativity I managed to create a decent RSS feed for my site...
cLord ;)
That rocks bro! That would make a killer custom page! Instructions? :confused:
cLord
09-28-2004, 03:40 PM
Patience, patience... :p
RetroDreams
09-30-2004, 01:40 AM
Patience, patience... :p
I, too, am interested. I'd also be willing to pay $5-$10 for it as I've been looking for something like this for awhile.
xtremeoff-road
10-05-2004, 01:11 PM
Patience, patience... :p
Hey man are you doing to release that news module that is on your site :confused:
Looks excellent!
rezzz20
10-25-2004, 02:16 PM
As would I -- that's a great hack!!!
tomshawk
10-25-2004, 09:12 PM
if clord is busy, I can post my version.
The only addition, is you need carp for mine to work, but the interface is the same.
I dont know what clord is using to actually pull the data.
rezzz20
10-26-2004, 09:48 AM
carp? what's carp? - I like how he has the options for different feeds in that drop down -- do you have that in yours?
*Edit* -- Nevermind I do see that you have that as well -- I'd love to get any versions of these -- one question tho, I'd ideally like entertainment news -- I see that you have tech news, I'm guessing that as long as I can find some XML feed then this will work?
tomshawk
10-26-2004, 11:13 AM
This is carp
http://www.geckotribe.com/rss/carp/
And Yes, you can use any feeds you like ;)
rezzz20
10-26-2004, 12:34 PM
ok -- well I'll take your mod and any instructions :) -- thanks man -- I really appreciate it
what do I do with carp?
tomshawk
10-27-2004, 03:12 AM
ok -- well I'll take your mod and any instructions :) -- thanks man -- I really appreciate it
what do I do with carp?
http://www.vbadvanced.com/forum/showthread.php?t=3098
redlabour
03-07-2005, 02:02 PM
After the old service is down here is a new one :
http://www.howdev.com/services/feedsweep/
SalTheWop
09-21-2005, 10:16 PM
Ive just installed this mod.
If you go to www.viewfromthestand.co.uk you will see what is wrong with it.
1) How do I get the "LATEST NEWS" bar to the same size as the Feedsweep box.
2) I have added a couple of URLS to create a custom newsfeed, why doesnt it scroll??
Thanks
Nneel
10-20-2005, 03:52 AM
its nice.....i want to add a rss feed block in home page..of
amazon movie..provided by feedroll.com there code is
<script language="javascript" type="text/javascript" src="http://www.feedroll.com/rssviewer/view_rss.php?type=js&source_id=22374&feed_width=200&frame_color=black&title_textcolor=black&title_bgcolor=white&box_textcolor=black&box_bgcolor=white&feed_showborder=0&feed_spacing=2&feed_align=left&feed_textsize=12&feed_textfont=Times New Roman, serif&feed_maxitems=15&feed_desclimit=&feed_compact=1&feed_xmlbutton=0&link_openblank=1"></script>
I need it in homepage...we are using vb3.5.0 gold +vbadvanced cmps 2
can any one please help me...
Please
actual what i need to download from http://www.howdev.com/services/feedsweep/
any one can help me some details please..
I would be really gratefull..as im new about it...thanks
thanks
Nneel.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.