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 Quattro25
~ New Today: 2
~ New Yesterday: 1
~ Overall: 3710

~ 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 7 January


Speed Up   Pause   Speed Down
DictionaryShow\Hide
Enter the word

Romanian users only

Situl personal NICU RANCOV Forum Index


Reply to topic Page 1 of 1
Filtering the item <link> in the Rss Feed?
Message Author
Reply with quote
Post Posted: Wednesday 29 August, 2007 19:07

hi aikon i am trying out the way you had recommended at http://www.aikons.net/ftopict-269.html to filtering text. i wanted to use this example to filter item<link> in the rss feed. How do i code it, can you help out? many thanks 10z

View user's profile Send private message
Reply with quote
Post Posted: Wednesday 29 August, 2007 22:37

What do you mean?
What exactly do you want to filter on link?
The <link> tags holds the url of the article.
Can you give us an example?

View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Thursday 30 August, 2007 07:29

Aikon wrote:
What do you mean?
What exactly do you want to filter on link?
The <link> tags holds the url of the article.
Can you give us an example?


the <link>url example to filter off


<item>
<title>Verizone Wireles International Services<title>
<link>http://mobilephonegadget.blogspot.com/2007/08/verizone-wireles-international-services.html<link>
<dcpublisher>Mobile Phone and Gadget<dcpublisher>
<dccreator>toysfinder<dccreator>
<dcdate>2007-08-30T04:48:00Z<dcdate> [/code] <item>

View user's profile Send private message
Reply with quote
Post Posted: Thursday 30 August, 2007 07:43

Aikon wrote:
What do you mean?
What exactly do you want to filter on link?
The <link> tags holds the url of the article.
Can you give us an example?


sorry had problem posting. Using the example from http://www.aikons.net/ftopict-269.html
because iam using a google seach tag of the rss feed of gadget blog. i wanted to use the above example to filter <link>url. there are 2 item in this feed all i wish is to filter the first item <link>url as http://mobilephonegadget.blogspot.com/2007/08/verizone-wireles-international-services.html and leave the second item to display only. how shall i mod it?thanks you aikons

<item>
<title>Verizone Wireles International Services<title>
<link>http://mobilephonegadget.blogspot.com/2007/08/verizone-wireles-international-services.html<link>

<dc:publisher>Mobile Phone and Gadget<dc:publisher>
<dc:creator>toysfinder</dc:creator>
<dc:date>2007-08-30T04:48:00Z<dc:date>
<item>

<title>Nokia 5300 review</title>
<link>http://gadgetcage.blogspot.com/2007/08/nokia-5300-review_29.html</link>
<dc:publisher>:: Gadget Cage ::</dc:publisher>
<dc:creator>Siddartha</dc:creator>
<dc:date>2007-08-30T03:32:00Z</dc:date>
</item>


View user's profile Send private message
Reply with quote
Post Posted: Thursday 30 August, 2007 12:58

Code:
function nolink($link) {
$nolinkarray = array(
'http://mobilephonegadget.blogspot.com/2007/08/verizone-wireles-international-services.html',
'nolink1',
'nolink2',
'nolink3',
..........
}
   $indic=false;
   foreach ($nolinkarray as $nolink) {
      if (is_int(strpos($link, $nolink))) {
         $indic=true;
      }
   }
return $indic;
}


and below

Code:
if (intval($nr)==0 && nolink($link)==false) {


View user's profile Send private message Visit poster's website
Reply with quote
Post Posted: Friday 31 August, 2007 12:07

thanks aikon for the trouble will try this out to se if it is practical

View user's profile Send private message
Display posts from previous:
Reply to topic 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.54 Seconds