Janwillem Borleffs wrote:[color=blue]
>
> I have had a quick look at it, and since it is reading the content from the
> <url /> element and copying it directly in the output, I don't regard it as
> a bug from the script but just as an alternative format of the URL in the
> feed.[/color]
The problem is that it messes up the wrong link. If you click on 'Exxon
fined $11.8bn in gas row' here
(
http://www.handystart.com/morenews/n...siness+stories)
now, you will be redirected to
www.fortune.com....
[color=blue]
> As far as I can see, you can just leave it as is, but when you really don't
> want it, you could try the following workaround to fix the URL's:
>
> Replace the characterData function in the class.morenews.php file with the
> following:
>
> function characterData($parser, $data) {
> if ($this->tags[$this->cur_tag]) {
> if ($this->cur_tag == "URL") {
> $strpos = strpos($data, "http://c.moreover.com");
> if ($strpos !== false) {
> $this->cur_val .= ltrim(substr($data, $strpos));
> } else {
> $this->cur_val .= ltrim($data);
> }
> } else {
> $this->cur_val .= ltrim($data);
> }
> }
> }
>
>
> HTH,[/color]
Sorry, still couldn't make it work...
Thanks,
Inge (is rather stupid when it comes to PHP)
--
http://www.handystart.com/