Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Dacubz
Worker
Worker


Joined: Apr 27, 2004
Posts: 156
Location: Homer Glen, Illinois

PostPosted: Tue Jun 28, 2005 12:44 pm Reply with quote

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?
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Tue Jun 28, 2005 3:17 pm Reply with quote

Look at backend.php and use that as your model.
 
View user's profile Send private message
Dacubz
PostPosted: Tue Jun 28, 2005 7:39 pm Reply with quote

I looked at it and don't have a clue. I never messed with rss feeds before. Bang Head
 
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

PostPosted: Tue May 26, 2009 6:28 pm Reply with quote

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
 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Tue May 26, 2009 9:12 pm Reply with quote

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
 
View user's profile Send private message Visit poster's website
pan
PostPosted: Wed May 27, 2009 4:50 pm Reply with quote

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';
?>
 
pan
PostPosted: Wed May 27, 2009 5:00 pm Reply with quote

I have also tried creating one with RSS/Thing and it says:


A feed could not be found at Only registered users can see links on this board! Get registered or login!
 
ToolBox
Regular
Regular


Joined: Mar 16, 2005
Posts: 74

PostPosted: Wed May 27, 2009 9:41 pm Reply with quote

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.
 
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Thu May 28, 2009 5:41 am Reply with quote

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.
 
View user's profile Send private message
pan
PostPosted: Thu May 28, 2009 4:33 pm Reply with quote

jakec wrote:
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.


Only registered users can see links on this board! Get registered or login!

Any of these, eg.
Only registered users can see links on this board! Get registered or login!
 
pan
PostPosted: Thu May 28, 2009 11:14 pm Reply with quote

Anyone know what the problem is?
 
spasticdonkey
PostPosted: Fri May 29, 2009 7:38 am Reply with quote

it think there may be formatting errors with those feeds...
" A feed could not be found at Only registered users can see links on this board! Get registered or login! "
my browser didn't recognize the feeds there either. since it's part of an affiliate program they may have added custom code somewhere in-between that's causing a problem.
you could try creating a rss widget but that will likely fail too.. Only registered users can see links on this board! Get registered or login!
 
jakec
PostPosted: Fri May 29, 2009 9:12 am Reply with quote

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.
 
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6793
Location: Ha Noi, Viet Nam

PostPosted: Fri May 29, 2009 1:07 pm Reply with quote

It isn't a valid feed as you can see here Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message Send e-mail
pan
PostPosted: Fri May 29, 2009 4:50 pm Reply with quote

Yea I thought the feed had an issue.

I have emailed their support
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©