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: 8
~ Members: 0
~ Total: 8
~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
block feed url error
Message Author
Reply with quote
Post Posted: Sunday 12 February, 2006 15:54

I have a couple of rss feeds in the center block that link to strange urls

the url
http://www.thefa.com/rss/thefacup/thefacup/rss.xml

the links have this kind of url
http://www.ontheball.info/<![CDATA[http://www.thefa.com/TheFACup/TheFACup/NewsAndFeatures/Postings/2006/02/Middlesbrough_coventry_report.htm]]>

View user's profile Send private message
Reply with quote
Post Posted: Sunday 12 February, 2006 16:13

I have 2 scripts on my site that have CDATA

functions.php
and
FCKTemplates.xml

View user's profile Send private message
Reply with quote
Post Posted: Sunday 12 February, 2006 20:51

Try this:

open file block-Multiheadlines-center.php from /blocks folder and after line 57:
Code:
$link = ereg_replace("</link>.*","",$link);


add the following lines

Code:
$l=substr_replace(htmlspecialchars(trim($link)),"",0,12);   
$l=substr_replace($l,"",-6);
$link = html_entity_decode($l);


Now the url should be good.

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Sunday 12 February, 2006 22:50

Very Happy

View user's profile Send private message
Reply with quote
Post Posted: Sunday 12 February, 2006 22:54

It did fix the above url's but it changed
http://www.confguide.com/cgi-bin/rssnews.mpl
to
http://www.ontheball.info/onfguide.com/newsArticle.do?i

View user's profile Send private message
Reply with quote
Post Posted: Monday 13 February, 2006 00:14

other feeds that now do not work in the center block

http://www.eurosport.co.uk/z/football/world-cup1/2006/rss.xml
http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/football/eng_div_1/rss.xml
http://www.guardian.co.uk/rssfeed/0,15065,5,00.xml

View user's profile Send private message
Reply with quote
Post Posted: Monday 13 February, 2006 01:26

My bad. Mr. Green
Undo what you did before.

So after line 57 in the above mentioned file add these lines

Code:
if (strstr(htmlspecialchars($link),"CDATA")){         
         $l=substr_replace(htmlspecialchars(trim($link)),"",0,12);   
         $l=substr_replace($l,"",-6);
         $link = html_entity_decode($l);
}


View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Monday 13 February, 2006 01:36

Rolling Eyes Wink 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.57 Seconds