PHP-Nuke Services - Addons, Modules, Blocks Vizitati www.westdesign.ro Select Interface Language:EnglishRomanian
  Login or Register HomeForumsDownloadsYour AccountWeb LinksContact   
SectionsShow\Hide
MultiheadlinesShow\Hide
LoginShow\Hide
~ Welcome, alien
Nickname Password
(Register)

~ Membership:

Greetings to the newest member jincesoft
~ New Today: 0
~ New Yesterday: 0
~ Overall: 4306

~ People Online:
~ Visitors: 7
~ Members: 0
~ Total: 7
~Aikon is offline
on Yahoo Msg.
Link to meShow\Hide

aikons.net
Search in FeedsShow\Hide
Search in feeds
HistoryShow\Hide
On 21 May


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

- aikons.net - PHP-Nuke Services Forum Index


This topic is locked: you cannot edit posts or make replies. Page 1 of 1
yahoo feeds and my url
Message Author
Reply with quote
Post Posted: Wednesday 19 April, 2006 00:38

All the feeds from yahoo on my site display my url before the link url like this
http://www.ontheball.info/http://slam.canoe.ca/Slam/Soccer/2006/04/16/1536717-ap.html
It was generated from this feed
http://news.search.yahoo.com/news/rss?p=english-premier-league&ei=UTF-8&eo=UTF-8

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 19 April, 2006 01:15

This is usually a nuke problem when using unqualified url's
You should always use
http://www.whatever.com or
http://whatever.com not
www.whatever.com

View user's profile Send private message
Reply with quote
Post Posted: Thursday 20 April, 2006 01:20

Guardian, I dont understand. This rss starts with http, I have other's that are the same but dont have an error.

View user's profile Send private message
Reply with quote
Post Posted: Thursday 20 April, 2006 06:34

I dont understand either:
This url from google has no problem:
http://news.google.fr/news?hl=fr&ned=fr&q=senegal&ie=UTF-8&output=rss

But this one from yahoo has the problem:
http://fr.search.yahoo.com/news/rss?ei=UTF-8&p=senegal&c=0&eo=UTF-8

Seem to be the same url format for me

View user's profile Send private message
Reply with quote
Post Posted: Thursday 20 April, 2006 16:24

@checksum and Hinkstar
If you look closelly to the source of the feed url you'll see that the links for articles are formated something like this[in both cases]:
Quote:
http://us.rd.yahoo.com/dailynews/rss/search/english-premier-league/SIG=11r0m1c7p/*http%3A//feeds.feedburner.com/foxsports/rss/soccer?m=2261

I wanted to redirect the user direct to the original site [where the news are come from] when clicking on the feed title. So I take out only the http%3A//feeds.feedburner.com/foxsports/rss/soccer?m=2261, but in this case the url http%3A//feeds.feedburner.com/foxsports/rss/soccer?m=2261 isn't a valid one.
So here comes...Guardian explanation....again.

A quick solution[In this case you'll go to the original site of article through Yahoo]:
on functions.php at line 634 strip out the following code:

Code:
if (eregi("rd.yahoo.com/", $link)) {
   $l=explode("*", $link);
   $link=$l[1];
}


or a second solution[you'll be direct to original site]:
on line 638 after the closing bracket [just bellow the above mentioned code] add the following line:
Code:
$link=ereg_replace("http%3A//", "http://", $link);


View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Friday 21 April, 2006 00:05

Thank you aikon, work fine now

View user's profile Send private message
Reply with quote
Post Posted: Friday 21 April, 2006 00:22

Aikon - great fix. I had been trying to find that one.

View user's profile Send private message
Reply with quote
Post Posted: Friday 21 April, 2006 00:27

Actually nothing was wrong Smile.

It was the link itself that raised the problem.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Friday 21 April, 2006 01:40

used option 2 Very Happy

View user's profile Send private message
Display posts from previous:
This topic is locked: you cannot edit posts or make replies. Page 1 of 1
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
  


Page Generation: 0.64 Seconds