CaRP: Caching RSS Parser - Manual
Version 2.7.5 (8/13/2003)
NOTE: This version of CaRP is obsolete.
This documentation is being left here for those who have not yet upgraded to the current version.
Download |
Installation |
Configuration |
Functions |
Examples |
Donations
Examples: Styles & Classes |
Multiple Feeds on a Page |
Unordered List |
Background Refreshing |
Filtering |
Aggregating 1 |
Aggregating 2 |
JavaScript
This code will only display items containing at least one of the words "fly", "buffalo" and "samurai" in the title or description:
<?php
require_once "/path/to/carp.php";
CarpConf('preitem','&bull ');
CarpConf('filterin','fly|buffalo|samurai');
CarpConf('showdesc',1);
CarpConf('maxitems',3);
CarpConf('maxdesc',100);
CarpShow("http://antone.mouken.com/dreams/rss/antone.talk.1.rdf", "dreams.example.filter.a");
?>
This code will only display items not containing any of the words "fly", "buffalo" or "samurai" in the title or description:
<?php
require_once "/path/to/carp.php";
CarpConf('preitem','&bull ');
CarpConf('filterout','fly|buffalo|samurai');
CarpConf('showdesc',1);
CarpConf('maxitems',3);
CarpConf('maxdesc',100);
CarpShow("http://antone.mouken.com/dreams/rss/antone.talk.1.rdf", "dreams.example.filter.b");
?>
This code will display items containing "fly", "buffalo" or "samurai", but not "rope" in the title or description:
<?php
require_once "/path/to/carp.php";
CarpConf('preitem','&bull ');
CarpConf('filterin','fly|buffalo|samurai');
CarpConf('filterout','rope');
CarpConf('showdesc',1);
CarpConf('maxitems',3);
CarpConf('maxdesc',100);
CarpShow("http://antone.mouken.com/dreams/rss/antone.talk.1.rdf", "dreams.example.filter.c");
?>
This code will display items containing the word "fly" in the title, or "family" in the description, but not "extended" in either the title or description:
<?php
require_once "/path/to/carp.php";
CarpConf('preitem','&bull ');
CarpConf('filterin','title:fly|description:family');
CarpConf('filterout','extended');
CarpConf('showdesc',1);
CarpConf('maxitems',3);
CarpConf('maxdesc',100);
CarpShow("http://antone.mouken.com/dreams/rss/antone.talk.1.rdf", "dreams.example.filter.d");
?>
|
Example Output:
fly, buffalo, samurai:
&bull Dodging buffalo
In my dream, I'm walking down out of the mountains across a long field. At the far end of the field ... continues
&bull Who needs a rope when you can fly?
In my dream, I'm in the mountains by a lake. Discovering that I can float or fly, I go skipping acro... continues
&bull Pancakes, royal reunions and samurai
In my dream, I'm eating pancakes with extended family. They all finish and clean up, but I want one ... continues
not fly, buffalo, samurai:
&bull Catching baseballs
In my dream, I'm standing behind and a little off to the right of the batter's box watching some bas... continues
&bull Dad's service shovel
In my dream, a friend and I are on the roof of some building. I've gotten a bunch of stickers in my ... continues
&bull Underwater kayaking
In my dream, my family and perhaps some extended family are climbing into kayaks at the edge of a sm... continues
fly, buffalo, samurai, but not rope:
&bull Dodging buffalo
In my dream, I'm walking down out of the mountains across a long field. At the far end of the field ... continues
&bull Pancakes, royal reunions and samurai
In my dream, I'm eating pancakes with extended family. They all finish and clean up, but I want one ... continues
&bull Helio-copter
In my dream, I'm some sort of military special forces person. I've captured a one-man solar-powered ... continues
fly in title, family in description, no extended:
&bull Who needs a rope when you can fly?
In my dream, I'm in the mountains by a lake. Discovering that I can float or fly, I go skipping acro... continues
&bull The FBI gets personal
In my dream, the FBI has asked for the romantic history of everyone in my family. I am shown a list ... continues
|