Ultimate Plugins Smart Update Pinger
Click here for installation instructions
Click here for usage instructions
Click here for updated versions
Click here for comments and suggestions
URIs to Ping
The following services will automatically be pinged/notified when you publish normal or future timestamped posts. Not when you edit previously published posts, as WordPress does by default.
This plugin also fixes an issue with the default extended ping programming in Wordpress and pre-2.1 versions of Smart Update Pinger (it now includes the url of the new post).
NB: this list is synchronized with the original update services list.
Ping log
These are the last 100 actions performed by the plugin. In reverse chronological order for easier reading (latest ping first).
';
SUP_get_last_log_entries(500);
echo '
';
}
# telling WordPress to ping if the post is new, but not if it's just been edited
function SUP_ping_if_new($id){
global $wpdb, $post_title;
$SUP_output_log="\t─────\n";
$SUP_ping_result=''; $forcedpings = false;
if(get_option('SUP_ping') == 1 && trim(get_option('ping_sites')) != ""){
# fetches data directly from database; the function "get_post" is cached, and using it here will get the post as is was before the last save
$row = mysql_fetch_array(mysql_query(
// "SELECT post_date,post_modified,post_title,guid FROM $wpdb->posts WHERE id=$id"));
"SELECT post_date,post_modified,post_title FROM $wpdb->posts WHERE id=$id"));
# if time when created equals time when modified it is a new post, otherwise the author has edited/modified it
if(!$row["post_title"]){
$SUP_output_log=strftime("%D %T")."\t