Author |
Message |
Dacubz
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Apr 27, 2004
Posts: 156
Location: Homer Glen, Illinois
|
Posted:
Tue Jun 28, 2005 12:44 pm |
|
I've searched, but I'm not sure how to find exactly what I'm looking for. How can I add an xml feed to my site? I'd like it added to a block if possible. Has anybody already done this? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Jun 28, 2005 3:17 pm |
|
Look at backend.php and use that as your model. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Dacubz
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 28, 2005 7:39 pm |
|
I looked at it and don't have a clue. I never messed with rss feeds before. ![Bang Head](modules/Forums/images/smiles/banghead.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/cb3876054d99124b4f395.png)
Joined: Jul 25, 2006
Posts: 354
|
Posted:
Tue May 26, 2009 6:28 pm |
|
I would like a xml block too
How is this done?
I tried putting the xml code into a new php block but it just didn't work at all |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Tue May 26, 2009 9:12 pm |
|
you found a pretty old thread here. if you are trying to put a feed in a block just use the feed url when creating your block, look closely at the options at the top
if you are trying to create a feed use nukeFEED |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 27, 2009 4:50 pm |
|
It was the only thread I found with the same thing I was trying to ask.
I have this and it doesn't work:
Code:
<?php
if (eregi("block-Feed.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = 'http://www.website.com/thing.xml';
?>
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed May 27, 2009 5:00 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
ToolBox
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Mar 16, 2005
Posts: 74
|
Posted:
Wed May 27, 2009 9:41 pm |
|
To conider XML aggregation on spot inside your block, you have some companies as follows:
1. everytime your site php runs, does your block access xml cater sites? This will kill your hosting servers.
2. to solve the 1), you need caches to store temperal and tenative atoms of xms/rss. So, this is the best I think.
3. Your block will be only for individual users? or for your site? As a matter of fact, as you know, myheadline part of Your_Account (the original phpnuke is poor, really poort, .. that's not the code, that myheadline is so bad, anyways) is one of yoru candidate. For this, myheadline should be storable in your sql db for every users and when your users come up on your site, the block will bring the feeds.
4. In fact, I am not sure that simple reading xml feed data from other sites is helpful or not. If you wish, you will do it. But, what if your xml site down? You will change the whole block?
Finally, parsing all kidns of feed is not such a simple job. For only one block, do you include 1000lines of simple pie?
Oh, I am not discouraging you, pan. Just tried to point out possible weak-points.
Personally, I don't like blocks. from the user-interface view around 4 to 6 blocks are proper. Don't believe your site users will scroll down. Users are lazy but dynamic in cognition. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
Site Admin
![](modules/Forums/images/avatars/502a2d1345d88a86ddb4a.png)
Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Thu May 28, 2009 5:41 am |
|
RN should do this by default with the mod kguske has added and it caches the feed as well.
Please can you post the feed you are trying to add to the block. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu May 28, 2009 4:33 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu May 28, 2009 11:14 pm |
|
Anyone know what the problem is? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 29, 2009 7:38 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jakec
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 29, 2009 9:12 am |
|
Yes I agree with spasticdonkey, even Firefox is not recognising it as a valid feed.
There are other feeds, which can be found on their homepage, that do work. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Fri May 29, 2009 1:07 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri May 29, 2009 4:50 pm |
|
Yea I thought the feed had an issue.
I have emailed their support |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|