Managing the Parteibuch Aggregator plugin

The Parteibuch Aggregator has some stuff to configure:


1: Feeds

Add a new feed

RSS Address:
(multiple feeds can be entered as a comma separated list)
get_all_sites(); if($result) { ?>

Current feeds

now; echo "". "". "". "\n"; $benchmark = $now - (60 * 60 * 24 * 7); // highlight blogs with updates older than 7 days if($result) { $class=''; foreach($result as $r) { $ref = $r->{$bdprss_db->cidentifier}; $url = $r->{$bdprss_db->cfeedurl}; $site = $r->{$bdprss_db->csitename}; $siteurl = $r->{$bdprss_db->csiteurl}; $description = $r->{$bdprss_db->cdescription}; $gmt = $r->{$bdprss_db->cgmtadjust}; $polled = PBALIB::gettheage( $r->{$bdprss_db->clastpolltime} ); $updated = PBALIB::gettheage( $r->{$bdprss_db->cupdatetime} ); $scheduled = PBALIB::gettheage( $r->{$bdprss_db->cnextpolltime} ); $pollingfreq = $r->{$bdprss_db->cpollingfreqmins}; if($scheduled == 'never') $scheduled = 'now'; $sno = $r->{$bdprss_db->csitenameoverride} == 'Y'; $siteUpdate = ''; $name = $url; if($site) { $italics = ''; $unitalics = ''; if($sno) { $italics = '*'; $unitalics = ''; $overriden = TRUE; } $name = "$italics"."$site$unitalics"; $name .= " [feed]"; $ticks = $bdprss_db->get_most_recent_item_time($ref); $bold = ''; $unbold =''; if($ticks < $benchmark) { $bold = ''; $unbold =''; } $siteUpdate = " $bold".PBALIB::gettheage($ticks)."$unbold"; } $bold = ''; $unbold = ''; if( $r->{$bdprss_db->clastpolltime} != $r->{$bdprss_db->cupdatetime} ) { $bold = ''; $unbold = ''; } $sbold = ''; $sunbold = ''; if($r->{$bdprss_db->cnextpolltime} < $now) { $sbold = ''; $sunbold = ''; } $class = ('alternate' == $class) ? '' : 'alternate'; $errorCount = $bdprss_db->countErrors($url); if($errorCount) $name .= " [E $errorCount]"; echo "\n". "\t\n". "\t\n". "\t\n". "\t\n" . "\t\n" . "\t\n". "\t\n". "\t\n". "\t\n". "\t\n". "\n"; } } } ?>
Site and feed statusSite updatedGMT adjPolling freqLast pollCache updatedNext pollActions
$name$siteUpdate"; if($gmt != 0.0) echo $gmt; echo ""; if( $pollingfreq ) echo "$pollingfreq minutes"; echo "$polled$bold $updated $unbold$sbold $scheduled $sunboldEditPollDelete
Note: Sites in italics have had their feed details overridden. ". "To restore feed details: first edit the site, second un-tick the box to switch off the feed override, ". "then hit the edit button, and finally poll the feed.

\n"; // improved monitoring of feed errors if($bdprss_db->countErrors()) { echo "
\n\n

Recent feed errrors

\n\n"; echo "\n"; echo "\n"; echo "\n"; echo "
". "List all feed errors". "Delete the feed error table
"; } // lets put the list of URLs in the OUTPUT - they can be useful! if($result) { echo "
\n\n

A list of feeds

\n\n"; echo "

This list can be copied and saved to a file. If you delete everything, ". "you can paste the list into the add feeds box.

\n

"; echo '

\n"; } ?>

Manage feed related values

Standard feed polling frequency: minutes
This frequency is used for all sites unless a non-standard frequency is set above.
Keep feed items for: months (zero = forever)

Poll some RSS feeds

\n"; echo "". "Be patient, this can take some time."; ?>


2: List filters

">Create a new list filter

get_all_lists(); $pbaoutputs = $bdprss_db->get_all_pbaoutputs(); if($result) { if($pbaoutputs){ foreach($pbaoutputs as $r) { if(!isset($isdefaultlist[$r->{$bdprss_db->pbaodefaultlist}])) $isdefaultlist[$r->{$bdprss_db->pbaodefaultlist}] =""; $isdefaultlist[$r->{$bdprss_db->pbaodefaultlist}] .= $r->{$bdprss_db->pbaoidentifier} . " "; } } ?>

Current lists

\n"; if($result) { $class = ''; foreach($result as $r) { $id = $r->{$bdprss_db->lidentifier}; $name = htmlspecialchars($r->{$bdprss_db->lname}); $class = ('alternate' == $class) ? '' : 'alternate'; echo "\n". "". ""; } } } ?>
List IDNameActions
$id$nameEdit". "Copy to new"; if(!isset($isdefaultlist[$id])) { echo "Delete"; }else{ echo "Used by $isdefaultlist[$id]"; $displaylistnote=true; } echo "
Note: List filters can only be deleted when they are not used as default list filter by any output format

\n"; ?>


3: Output streams

">Create a new output format

=1) { ?>

Current output streams

\n"; if($pbaoutputs) { $class = ''; foreach($pbaoutputs as $r) { $id = $r->{$bdprss_db->pbaoidentifier}; $name = htmlspecialchars($r->{$bdprss_db->pbaoname}); $class = ('alternate' == $class) ? '' : 'alternate'; echo "\n". "". "". "". "". ""; } } } ?>
Output format IDNameActions
$id$nameEditCopy to newDelete


4. Manage some global options of the Parteibuch Aggregator

Manage global options"; ?>       Do you want to have a look into programmer's hell? Go and get here some raw status info."; ?>


Notes: