php forum
php mysql forum
php mysql smarty
 
Topic Options
#265912 - 01/02/04 10:19 AM adding a .rss (XML) parser to IIP Custombox for News Feeds
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
Hey Gang,<br /><br />just thought I'd share... I had a desire to include a news feed in one of my custom pal boxes... so, here is my modified custombox3pal.php. All you really have to do, is replace the .rss URL with the one you want to include and let it know whether or not to show the Article Descriptions....<br /><br />Let me know if you have any questions! You can see it in the middle column on the front page of my site.


Attachments
103732-custombox3pal.zip (268 downloads)

_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#265913 - 01/02/04 01:17 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: mazmanr]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
works well. For germany you can try this URL as feed:<br />http://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml<br />Information for this URL: http://www.spiegel.de/dertag/0,1518,271804,00.html<br /><br />Question: will this box update by time like the shoutbox or just while reload the whole page ? If updating automatic, wich time between 2 updates ?<br /><br />You read my mind. Today I start to find a newsticker to display it in TopNews Hack from Josh, but this also nice <img src="http://www.ubbdev.com/forum/images/graemlins/applause.gif" alt="" />
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#265914 - 01/02/04 01:53 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: landyphil]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
It does not automatically refresh itself or the page. It will reload when the page is refreshed or reloaded. <br /><br />Anyway, glad it is of use!
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#265915 - 01/02/04 02:45 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: mazmanr]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Thanks for sharing.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#265916 - 01/02/04 03:25 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: sf49rminer]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
No problem... <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> Slowly, but surely, I'm finding more time for my site... hopefully, that means I'll be finding more stuff to share. We'll see!
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#265917 - 01/02/04 03:49 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: mazmanr]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
can you try out this feed ? : http://www.rpgdot.com/team/rss/rss0.xml<br /><br />Url to homepage: http://www.rpgdot.com/index.php?hsaction=30<br /><br />Its a V1.0 RSS and is not show up with your script.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#265918 - 01/02/04 04:26 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: landyphil]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
okay... seems to be an issue with the parser... I was able to integrate this one (available under GNU License) http://magpierss.sourceforge.net quite easily... I did not take any time right now (not having any, really... <img src="http://www.ubbdev.com/forum/images/graemlins/ooo.gif" alt="" />) to format it or anything like that, but it should get you started...<br /><br />Unzip this attachment to your pals/ directory (this *WILL* overwrite your custombox6pal.php file!!! that's the one I used to experiment...). Then edit your IIP to show custombox6. It should work out of the box... If not, let me know!<br /><br />Also, if you want the full source of MagpieRSS, please visit the link above and download it... it includes several sample scripts that could be of use for further customization.<br /><br />Let me know if that fixes it for you.


Attachments
103781-rss-integration.zip (206 downloads)

_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#265919 - 01/02/04 05:23 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: mazmanr]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
works ! take a look if you like: http://www.dragonclan-forum.de/index.php?Cat=0<br /><br />Good work.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#265920 - 01/02/04 06:13 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: landyphil]
MattyJ Offline
Coder

Registered: 05/11/99
Posts: 788
Loc: Wisconsin
Glad to hear it! I'll probably leave it all as is, right now, but when I get a spare moment or two, I'll try to clean up the display a bit... (allow descriptions, etc...)<br /><br />Take Care!
_________________________
--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/

Top
#265921 - 01/03/04 05:10 AM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: mazmanr]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
My user are very happy with this feature. While talk to them about the feed there are some ideas for future enhencements if you find the time to modify this mod again <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />The idea: the pal box should display a default feed for guests and users. Then it should possible for the user to change the feed itself. This can be done while selecting an other feed from a bulk of urls or enter an own url due the users my home control (such as enter an avatar url ect).<br /><br />This would stop the dicussions wich feed we should display <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#265922 - 03/05/04 08:07 AM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: mazmanr]
tbrackett Offline
Lurker

Registered: 05/01/03
Posts: 1
Just wondering if someone might tell me why the following xml news site won't parse - I just get a blank Pal... other xmls work great!<br /><br />http://www2.cio.com/search/rss/feed18.xml<br /><br />Can you try it and see?<br /><br />Thanks!

