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 | Upgrading from version 2 | Functions | Examples | Donations
Old documentation: Version 2
ConfigurationThe following options are defined in $carpconf, and are color-coded based on the likelihood that you'll want to change them, as follows: usually changed, often changed, sometimes changed, rarely changed
Cache Control |
Content-Based Filtering |
Display Formatting |
Miscellaneous |
Network Connection |
XML Encoding
Display Formatting:
| [bcb] | "before channel before": Insert any text or HTML you wish to have appear before the channel section which appears before the items ("cborder") here (use "bca" ("before channel after") for the section that appears after the items ("caorder"). For example, you may use a command like CarpConf('bc','<span style="Font-Family:Arial,sans-serif">'); to set the font of the channel section. If you do this, be sure to use a command like CarpConf('ac','</span>'); below to match the opening tag. If you want to set the same font (or other setting) for the entire newsfeed rather than just the channel section, you do not need to use CaRP settings to do that. Instead, simply insert the appropriate HTML formatting before the part of your webpage where you use CaRP. | ||
| [bcimage]<a href="image link" target="[linktarget]"><img src="image source" height="image height or [setcimageh or defcimageh or maxcimageh]" width="image width or [setcimagew or defcimagew or maxcimagew]" border="0" alt="image alt text"></a>[acimage] | If the newsfeed does not specify image dimensions and defcimagew (default channel image width) and/or defcimageh (default channel image height) are set, the defaults are used. Otherwise, no dimensions are specified, and the image is displayed in its actual dimensions. If maxcimagew (maximum channel image width) and/or maxscimageh (maximum channel image height) are set and the newsfeed specifies image dimensions, the image dimensions are reduced as necessary. When either dimension is reduced, the other is reduced by the same percentage to maintain the proper aspect ratio. If setcimagew (set channel image width) and/or setcimageh (set channel image height) are set, the other settings are ignored and the image is scaled to the specified dimensions. If only one of the two is set, the other is scaled by the same percentage to maintain the proper aspect ratio. | ||
| [bctitle] | "before channel title" | ||
| <a href="channel link" class="[clinkclass]" style="[clinkcstyle]" title="channel title" target="[linktarget]">channel title[atruncctitle]</a> | "channel link class", "channel link style", "channel link target", and "after truncated channel title": If clickclass is blank, the 'class="[clinkclass]"' section will be omitted. The same is true for clinkstyle. If the channel title is truncated by the maxctitle (maximum channel title length) setting (see below), atruncctitle will be added to the end of the remaining portion of the channel title. See below for more information about linktarget. | ||
| - or - | If corder (described above) contains "link", the above is displayed. If it contains "title", the following is displayed. | ||
| <span class="[clinkclass]" style="[clinkcstyle]">channel title[atruncctitle]</span> | "channel link class", "channel link style", "after truncated channel title": See notes above. | ||
| [actitle] | "after channel title" | ||
| [bcdate]date[acdate] | "before channel date", "after channel date": The format of the date is controlled by the cdateformat option (see below). If the "pubdate" and "dc:date" fields are both blank, this section will be omitted. | ||
| [bclink]date[aclink] | "before channel link", "after channel link": If no channel link is specified in the newsfeed, this section will be omitted. | ||
| [bcdesc]channel description[atrunccdesc][acdesc] | "before channel description", "after truncated channel description", "after channel description": If the channel description is truncated by the maxcdesc (maximum channel description length) setting (see below), atrunccdesc will be added to the end of the remaining portion of the channel description. If the channel description is blank, this section will be omitted. | ||
| [acb] | "after channel before", or "aca" ("after channel after") (see "bcb" above) | ||
| [bitems] | "before items": this appears once before the list of items | ||
| The following section is repeated once for each news item displayed. | |||
| [bi] | "before item": You could use this item to create a bulleted list by using the command CarpConf('bi','• '); Or, you could use the commands CarpConf('bitems','<ul>');, CarpConf('aitems','</ul>'); and CarpConf('bi','<li>'); to create an indented bulleted list. | ||
| [biimage]<a href="image link" target="[linktarget]"><img src="image source" height="image height or [setiimageh or defiimageh or maxiimageh]" width="image width or [setiimagew or defiimagew or maxiimagew]" border="0" alt="image alt text"></a>[aiimage] | See the notes above for the channel image. | ||
| [bilink] | "before item link" | ||
| <a href="item link" class="[ilinkclass]" style="[ilinkstyle]" title="title" target="[linktarget]">title[atruncititle]</a> | "item link class", "item link style", "item link target", "after truncated item title": See the channel title section above for details on display of the item link or title. | ||
| [ailink] | "after item link" | ||
| [biauthor]author[aiauthor] | "before item author", "after item author" If the "author" and "dc:creator" fields are both blank, this section will be omitted. | ||
| [bidate]date[aidate] | "before item date", "after item date": The format of the date is controlled by the idateformat option (see below). If the "pubdate" and "dc:date" fields are both blank, this section will be omitted. | ||
| [bilink]date[ailink] | "before item link", "after item link": If no item link is specified in the newsfeed, this section will be omitted. | ||
| [bidesc]idesc[atruncidesc][aidesc] | "before item description", "after truncated items description", "after item description": See the channel description section above for details, subtituting maxidesc and atruncidesc for maxcdesc and atrunccdesc. | ||
| [ai] | "after item" | ||
| End of section repeated once for each news item. | |||
| [aitems] | "after items": this appears once after the list of items | ||
| [poweredby] | By default, this displays the message "Newsfeed formatting by CaRP" with a link to our site. If you remove this link, we would very much appreciate your posting a similar link somewhere on your website. | ||
Additional Display Settings:
The following options also affect the display format and behavior of links: