. */ # Known/outstanding issues: # [COSMETIC] If the ping services list is empty, the log file will report "not pinging services - disabled by administrator" even if pinging is enabled. # adds an options page to the options menu function SUP_add_options_page() { if(function_exists("add_options_page")) add_options_page("UP Smart Update Pinger", "UP Smart Update Pinger", 5, basename(__FILE__), "SUP_show_options_page"); } # shows the options page function SUP_show_options_page() { global $logfile; $ping = get_option("SUP_ping"); $pinglog = get_option("SUP_pinglog"); $uris = get_option("ping_sites"); $forcedpings = false; $SUP_output_log=''; $pingservicesnow = "Ping Services Now!"; $deletelogfile = "Delete Log File"; if(isset($_POST["ping"]) && $_POST["ping"] == $pingservicesnow){ $forcedpings = true; SUP_log(SUP_ping_services($forcedpings).strftime("%D %T")."\tForced pinging services (Homepage)\n\t─────\n"); }elseif(isset($_POST["submit"])){ $uris = $_POST["uris"]; $ping = 0; if($_POST["ping"] == 1) $ping = 1; $pinglog = 0; if($_POST["pinglog"] == 1) $pinglog = 1; update_option("SUP_ping", $ping); update_option("SUP_pinglog", $pinglog); update_option("ping_sites", $uris); echo '

Options saved.

'; }elseif(isset($_POST["delete"]) && $_POST["delete"] == $deletelogfile){ $fh = @fopen($logfile, "w"); if(false === @fwrite($fh, strftime("%D %T")."\tLog file deleted\n\t─────\n")){ update_option("SUP_error", 1); }else{ update_option("SUP_error", 0); } @fclose($fh); } $checked1 = ''; if($ping == 1) $checked1 = 'checked="checked"'; $checked2 = ''; if($pinglog == 1) $checked2 = 'checked="checked"'; echo '

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.

