'OK. FeedWordPress had no problems retrieving the content at this URL but the content does not seem to be a feed, and does not seem to include links to any feeds.', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 307 => 'Temporary Redirect', 400 => 'Bad Request', 401 => 'Unauthorized. This URL probably needs a username and password for you to access it.', 402 => 'Payment Required', 403 => 'Forbidden. The URL is not made available for the machine that FeedWordPress is running on.', 404 => 'Not Found. There is nothing at this URL. Have you checked the address for typos?', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Timeout', 409 => 'Conflict', 410 => 'Gone. This URL is no longer available on this server and no forwarding address is known.', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request URI Too Long', 415 => 'Unsupported Media Type', 416 => 'Requested Range Not Satisfiable', 417 => 'Expectation Failed', 500 => 'Internal Server Error. Something unexpected went wrong with the configuration of the server that hosts this URL. You might try again later to see if this issue has been resolved.', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable. The server is currently unable to handle the request due to a temporary overloading or maintenance of the server that hosts this URL. This is probably a temporary condition and you should try again later to see if the issue has been resolved.', 504 => 'Gateway Timeout', 505 => 'HTTP Version Not Supported', ); ################################################################################ ## ADMIN MENU ADD-ONS: implement Dashboard management pages #################### ################################################################################ if (fwp_test_wp_version(0, FWP_SCHEMA_25)) : define('FWP_UPDATE_CHECKED', 'Update Checked Links'); define('FWP_UNSUB_CHECKED', 'Unsubscribe from Checked Links'); define('FWP_SYNDICATE_NEW', 'Syndicate »'); else : define('FWP_UPDATE_CHECKED', 'Update Checked'); define('FWP_UNSUB_CHECKED', 'Unsubscribe'); define('FWP_SYNDICATE_NEW', 'Syndicate »'); endif; function feedwordpress_syndication_toggles () { ?> get_results(" SELECT * FROM $wpdb->links WHERE link_id IN (".implode(",",$_POST['link_ids']).") "); if (is_array($targets)) : foreach ($targets as $target) : $update_set[] = $target->link_rss; endforeach; else : // This should never happen FeedWordPress::critical_bug('fwp_syndication_manage_page::targets', $targets, __LINE__); endif; elseif (isset($_POST['update_uri'])) : $update_set[] = $_POST['update_uri']; endif; shuffle($update_set); // randomize order for load balancing purposes... if ($fwp_update_invoke != 'get' and count($update_set) > 0) : // Only do things with side-effects for HTTP POST or command line $feedwordpress =& new FeedWordPress; add_action('feedwordpress_check_feed', 'update_feeds_mention'); add_action('feedwordpress_check_feed_complete', 'update_feeds_finish', 10, 3); $crash_dt = (int) get_option('feedwordpress_update_time_limit'); if ($crash_dt > 0) : $crash_ts = time() + $crash_dt; else : $crash_ts = NULL; endif; if (fwp_test_wp_version(FWP_SCHEMA_25)) : echo "
\n"; else : echo "
\n"; endif; echo "\n"; if (!is_null($tdelta)) : $mesg = array(); if (isset($delta['new'])) : $mesg[] = ' '.$tdelta['new'].' new posts were syndicated'; endif; if (isset($delta['updated'])) : $mesg[] = ' '.$tdelta['updated'].' existing posts were updated'; endif; echo "

Update complete.".implode(' and', $mesg)."

"; echo "\n"; flush(); endif; echo "
\n"; elseif (fwp_test_wp_version(FWP_SCHEMA_25)) : ?>

Check currently scheduled feeds for new and updated posts.

Syndicated Sites

\n

\n"; wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); echo "

\n\n"; if ($links) : add_meta_box( /*id=*/ 'feedwordpress_update_box', /*title=*/ __('Update feeds now'), /*callback=*/ 'fwp_syndication_manage_page_update_box', /*page=*/ 'feedwordpresssyndication', /*context =*/ 'feedwordpresssyndication' ); endif; add_meta_box( /*id=*/ 'feedwordpress_feeds_box', /*title=*/ __('Syndicated sources'), /*callback=*/ 'fwp_syndication_manage_page_links_box', /*page=*/ 'feedwordpresssyndication', /*context =*/ 'feedwordpresssyndication' ); ?>

Add a new syndicated site:


Check currently scheduled feeds for new and updated posts.

Note: Automatic updates are currently turned off. New posts from your feeds will not be syndicated until you manually check for them here. You can turn on automatic updates under Syndication Options.


Syndicated Sites

get_row("SELECT * FROM $wpdb->links WHERE link_id='".$wpdb->escape($link_id)."'"); if (is_object($link)): if (is_null($lookup)) $lookup = $link->link_url; $name = wp_specialchars($link->link_name, 'both'); else: die (__("Cheatin' uh ?")); endif; else: $name = "".htmlspecialchars($lookup).""; $link_id = 0; endif; ?>

Feed Finder:

find(); if (count($feeds) > 0): foreach ($feeds as $key => $f): $rss = fetch_rss($f); if ($rss): $feed_title = isset($rss->channel['title'])?$rss->channel['title']:$rss->channel['link']; $feed_link = isset($rss->channel['link'])?$rss->channel['link']:''; else : // Give us some sucky defaults $uri_bits = parse_url($lookup); $uri_bits['host'] = preg_replace('/^www\./i', '', $uri_bits['host']); $display_uri = (isset($uri_bits['user'])?$uri_bits['user'].'@':'') .(isset($uri_bits['host'])?$uri_bits['host']:'') .(isset($uri_bits['port'])?':'.$uri_bits['port']:'') .(isset($uri_bits['path'])?$uri_bits['path']:'') .(isset($uri_bits['query'])?'?'.$uri_bits['query']:''); if (strlen($display_uri) > 32) : $display_uri = substr($display_uri, 0, 32).'…'; endif; $feed_title = $display_uri; $feed_link = $lookup; endif; ?>
feed_type; ?> feed_version; ?> feed
items) > 0): ?> items[0], $link); ?>

Sample Item

post['post_content']; ?>

No Items

FeedWordPress found no posts on this feed.

Feed Information

  • Website: Unknown':$feed_title; ?>
  • Feed URI: (validate)
  • Encoding: encoding)?wp_specialchars($rss->encoding, 'both'):"Unknown"; ?>
  • Description: channel['description'])?wp_specialchars($rss->channel['description'], 'both'):"Unknown"; ?>
".__('Error').": ".__("FeedWordPress couldn't find any feeds at").' '.htmlspecialchars($lookup).''; print ". ".__('Try another URL').".

"; // Diagnostics $httpObject = _wp_http_get_object(); $transports = $httpObject->_getTransport(); print "
\n"; print "

".__('Diagnostic information')."

\n"; if (!is_null($f->error())) : print "

".__('HTTP request failure')."

\n"; print "

".$f->error()."

\n"; else : print "

".__('HTTP request completed')."

\n"; print "

Status ".$f->status().": ".$FeedWordPressHTTPStatusMessages[$f->status()]."

\n"; endif; print "

".__('HTTP Transports available').":

\n"; print "
    \n"; print "
  1. ".implode("
  2. \n
  3. ", array_map('get_class', $transports))."
  4. \n"; print "
\n"; print "
\n"; endif; ?>

Use another feed

has been added as a contributing site, using the feed at <>. | Configure settings.

There was a problem adding the feed. [SQL: ]

query(" UPDATE $wpdb->links SET link_rss = '".$wpdb->escape($_REQUEST['feed'])."' WHERE link_id = '".$wpdb->escape($_REQUEST['link_id'])."' "); if ($result): $result = $wpdb->get_row(" SELECT link_name, link_url FROM $wpdb->links WHERE link_id = '".$wpdb->escape($_REQUEST['link_id'])."' "); ?>

Feed for link_name, 'both'); ?> updated to <>.

Nothing was changed.

