FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
Search found 2 matches
Author Message
Topic: Filter does not display entries, just code
lofatlabs

Replies: 1
Views: 15429

PostForum: RSSFilter (Creates a filtered RSS feed)   Posted: Sat Nov 22, 2008 1:16 pm   Subject: Solved.
Solved. Thanks for the great software. Well worth the price.
Topic: Filter does not display entries, just code
lofatlabs

Replies: 1
Views: 15429

PostForum: RSSFilter (Creates a filtered RSS feed)   Posted: Sat Nov 22, 2008 12:51 pm   Subject: Filter does not display entries, just code
I have installed rss2html and rssfilter.

The code on my /index.php for rss2html is:

<?php
$XMLFILE = "http://lofatlabs.com/inc/rss/site_update_feed.php";
$TEMPLATE = "http://lofatlabs.com/inc/rss/excerpt_template.html";
$MAXITEMS = "2";
include 'inc/rss/rss2html.php';
?>

and my rssfilter script is:

<?PHP

// The URL of the feed.
$XMLfilename = "http://lofatlabs.com/blog/feed/";

$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("~~~ItemCategory~~~", "Site Update", 0) &&
$currentItem->notEmpty("~~~ItemDescription~~~", "", 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 = "AND";
$filterElements = Array(
// Entry #1
Array("Field" => "~~~ItemCategory~~~",
"Filter" => "contains",
"Value" => "Site Update",
"MatchCase" => "0"
)
,

// Entry #2
Array("Field" => "~~~ItemDescription~~~",
"Filter" => "notEmpty",
"Value" => "",
"MatchCase" => "0"
)
 ...
 

 Jump to:   


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