Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 241
Coder
Coder
Offline
Joined: May 1999
Posts: 241
Hey Gang,

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....

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 (0 Bytes, 271 downloads)


--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/
Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
works well. For germany you can try this URL as feed:
http://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml
Information for this URL: http://www.spiegel.de/dertag/0,1518,271804,00.html

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 ?

You read my mind. Today I start to find a newsticker to display it in TopNews Hack from Josh, but this also nice

Joined: May 1999
Posts: 241
Coder
Coder
Offline
Joined: May 1999
Posts: 241
It does not automatically refresh itself or the page. It will reload when the page is refreshed or reloaded.

Anyway, glad it is of use!


--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Thanks for sharing.

Joined: May 1999
Posts: 241
Coder
Coder
Offline
Joined: May 1999
Posts: 241
No problem... 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/
Sponsored Links
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
can you try out this feed ? : http://www.rpgdot.com/team/rss/rss0.xml

Url to homepage: http://www.rpgdot.com/index.php?hsaction=30

Its a V1.0 RSS and is not show up with your script.

Joined: May 1999
Posts: 241
Coder
Coder
Offline
Joined: May 1999
Posts: 241
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... ) to format it or anything like that, but it should get you started...

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!

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.

Let me know if that fixes it for you.
Attachments
103781-rss-integration.zip (0 Bytes, 209 downloads)


--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
works ! take a look if you like: http://www.dragonclan-forum.de/index.php?Cat=0

Good work.

Joined: May 1999
Posts: 241
Coder
Coder
Offline
Joined: May 1999
Posts: 241
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...)

Take Care!


--------------------
Matt Reinfeldt
http://www.mattreinfeldt.com/
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
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

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).

This would stop the dicussions wich feed we should display

Sponsored Links
Joined: May 2003
Posts: 1
Lurker
Lurker
Offline
Joined: May 2003
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!

http://www2.cio.com/search/rss/feed18.xml

Can you try it and see?

Thanks!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Reply may be cause its RDF not RSS? Umm don't know but comparing it aginst Yahoo's Top News

[] <?xml version="1.0" encoding="iso-8859-1" ?>
- <rss version="2.0">
- <channel>
<title>Yahoo! News - Top Stories</title>
<link>http://news.yahoo.com/news?tmpl=index&cid=716</link>
<description>Yahoo! News - Top Stories</description>
<language>en-us</language>
[/]

to theirs..

[]
<?xml version="1.0" ?>
- <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/">
- <channel rdf:about="http://www.cio.com/">
<title>CIO.com - ERP/Supply Chain</title>
<link>http://www.cio.com/</link>
<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>
<dc:publisher>CXO Media, Inc.</dc:publisher>
<dc:rights>Copyright(C) 1994 - 2004 CXO Media, Inc.</dc:rights>
<dc:language>en-us</dc:language>
<dc:creator />
<dc:date>2004-02-25</dc:date>
<image rdf:resource
[/]

doesn't appear to conform to the same rules?

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
The former is RSS 2, which is like RSS 0.9.

The later is RSS 1, which is RDF.

The whole thing is a giant mess...


UBB.classic: Love it or hate it, it was mine.
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Is it possible to make this palbox compatible with RSS 1/RDF?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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.

Joined: Nov 2004
Posts: 10
Newbie
Newbie
Offline
Joined: Nov 2004
Posts: 10
Any way to get multiple boxes to display the rss feeds?

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)

But when I do it I get an errog from the fetch file on line 89.

I have about 4 different feeds I would like to use.

Any help will be gretly appreciated.

Thanks,
ChefAce

Joined: Nov 2004
Posts: 10
Newbie
Newbie
Offline
Joined: Nov 2004
Posts: 10
Any suggestions, hints, tips, tricks etc etc?

Anything of use will be appreciated.

Thanks,
ChefAce

Joined: Nov 2004
Posts: 10
Newbie
Newbie
Offline
Joined: Nov 2004
Posts: 10
Anyone?

Anyone?

Anyone?

Joined: Nov 2004
Posts: 10
Newbie
Newbie
Offline
Joined: Nov 2004
Posts: 10
Dead thread.

[sarcasim]Thanks for the feedback[/sarcasim]

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
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.

If you can't figure it out, try attaching the file you are attempting to use and I'll take a look.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)