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 '

Congratulations!

'; }else{ echo '

Programmer's hell - Status page of the Parteibuch Aggregator plugin

'; } echo ''; if($pbastartconfig == 1 && $pba_found_items > 0){ echo ''; } elseif($pbastartconfig == 1) { echo ''; echo ''; }else{ echo ''; echo ''; echo ''; echo ''; echo ''; foreach($pba_all_outputs as $pba_output_index => $pba_all_output){ $pageshookedin[$pba_all_output->page2hookin]=$pba_all_output->identifier; } foreach($pba_wp_pages as $page_index => $pba_wp_page){ if(isset($pageshookedin[$pba_wp_page->ID])){ echo ''; } //end if isset($pageshookedin[$pba_wp_page->ID]) } // end foreach($pba_wp_pages as $page_index => $pba_wp_page) echo ''; echo ''; foreach($bdprss_db->serverstatus as $stproperty => $stvalue){ echo ''; } echo ''; echo ''; foreach($bdprss_db->get_all_options() as $optionkey => $optionvalue){ foreach($optionvalue as $optionkey => $optionvaltmp){ if($optionkey != 'name') $optionvaltmp2[$optionkey] = $optionvaltmp; } echo ''; } // end foreach($bdprss_db->get_all_options() as $optionkey => $optionvalue) echo ''; echo ''; $pba_tables=$bdprss_db->list_all_tables(); foreach($pba_tables as $pba_table => $dummy){ $tablestatus=$bdprss_db->get_mysql_tablestatus($pba_table); echo ''; }//end foreach pba tables echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; }//end no pbstart 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 '
'; //echo 'pbastartconfig is: ' . $pbastartconfig; ?>