get_wp_published_pages();
$pba_all_outputs=$bdprss_db->get_all_pbaoutputs();
if(isset($pba_all_outputs[0]->page2hookin)) {
$pba_page_hooked_in['id']=$pba_all_outputs[0]->page2hookin;
//echo '
We hooked into page: ' . $pba_page_hooked_in['id'];
if($pba_page_hooked_in['id'] > 0){
//let's get some more information about that page
foreach($pba_wp_pages as $page_index => $pba_wp_page){
//print_r($pba_wp_page);
if($pba_wp_page->ID == $pba_page_hooked_in['id']){
$pba_page_hooked_in['title']=preg_replace(array('/"/',"/'/"), array('"','''), $pba_wp_page->post_title);
//echo '
Title of that page is: ' . $pba_page_hooked_in['title'];
$pba_page_hooked_in['guid']=$pba_wp_page->guid;
//echo '
guid of that page is: ' . $pba_page_hooked_in['guid'];
}
}
if(function_exists('get_page_link')) {
$pba_page_href = get_page_link($pba_page_hooked_in['id']);
//echo '
href to that page is: ' . $pba_page_href;
}elseif(isset($pba_page_hooked_in['guid'])){
$pba_page_href = $pba_page_hooked_in['guid'];
}
}// end if isset($pba_all_outputs[0]->page2hookin)
//check if we get output
$pba_whileloopcounter=1;
while ($pba_whileloopcounter <= 3) {
$pba_whileloopcounter++;
$pba_config['outputid']=$pba_all_outputs[0]->identifier;
$pba_config["maxitems"]=1;
if($pbastartconfig==0) $pba_config['listid']=0;
$pba_result=@PBA::outputwrapper($pba_config);
$pba_found_items=$pba_result['founditems'];
if($pba_found_items > 1){
//echo "You have already " . $pba_found_items . " items in your Aggregator.";
break;
}else{
echo '
Please be patient for a minute. The Parteibuch Aggregator tries to poll some feeds for you.
'; flush(); $bdprss_db->updateAll(); } }// end while loop } // end if isset($pba_all_outputs[0]->page2hookin) if($pbastartconfig == 1 && $pba_found_items > 0){ $bdprss_db->process_new(); echo 'You successfully managed to install and configure the Parteibuch Aggregator plugin.'; echo 'Your Parteibuch Aggregator aggregated already ' . $pba_found_items . ' items.'; echo ' So what's next?'; if(isset($pba_page_href)){ echo ' Maybe you want to see your RSS page "'.$pba_page_hooked_in['title'].'"? So check it out here. Does it fit your likings? Fine. Or do you want to change the layout of the output? If so, go into additional parameters of the output and modify it.'; } if(isset($pba_all_outputs[0])){ echo ' Maybe you want to show RSS headlines in the sidebar of your blog? So just take the RSS Aggregator widget.'; echo " Maybe you don't use widgets and you want to add the Parteibuch Aggregator sidebar code manually to your sidebar? So here is the code to add to your sidebar: \$pba_config['outputid']=1; \$pba_config['show_sidebarwidget'] = 'Y'; \$pba_return=@PBA::outputwrapper(\$pba_config); echo \$pba_return['result'];"; } echo ' Maybe you want to add your favorite feeds to your aggregator or find out about the options of your aggregator? So just go to your Parteibuch Aggregator management page.'; //print_r($pba_all_outputs); //print_r($pba_wp_pages); echo ' |
|
Oops, what's going on here?'; echo 'You successfully installed the Parteibuch Aggregator, but we can't find any aggregated items. It may happen that the feed we tried to poll is just not available or not readable at the moment. We recommend to add your favorite feeds or just wait for some hours until the preinstalled feed become readable again.'; echo ' |
|
Some basic information'; echo ' |
|
Available items: | '.$pba_found_items .' |
Information on hooked pages'; echo ' |
|
Page '.$pba_wp_page->ID.': | hooked by Output ID '.$pageshookedin[$pba_wp_page->ID] .' |
Information about serverstatus variable'; echo ' |
|
"'.$stproperty.'": | '.PBALIB::get_r($stvalue) .' |
Information from options table'; echo ' |
|
Option "'.$optionvalue->name.'": | '.PBALIB::get_r($optionvaltmp2) .' |
Information about the Parteibuch Aggregator database tables'; echo ' |
|
Table "'.$pba_table.'": | '.PBALIB::get_r($tablestatus) .' |
Information on wordpress rewrite rules option setting'; echo ' |
|
';
echo "This blog's wordpress option rewrite_rules is set to: " . str_replace("\n",' ',PBALIB::get_r(get_option('rewrite_rules'))); echo ' |
|
I have seen enough about this hell, let me out here going back to the Parteibuch Aggregator admin page'; echo ' |