found()) : if (isset($GLOBALS['fwp_post']['save'])) : $alter = array (); // custom feed settings first foreach ($GLOBALS['fwp_post']['notes'] as $mn) : $mn['key0'] = trim($mn['key0']); $mn['key1'] = trim($mn['key1']); if (preg_match("\007^((" .implode(')|(',$special_settings) ."))$\007i", $mn['key1'])) : $mn['key1'] = 'user/'.$mn['key1']; endif; if (strlen($mn['key0']) > 0) : unset($link->settings[$mn['key0']]); // out with the old endif; if (($mn['action']=='update') and (strlen($mn['key1']) > 0)) : $link->settings[$mn['key1']] = $mn['value']; // in with the new endif; endforeach; // now stuff through the web form // hardcoded feed info if (isset($GLOBALS['fwp_post']['hardcode_name'])) : $link->settings['hardcode name'] = $GLOBALS['fwp_post']['hardcode_name']; if (FeedWordPress::affirmative($link->settings, 'hardcode name')) : $alter[] = "link_name = '".$wpdb->escape($GLOBALS['fwp_post']['name'])."'"; endif; endif; if (isset($GLOBALS['fwp_post']['hardcode_description'])) : $link->settings['hardcode description'] = $GLOBALS['fwp_post']['hardcode_description']; if (FeedWordPress::affirmative($link->settings, 'hardcode description')) : $alter[] = "link_description = '".$wpdb->escape($GLOBALS['fwp_post']['description'])."'"; endif; endif; if (isset($GLOBALS['fwp_post']['hardcode_url'])) : $link->settings['hardcode url'] = $GLOBALS['fwp_post']['hardcode_url']; if (FeedWordPress::affirmative($link->settings, 'hardcode url')) : $alter[] = "link_url = '".$wpdb->escape($GLOBALS['fwp_post']['linkurl'])."'"; endif; endif; // Update scheduling if (isset($GLOBALS['fwp_post']['update_schedule'])) : $link->settings['update/hold'] = $GLOBALS['fwp_post']['update_schedule']; endif; $alter[] = "link_notes = '".$wpdb->escape($link->settings_to_notes())."'"; $alter_set = implode(", ", $alter); // issue update query $result = $wpdb->query(" UPDATE $wpdb->links SET $alter_set WHERE link_id='$link_id' "); $updated_link = true; // reload link information from DB if (function_exists('clean_bookmark_cache')) : clean_bookmark_cache($link_id); endif; $link =& new SyndicatedLink($link_id); else : $updated_link = false; endif; $db_link = $link->link; $link_url = wp_specialchars($db_link->link_url, 1); $link_name = wp_specialchars($db_link->link_name, 1); $link_description = wp_specialchars($db_link->link_description, 'both'); $link_rss_uri = wp_specialchars($db_link->link_rss, 'both'); else : die( __('Link not found.') ); endif; ?>

Syndicated feed settings updated.

found()) : ?>: link->link_name, 1); ?>

(validate)
: settings['update/last'])) : echo fwp_time_elapsed($link->settings['update/last'])." "; else : echo " none yet"; endif; ?>
Next update: settings['update/hold']) ? $link->settings['update/hold'] : 'scheduled'); ?>

These custom settings are special fields for the feed you are syndicating, to be retrieved in templates using the get_feed_meta() function. They do not create custom fields on syndicated posts. If you want to create custom fields that are applied to each individual post from this feed, set up the settings in Syndicated Posts.

settings as $key => $value) : if (!preg_match("\007^((".implode(')|(', $special_settings)."))$\007i", $key)) : ?>
Key Value Action
add new setting...
$what) : $do_it[$what][] = $link_id; endforeach; $alter = array(); if (count($do_it['hide']) > 0) : $hidem = "(".implode(', ', $do_it['hide']).")"; $alter[] = " UPDATE $wpdb->links SET link_visible = 'N' WHERE link_id IN {$hidem} "; endif; if (count($do_it['nuke']) > 0) : $nukem = "(".implode(', ', $do_it['nuke']).")"; // Make a list of the items syndicated from this feed... $post_ids = $wpdb->get_col(" SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'syndication_feed_id' AND meta_value IN {$nukem} "); // ... and kill them all if (count($post_ids) > 0) : foreach ($post_ids as $post_id) : wp_delete_post($post_id); endforeach; endif; $alter[] = " DELETE FROM $wpdb->links WHERE link_id IN {$nukem} "; endif; if (count($do_it['delete']) > 0) : $deletem = "(".implode(', ', $do_it['delete']).")"; // Make the items syndicated from this feed appear to be locally-authored $alter[] = " DELETE FROM $wpdb->postmeta WHERE meta_key = 'syndication_feed_id' AND meta_value IN {$deletem} "; // ... and delete the links themselves. $alter[] = " DELETE FROM $wpdb->links WHERE link_id IN {$deletem} "; endif; $errs = array(); $success = array (); foreach ($alter as $sql) : $result = $wpdb->query($sql); if (!$result): $errs[] = mysql_error(); endif; endforeach; if (count($alter) > 0) : echo "
\n"; if (count($errs) > 0) : echo "There were some problems processing your "; echo "unsubscribe request. [SQL: ".implode('; ', $errs)."]"; else : echo "Your unsubscribe request(s) have been processed."; endif; echo "
\n"; endif; return true; // Continue on to Syndicated Sites listing else : $targets = $wpdb->get_results(" SELECT * FROM $wpdb->links WHERE link_id IN (".implode(",",$link_ids).") "); ?>

Unsubscribe from Syndicated Links:

link_url, 1); $link_name = wp_specialchars($link->link_name, 1); $link_description = wp_specialchars($link->link_description, 'both'); $link_rss = wp_specialchars($link->link_rss, 'both'); ?>
Subscription :