Grouper Documentation
Grouper Documentation
twitter youtube linkedin google-plus
Grouper: RSS manager, XML converter, website scraper
Web This Site

Grouper - Documentation


Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes
Etc.: Configure | Affiliates

Function Reference

GrouperConfReset();

Resets all of the values in $grouperconf (which control Grouper's behavior) to the default values specified in grouper.php. When you are displaying multiple newsfeeds on one page with significantly different appearance, this is a convenient way to reset the configuration.



Example: (Use CaRP with Grouper to display two feeds on the same page--first an Atom feed, and then a Google News search--refresh the Atom feed every 15 minutes, but the news search only every hour (the default))

<html>
<head>
<title>This is the page title</title>
</head>
<body>
<?php
require_once '/YOUR/PATH/TO/grouper/grouper.php';
GrouperConf('cacheinterval',15);
GrouperLoadPlugin('xml.php');
GrouperLoadPlugin('xml-atom-1.0.php');
GrouperConvert('http://example.com/feed.atom','example-atom.rss',0);
require_once '/YOUR/PATH/TO/carp/carp.php';
CarpShow('grouper:example-atom.rss');
GrouperConfReset();
GrouperSearch('cuisine','google-cuisine',0);
CarpShow('grouper:google-cuisine');
?>
</body>
</html>