Top
#265923 - 03/05/04 11:29 AM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: TargetArcher]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Reply may be cause its RDF not RSS? Umm don't know but comparing it aginst Yahoo's Top News<br /><br />[] <?xml version="1.0" encoding="iso-8859-1" ?> <br />- <rss version="2.0"><br />- <channel><br /> <title>Yahoo! News - Top Stories</title> <br /> <link>http://news.yahoo.com/news?tmpl=index&cid=716</link> <br /> <description>Yahoo! News - Top Stories</description> <br /> <language>en-us</language> <br />[/]<br /><br />to theirs..<br /><br />[]<br /><?xml version="1.0" ?> <br />- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns="http://purl.org/rss/1.0/"><br />- <channel rdf:about="http://www.cio.com/"><br /> <title>CIO.com - ERP/Supply Chain</title> <br /> <link>http://www.cio.com/</link> <br /> <description>Award winning site with all CIO articles, research, case studies, opinion, events, community about ERP, CRM, knowledge management, strategy, alignment, intranet, outsourcing, e-business, security and more.</description> <br /> <dc:publisher>CXO Media, Inc.</dc:publisher> <br /> <dc:rights>Copyright(C) 1994 - 2004 CXO Media, Inc.</dc:rights> <br /> <dc:language>en-us</dc:language> <br /> <dc:creator /> <br /> <dc:date>2004-02-25</dc:date> <br /> <image rdf:resource<br />[/]<br /><br />doesn't appear to conform to the same rules?
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#265924 - 03/05/04 12:43 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: 234234]
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
The former is RSS 2, which is like RSS 0.9. <br /><br />The later is RSS 1, which is RDF.<br /><br />The whole thing is a giant mess...
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#265925 - 03/05/04 01:29 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: Rick8765]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Is it possible to make this palbox compatible with RSS 1/RDF?

Top
#265926 - 03/05/04 10:37 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: BrokenToy]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Sorry I don't know. I am not big into RSS best I can say is go see if you can find a script out there amongst the nuetrons that you can include(); into a Palbox.
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#265927 - 12/07/04 12:52 AM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: 234234]
ChefAce_dup1 Offline
Newbie

Registered: 11/15/04
Posts: 10
Loc: Ann Arbor, Mi.
Any way to get multiple boxes to display the rss feeds?<br /><br />When I do it I just rename the php script to custombox1pals.php then 2 then 3 then 4 and so on. (pretty noobish here)<br /><br />But when I do it I get an errog from the fetch file on line 89.<br /><br />I have about 4 different feeds I would like to use.<br /><br />Any help will be gretly appreciated.<br /><br />Thanks,<br />ChefAce

Top
#265928 - 12/08/04 09:02 PM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: Sam W]
ChefAce_dup1 Offline
Newbie

Registered: 11/15/04
Posts: 10
Loc: Ann Arbor, Mi.
Any suggestions, hints, tips, tricks etc etc?<br /><br />Anything of use will be appreciated.<br /><br />Thanks,<br />ChefAce

Top
#265929 - 12/10/04 08:28 AM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: Sam W]
ChefAce_dup1 Offline
Newbie

Registered: 11/15/04
Posts: 10
Loc: Ann Arbor, Mi.
Anyone?<br /><br />Anyone?<br /><br />Anyone?

Top
#265930 - 12/15/04 02:34 AM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: Sam W]
ChefAce_dup1 Offline
Newbie

Registered: 11/15/04
Posts: 10
Loc: Ann Arbor, Mi.
Dead thread.<br /><br />[sarcasim]Thanks for the feedback[/sarcasim]

Top
#265931 - 12/15/04 07:55 AM Re: adding a .rss (XML) parser to IIP Custombox for News Feeds [Re: Sam W]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Don't rename the script to the pal box name. Insert the code into the pal box. There is code that is required in the pal box itself and there should be comments in the pal script that says where to insert the code.<br /><br />If you can't figure it out, try attaching the file you are attempting to use and I'll take a look.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks