Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3
Author Message
djw2
Regular
Regular



Joined: Sep 19, 2003
Posts: 95
Location: St. Louis, MO

PostPosted: Thu Jul 08, 2004 9:17 am Reply with quote

Hey,

I'm using a PHP-Nuke 7.3 with the 2.5 patch installed and I can't get a RSS feed to work in a block.

I'm trying to create a block and when I enter a news feed in the RSS/RDF file URL: and hit Create Block I get this error.

Quote:
There is a problem with the RSS file URL


At first I thought I was doing something wrong but it hasn't worked on anything.

Here's a couple I've tried so far... and the only two I really need btw.
[ Only registered users can see links on this board! Get registered or login! ]

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


So, I'm curious... why won't those work, and what exactly is it that will work?


Thanks in advance,

Dan

_________________
It has become appallingly obvious that our technology has exceeded our humanity.

--Albert Einstein 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Jul 08, 2004 9:32 am Reply with quote

The first one does not work outside of nuke, so I don't think nuke is the issue. The second one requires that you read the contents of that url into the $content variable, using something like $content=file_get_contents('http://swg.stratics.com/php-bin/rss/format.php'); Is that how you are calling it? This also requires that fopen_wrappers is set in php.ini.
 
View user's profile Send private message
djw2







PostPosted: Thu Jul 08, 2004 9:51 am Reply with quote

Hey Raven,

Well the [ Only registered users can see links on this board! Get registered or login! ] is working now. I went into the RSS/RDF set up and created a new feed. I then selected that feed rather than entering the URL in the input text and choosing custom to make the block.

When I selected my newly created feed in the drop down menu and clicked Create Block it worked... so I don't know what the deal was there.


Now then, the second one. No, that's not how I'm calling it. I had simply entered the URL [ Only registered users can see links on this board! Get registered or login! ] into the RSS/RDF input text line, selected Custom on the drop down menu, and clicked Create Block. That's when I got the "There is a problem with the RSS file URL" error.

So... what do I need to do? I simply want a news feed in a block, so where would I insert the $content variable, and how would I call it to display in the block?

And...

Code:
This also requires that fopen_wrappers is set in php.ini.


What does that mean? Laughing Sorry. Is this something I have control over or is this something my host would have to do? I'm not sure how much effort this silly little news feed is worth but I guess I'd like to know either way.

Thanks again Raven.

Dan
 
djw2







PostPosted: Thu Jul 08, 2004 10:00 am Reply with quote

Here's an odd thing about that block that is working now though. I can't move it. I can move it up and down on the right, which is where it was created, but I tried to move it to a Center Down position to take a look at it... and it won't move. I also tried to move it to the left hand side and that didn't work either. So, while it may be working, it does appear something isn't right.

Peace.
 
Raven







PostPosted: Thu Jul 08, 2004 10:02 am Reply with quote

The second one does not appear to be an rdf feed. It is a link to a php file/feed and has to be called the way I stated. The setting is in the php.ini file. Try it like I said and if it doesn't work then run a phpinfo() to see if your host allows it. If they don't then ask them to change it. If they refuse, come to Raven Web Hosting Laughing
 
djw2







PostPosted: Thu Jul 08, 2004 10:14 am Reply with quote

This can't be that difficult, thousands of people... including children are pulling news feeds from Stratics everyday, and I doubt that every one of the have that level of coding knowledge.

Here's the News Feed page...
[ Only registered users can see links on this board! Get registered or login! ]

Maybe I'm doing something wrong, or trying to pull the wrong feed.

I suppose it could be a limitation in the Nuke but even that seems unrealistic considering the amount of hours spent developing this thing... you mean I can pull a feed. That would be very surprising.

Any ideas on the not being able to move the block thing? What could cause that to happen?


Thanks again.
 
Raven







PostPosted: Thu Jul 08, 2004 10:18 am Reply with quote

It isn't difficult. Are the thousands of people nuke admins like yourself? You, as an admin using nuke/php have to do that. Others can just place a link on an html web page. You are trying to incorporate into a nuke block using php. It's apples and oranges. There is no limitation in nuke. It's a php coding issue.
 
djw2







PostPosted: Thu Jul 08, 2004 10:48 am Reply with quote

Ok, you were right... piece of cake, I just built a block that looks like this...

Code:
<?php


if (eregi("block-SWGStratics.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}


$content=file_get_contents('http://swg.stratics.com/php-bin/rss/read.php');

?>


saved it as block-SWGStratics.php, uploaded and activated it. Done.Embarassed


Now then, any ideas on what would have the other block locked on the right hand side the way it is? Is there something that says... "if this is were it's created this is where it needs to stay"?

If it's causing an error of some sort I'd like to resolve it.


Thanks
 
Raven







PostPosted: Thu Jul 08, 2004 11:01 am Reply with quote

Nope. No idea on that one. Try deleting it and recreating it as a center up.
 
djw2







PostPosted: Thu Jul 08, 2004 11:12 am Reply with quote

Yeah, that's what I did. Kinda funny that one.

When I create it I can't name it, it's simply called what it's called (StarWars) and that can't be changed.

I deleted and created as a center block and there it was, again... it cannot be moved to a different location, only up and down.

I deleted it again and created it on the left. It creates fine, but cannot be modified after that.

I don't know… it's screwy. I'm not going to use it. The site is a Star Wars Galaxies guild site so the only real important one was the one that has Star Wars Galaxies news in it and it's working fine. The Star Wars one was a bonus... no bonuses today boys.


Thanks again for all your help.

Peace.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.3

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 ©