Separate multiple service URIs with line breaks:

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 and 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")); # 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")."\tNOT Pinging services (ERROR: YOU HAVE FORGOTTEN TO ENTER A POST TITLE) ...\n".$SUP_output_log; }else{ if($row["post_date"] == $row["post_modified"]){ $SUP_output_log=strftime("%D %T")."\tPinging services (New normal post: “".$row["post_title"]."”) ...\n".$SUP_output_log; $SUP_output_log=SUP_ping_services($forcedpings,$row["guid"]).$SUP_output_log; # Try commenting the line above, and uncommenting this line below if pinging seems to be out of order. Please notify the author if it helps! # generic_ping(); }else{ // Post has been edited or it's a future post // If we have a post title it means that we are in the normal WP loop and therefore it was an edit (not a future post) if($post_title){ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (Existing post was edited: “".$row["post_title"]."”) ...\n".$SUP_output_log; }else{ $SUP_output_log=strftime("%D %T")."\tPinging services (New timestamped post: “".$row["post_title"]."”) ...\n".$SUP_output_log; $SUP_output_log=SUP_ping_services($forcedpings,$row["guid"]).$SUP_output_log; # Try commenting the line above, and uncommenting this line below if pinging seems to be out of order. Please notify the author if it helps! # generic_ping(); } } } }else{ $SUP_output_log=strftime("%D %T")."\tNOT Pinging services (WARNING: DISABLED BY ADMINISTRATOR)\n".$SUP_output_log; } SUP_log($SUP_output_log); } # More or less a copy of WP's "generic_ping" from functions.php, # but uses another function to send the actual XML-RPC messages. function SUP_ping_services($forcedpings,$SUP_guid = '') { $SUP_output_log=''; #$services = get_settings('ping_sites'); #UP - 17.07.07 - get_option is newer/better then get_settings $services = get_option('ping_sites'); $services = preg_replace("|(\s)+|", '$1', $services); // Kill dupe lines $services = trim($services); if ( '' != $services ) { $services = explode("\n", $services); foreach ($services as $service) $SUP_output_log=SUP_send_xmlrpc($forcedpings,$SUP_guid,$service).$SUP_output_log; } return $SUP_output_log; } # A slightly modified version of the WordPress built-in ping functionality ("weblog_ping" in functions.php). # Original version: #function weblog_ping($server = '', $path = '') { #global $wp_version; #include_once(ABSPATH . WPINC . '/class-IXR.php'); #// using a timeout of 3 seconds should be enough to cover slow servers #$client = new IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); #$client->timeout = 3; #$client->useragent .= ' -- WordPress/'.$wp_version; #// when set to true, this outputs debug messages by itself #$client->debug = false; #$home = trailingslashit( get_option('home') ); #if ( !$client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, get_bloginfo('rss2_url') ) ) // then try a normal ping #$client->query('weblogUpdates.ping', get_option('blogname'), $home); #} # This one uses correct extendedPing format (WP does not), and logs response from service. function SUP_send_xmlrpc($forcedpings,$SUP_guid = '',$server = '', $path = '') { global $wp_version; $SUP_output_log=''; include_once (ABSPATH . WPINC . '/class-IXR.php'); // using a timeout of 5 seconds should be enough to cover slow servers (changed from 3 to 5) $client = new IXR_Client($server, ((!strlen(trim($path)) || ('/' == $path)) ? false : $path)); $client->timeout = 5; $client->useragent .= ' -- WordPress/'.$wp_version; // when set to true, this outputs debug messages by itself $client->debug = false; $home = trailingslashit( get_option('home') ); # The extendedPing format should be "blog name", "blog url", "check url" (the new URL), and "feed url". # Related Website(s) # http://www.weblogs.com/api.html # An example: # Someblog - Title # http://spaces.msn.com/someblog - Home URL # http://spaces.msn.com/someblog/PersonalSpace.aspx?something - Check/New URL # http://spaces.msn.com/someblog/feed.rss - Feed # Changed the following line therefore: # if($client->query('weblogUpdates.extendedPing', get_settings('blogname'), $home, get_bloginfo('rss2_url'), get_bloginfo('rss2_url'))) if ($forcedpings){ # If this is a forced ping it's better to use a regular ping for the homepage without an update URL (safer) if($client->query('weblogUpdates.ping', get_option('blogname'), $home)){ $SUP_output_log=strftime("%D %T")."\t► [Regular Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; } }else{ $SUP_output_log=strftime("%D %T")."\t► ".$server." could not be pinged. Error message: “".$client->error->message."”\n".$SUP_output_log; } }else{ if($client->query('weblogUpdates.extendedPing', get_option('blogname'), $home, $SUP_guid, get_bloginfo('rss2_url'))){ $SUP_output_log=strftime("%D %T")."\t► [Extended Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Updated : '".$SUP_guid."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► RSS URL : '".get_bloginfo('rss2_url')."'\n".$SUP_output_log; } }else{ # pinging was unsuccessful, trying regular ping format if($client->query('weblogUpdates.ping', get_option('blogname'), $home)){ $SUP_output_log=strftime("%D %T")."\t► [Regular Ping] ".$server." was successfully pinged\n".$SUP_output_log; if (get_option('SUP_pinglog') == 1){ $SUP_output_log=strftime("%D %T")."\t►► Blogname: '".get_option('blogname')."'\n".$SUP_output_log; $SUP_output_log=strftime("%D %T")."\t►► Homepage: '".$home."'\n".$SUP_output_log; } }else{ $SUP_output_log=strftime("%D %T")."\t► ".$server." could not be pinged. Error message: “".$client->error->message."”\n".$SUP_output_log; } } } return $SUP_output_log; } $post_title = ""; # Receives the title of the post from a filter below function SUP_post_title($title){ global $post_title; $post_title = $title; return $title; } # Log $logfile = ABSPATH . 'wp-content/plugins/ultimate-plugins-smart-update-pinger/ultimate-plugins-smart-update-pinger.log'; function SUP_log($SUP_log_output) { global $logfile; $logerror = 0; $fh = @fopen($logfile, "a"); if(false === @fwrite($fh, $SUP_log_output)){ update_option("SUP_error", 1); }else{ update_option("SUP_error", 0); } @fclose($fh); } function SUP_get_last_log_entries($num) { global $logfile; $lines = @file($logfile); if(get_option("SUP_error") == 1){ $fh = @fopen($logfile, "a"); if(false === @fwrite($fh, "")){ echo "Error writing log file (".$logfile."). Most likely your logfile (".$logfile.") is write-protected and no log data can be saved (change the rights of this file to 777), or alternatively this could mean that you have manually removed the log file, or that you have changed the directory or file name of the plugin (they both should be 'ultimate-plugins-smart-update-pinger')"; }else{ // Original: $lines = array_slice($lines, count($lines) - $num); // Modified to show in reverse order (easier for reading) $lines = array_reverse(array_slice($lines, count($lines) - $num)); $msg = ""; foreach($lines as $line){ $msg.=trim($line)."
"; } echo $msg; } @fclose($fh); }else{ if($lines === false){ echo "Error reading log file (".$logfile."). Most likely you have manually removed the log file, or alternatively this could mean that the logfile (".$logfile.") is read-protected (change the rights of this file to 777), or that you have changed the directory or file name of the plugin (they both should be 'ultimate-plugins-smart-update-pinger')"; }else{ // Original: $lines = array_slice($lines, count($lines) - $num); // Modified to show in reverse order (easier for reading) $lines = array_reverse(array_slice($lines, count($lines) - $num)); $msg = ""; foreach($lines as $line){ $msg.=trim($line)."
"; } echo $msg; } } } # ----- # adds a filter to receive the title of the post before publishing add_filter("title_save_pre", "SUP_post_title"); # adds some hooks # shows the options in the administration panel add_action("admin_menu", "SUP_add_options_page"); # calls SUP_ping whenever a post is published add_action("publish_post", "SUP_ping_if_new"); # calls SUP_ping_draft when changing the status from private/draft to published # add_action("private_to_published', 'SUP_ping_draft'); # removes the "WordPress official" pinging hook remove_action("publish_post", "generic_ping"); # activates pinging if setting doesn't exist in database yet # (before the user has changed the settings the first time) if(get_option("SUP_ping") === false) { update_option("SUP_ping", 1); } if(get_option("SUP_pinglog") === false) { update_option("SUP_pinglog", 1); } if(get_option("SUP_error") === false) { update_option("SUP_error", 0); } ?> Humor | The Diary Of An Infertile Woman

Rachel Made Me

Filed Under Humor | Leave a Comment

Okay, Rachel’s making me do something fun for once.  Like I am any good at fun…  :)  So here goes:

I’ve been tagged:
This one time in High School, I: You really don’t want to know anything I did in high school.  I was bad, very very bad.  Okay, maybe this is tame enough.  We stole the guard shack in the parking lot from the parking Nazi, and threw it in a ditch.  Hey, it was funny at the time…  I don’t remember much about it.  Stupid kids.  :)

