FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 not working rssfilter View next topic
View previous topic
Post new topicReply to topic
Author Message
rgpayne



Joined: 19 May 2008
Posts: 12

PostPosted: Mon May 19, 2008 8:52 am Reply with quoteBack to top

under to get rssfilter to work

this is the file I save as feed.php
<?PHP

// The URL of the feed.
$XMLfilename = "http://www.topix.net/rss/city/texarkana-tx";

$outputCacheTTL = 3600;
$useOutputCaching = 0;
//
// The function that decides if the current item will be used.
// return TRUE to use the itme, FALSE to not
if (!isset($_REQUEST["buildScript"])) {
Function rssFilter_useItem($currentItem) {
// the default fall through is to use the item
if ($currentItem->contains("~~~ItemDescription~~~", "Texarkana", 0)) {
return TRUE;
}
return FALSE;
}
}

//
// Since we are calling rssFilter.php from here, we don't want
// to include a separate script file.
$FilterScriptFilename = "DO_NOT_INCLUDE_SCRIPT";
if (!isset($_REQUEST["buildScript"])) {
@include_once("rssFilter.php");
}

$matchType = "OR";
$filterElements = Array(
// Entry #1
Array("Field" => "~~~ItemDescription~~~",
"Filter" => "contains",
"Value" => "Texarkana",
"MatchCase" => "0"
)
);


?>

then I take rss2html and use that as my feed , I get errors on top of errors

help or input would be appreciated
View user's profile
MacSupport



Joined: 24 Feb 2005
Posts: 2805

PostPosted: Mon May 26, 2008 5:58 am Reply with quoteBack to top

rgpayne wrote:
under to get rssfilter to work

this is the file I save as feed.php
<?PHP

// The URL of the feed.
$XMLfilename = "http://www.topix.net/rss/city/texarkana-tx";

$outputCacheTTL = 3600;
$useOutputCaching = 0;
//
// The function that decides if the current item will be used.
// return TRUE to use the itme, FALSE to not
if (!isset($_REQUEST["buildScript"])) {
Function rssFilter_useItem($currentItem) {
// the default fall through is to use the item
if ($currentItem->contains("~~~ItemDescription~~~", "Texarkana", 0)) {
return TRUE;
}
return FALSE;
}
}

//
// Since we are calling rssFilter.php from here, we don't want
// to include a separate script file.
$FilterScriptFilename = "DO_NOT_INCLUDE_SCRIPT";
if (!isset($_REQUEST["buildScript"])) {
@include_once("rssFilter.php");
}

$matchType = "OR";
$filterElements = Array(
// Entry #1
Array("Field" => "~~~ItemDescription~~~",
"Filter" => "contains",
"Value" => "Texarkana",
"MatchCase" => "0"
)
);


?>

then I take rss2html and use that as my feed , I get errors on top of errors

help or input would be appreciated


What errors to do get?

Jim

_________________
Be sure to check out the FeedForAll Mac tutorials at: http://www.FeedForAll.com/tutorials/

FeedForAll Mac and rss2html.php
support@FeedForAll.com
View user's profileVisit poster's website
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme