CaRP Evolution Documentation
CaRP Evolution Documentation
twitter youtube linkedin google-plus
CaRP Evolution Box
Web This Site

CaRP: Caching RSS Parser - Documentation


CaRP Interactive FAQ
Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes | Full Index
Etc.: Display Formatting | Example Code | Affiliates

MyCarpConfReset([theme]);

Reset CaRP's configuration options, using CaRP's defaults and any settings you have overridden in carpconf.php. Optionally select a theme.
EvolutionLEKoiSE
AllAll>=3.3>=3.3
Description:
Resets all of the values in $carpconf (which control CaRP's behavior and the appearance of newsfeeds) to the default values specified in carp.php. Also, set any configuration values you have set in carpconf.php. When you are displaying multiple newsfeeds on one page with significantly different appearance, this is a convenient way to reset the configuration.

Arguments:
  1. theme: By default, no theme is selected. If you specify a theme name here, it is loaded too. Note that this is the theme name as specified in the "case" statements in carpconf.php, not the name of the theme file. In CaRP versions prior to 3.5.11 (when theme suppport was added), this argument had a different name, but it's function was essentially the same.

Return value: none

Usage Example:
<?php
require_once '/home/geckotribe/carp/carp.php';
CarpConf('cborder','link,desc');
CarpConf('iorder','link,date,desc');
CarpConf('bitems','<ul>');
CarpConf('aitems','</ul>');
CarpConf('bi','<li>');
CarpConf('ai','</li>');
CarpCacheShow('http://www.geckotribe.com/press/rss/pr.rss');
MyCarpConfReset('ul');
CarpConf('clinkstyle','font-size:110%;');
CarpCacheShow('http://rss.geckotribe.com/rss/1.rss');
?>