What are you listening to right now: My fan whirring in the background next to my humidifier.  (I am so getting old.)

Guilty Pleasure: Fashion and celebrity mags.  (I am so nosey!)

Favorite Food: Greek (I especially love mint tea, and kibby with cucumber sauce.)

Habit I want to break: This funk I am in, I don’t ever want to do anything.  Not even fun stuff, I think I am slightly depressed.

Habit I want to keep: Reading, I can never get enough.

Married or Single? Married for three and a half years.

Are you Happy? I love my life, but I’m kind of scared right now.  I have a great future ahead of me, but I am afraid because so much can go wrong.  I would rather have joy and peace, than happiness any day.

Biggest Pet Peeve: Unfairness, I have to have justice.

Chocolate, Vanilla, or neither: Can’t stand vanilla, only like chocolate at certain times of the month.  Much prefer fruity things.

Dream Vacation: Greece with my husband.  Swimming, shopping, and eating.  Sounds so romantic..

Worst Vacation Idea: Doing a ton of stuff, growing up that was the way our vacations were.  I needed a vacation just to rest up from vacation time.  I like to see stuff, but I like a much slower pace than my regular life.

Favorite Book: The Count of Monte Cristo  Can’t remember the author right now, to save my life.

Favorite Music: Ahh, jazzy stuff.  Alexa Ray Joel, Joss Stone, Ginny Owens, Alicia Keys and of course Girls who rock out…. (that’s not a band, but what kind I like..)

Person You Admire That’s Not a Relative: Ginny Owens who faces her blindness and only cares about pleasing her heavenly Father.  People who adopt (it ain’t easy), and yet they do the difficult to love on children who need it.  Maybe I’m not supposed to say my husband, but he is the first person I thought of.  He never gives up, has more patience than anyone I know, and has a ton of faith and trust in the Lord.  I wish I were more like him.

Tag:

I really have no one to tag.

Infertility Humor

Filed Under Humor | Leave a Comment

This is a WARNING, some jokes contain adult content. I tried to leave off the ones that were dirty, but these are kind of graphic. Infertility Humor is hard to be clean, when it deals with bodily functions and certain body parts.

“A man was at an infertility clinic, and was told to go and bring back a sample. He thought the nurse was asking for a urine sample, and asked if he should fill the cup up. The nurse gave an emphatic “No” and he realized his mistake.”

“When a woman is trying to conceive, she is required to take her Basal Body Temperature every day. A woman had taken her temperature everyday for months, when her friend asked her what the temperature was. The woman replied, “97.7″. The friend clarified that she was asking about the weather.”

“One Sunday morning, a couple went to church right after their IUI, at the doctor’s office. A friend stopped them in the foyer to ask, “Did ya’ll get it up?”. The couple was stunned and thought it crass, until they realized he was talking about the Christmas tree they had just cut down the day before.”

“My husband’s sperm is very clean, they get a bath once a month. It is hard to hang them on the line to dry.”

These were taken from the book, The Infertility Companion by Sandra Glahn and Dr. William Cutrer.

“How does an Re like his eggs? Answer: 20mm” (an RE is a reproductive endocrinologist, who performs IVF)

This is a quote from an article, from another woman’s journey through infertility, that I found hilarious:  “I’d love to have learned all this the “easy way” whatever that is, instead of the proverbial “hard way” because, in fact, it’s fascinating. Even, occasionally, funny. Infertility humor, like cancer humor: only for the afflicted. Like the husband who’d masturbated in so many doctor’s offices over so many months, that it was becoming old hat. At an appointment with a new doctor, the nurse sent him to the bathroom with the familiar cup. When he returned, he plopped the cup loudly in front of her, proud of his speediness. The nurse picked it up and, with a lifted eyebrow said, “I wanted a urine sample…”.

The drugs they use on you come from the kinds of places you only hear about in bad sketch comedy. Pergonal, a typical fertility drug, is harvested from the urine of postmenopausal nuns in Italy. No kidding! Premarine, a commonly prescribed hormone, is extracted from the urine of pregnant horses. I can just see doctors standing outside the various latrines with their little buckets: “Are you done in there, ma’am? Just stomp your foot twice…”

Infertility books introduce you to their own little world. One book, referring to the cervical fluid that makes fertilization possible, has a line I find endlessly amusing: “The mucus will be honest with you.” Thank God someone will. Maybe I should ask the mucus if I look fat in this dress?”

From Overcoming Infertility by Deb Victoroff at www.helium.com

Adverse Effects of Fertility Treatments

Filed Under Humor, Info | Leave a Comment

There are a lot of jokes out there, about the side effects of certain drugs. You laugh when you hear the commercial promoting something like Wellbutrin, and then the side effects are worse than the actual disease to begin with. Here are a few of the fun side effects from the fertility medicine, Chlomid, that I am currently taking: 1. Hot flashes 2. Night sweats 3. Tender breasts 4. Mood swings 5. Lower abdomen cramps 6. Weight gain 7. Cysts 8. Hyperstimulation Syndrome (which can cause death) 9. Multiple births 10. Can cause miscarriage. 11.  Dizziness 12.  Wooziness 13.  Visual Disturbances.  Not all women experience all of these side effects. Every woman’s body is different. However, I have heard testimonies that indicates that all of these side effects are pretty common. I have been lucky, and have only been on two rounds of Chlomid so far. We only intend to do two more rounds after that. We do not want to play Russian Roulette with my health, but some women trust their doctors. Chlomid has been prescribed for thirty years now, and so is relatively safe. But I think all women should do the research before they agree to any treatments, because you are the only one with your best interests in mind. Chlomid is the most commonly used fertility treatment.

Top Ten Things to Do While You Are Waiting for Your IUI Results

Filed Under Humor | Leave a Comment

We have an IUI (intra-uterine insemination) each month, which is where they take the husband’s semen and artificially inseminate the wife, by taking a catheter and flushing the semen up into the uterus. That is my very non technical explanation. There is then a two week wait for your period, or blood test (whichever comes first) to see if you are pregnant. It is a very long wait where everyone asks “Are you?” “We don’t know yet.” “Are you?” “It isn’t time yet…” and so forth. Here are some fun things to do while you wait:

10. Spend an hour weighing out the pros and cons, ON PAPER, of a Starbucks run.

9. Wish every pregnant woman you see will get a bad case of hemorrhoids. (I wouldn’t do that, that’s so mean. ((Sarcasm.)))

8. Change your future children’s names 500 times, and then go back to the original ones. (My husband really hates this.)

7. Watch Entertainment shows and put the remote through the T.V. the next time a Hollywood Starlet gets “knocked up”.

6. Eat for two–just in case.

5. Go on a mad shopping spree and spend all your money left for fertility treatments, then God might give you a baby because now you really cannot afford it. (Okay, that’s dumb.)

4. The next time someone (a stranger) asks if you have children, watch their eyes roll back in their head, and their quick excuses to escape, by telling them all of your infertility trials. (I have done this, I do not recommend it unless you have a sadistic sense of humor, which I do. People leave really fast. It is quite funny.)

3. If you really have faith, buy a couple of things of diapers.

2. Enter the Guinness Book of World Records for the “Quickest Nervous Breakdown: 2 hours, 12 minutes, and 17 seconds.”

1. And my favorite one of all: Freaking out the general public by approaching the next person you hear complaining about their children with your checkbook open and asking, “How much?”

These were courtesy of: http://dailystrength.org/c/Infertility/forum/2185320-if-jokes-smile

What Not to Say to an Infertile Woman: The Top Ten

Filed Under Humor, Info | Leave a Comment

Some of these have been said to me, and others I got from various sources that had been said to others.

10. “Just relax, and you’ll get pregnant.”

9. “I have a friend who…”

8. “Don’t worry, you can always adopt.”

7. “You’re trying too hard.”

6. “It’s all in your head.”

5. “Can you ever have kids?”

4. “Just adopt and you’ll get pregnant.”

3. “We are so blessed to have our children.”

2. “Do you need us to show you how it’s done?”

1. and my favorite of all: “Want kids? Borrow mine for the weekend, then you’ll really change your mind.”