Options saved.

'; } $checked = ''; if($ping == 1) $checked = 'checked="checked"'; echo '

URIs to Ping

The following services will automatically be pinged/notified when you publish posts. Not when you edit previously published posts, as WordPress does by default.

NB: this list is synchronized with the original update services list.

Separate multiple service URIs with line breaks:

Ping log

These are the lastest actions performed by the plugin.

'.SUP_get_last_log_entries(20).'

'; } # 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; 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 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_date"] == $row["post_modified"]) { if($post_title) SUP_log("Pinging services (new post: “".$post_title."”) ..."); else SUP_log("Pinging services (new post) ..."); SUP_ping_services(); # 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 { if($post_title) SUP_log("NOT pinging services (“".$post_title."” was edited)"); else SUP_log("NOT pinging services (a post was edited)"); } } else SUP_log("NOT pinging services (disabled by administrator)"); } # 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() { $services = get_settings('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_send_xmlrpc($service); } } # A slightly modified version of the WordPress built-in ping functionality ("weblog_ping" in functions.php). # This one uses correct extendedPing format (WP does not), and logs response from service. function SUP_send_xmlrpc($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') ); # the extendedPing format should be "blog name", "blog url", "check url" (whatever that is), and "feed url", # but it would seem as if the standard has been mixed up. it's therefore best to repeat the feed url. if($client->query('weblogUpdates.extendedPing', get_settings('blogname'), $home, get_bloginfo('rss2_url'), get_bloginfo('rss2_url'))) { SUP_log("- ".$server." was successfully pinged (extended format)"); } else { # pinging was unsuccessful, trying regular ping format if($client->query('weblogUpdates.ping', get_settings('blogname'), $home)) { SUP_log("- ".$server." was successfully pinged"); } else { SUP_log("- ".$server." could not be pinged. Error message: “".$client->error->message."”"); } } } $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 stuff $logfile = ABSPATH."wp-content/smart-update-pinger.log"; # for debugging function SUP_log($line) { global $logfile; $fh = @fopen($logfile, "a"); @fwrite($fh, strftime("%D %T")."\t$line\n"); @fclose($fh); } function SUP_get_last_log_entries($num) { global $logfile; $lines = @file($logfile); if($lines === false) return "Error reading log file (".$logfile."). This could mean that the wp-content directory is write-protected and no log data can be saved, that you have manually removed the log file, or that you have recently upgraded the plugin."; else { $lines = array_slice($lines, count($lines) - $num); $msg = ""; foreach($lines as $line) $msg .= trim($line)."
"; return $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); } ?> Family Biking | Bikes in Europe

Category: Family Biking

Basic Bicycle Safety Tips Everyone Needs To Know

Bicycling has become one of America’s favorite pastimes. While golf courses were the hot commodity in every neighborhood 10 years ago, bike trails are now all the rage. Whether you are purchasing the bike to start riding as a hobby, or you are going to be using it for other reasons, it is definitely a good idea to have one. With the prices of gas and car insurance soaring, riding a bike to get to work or run errands can save you a large amount of money, but being safe while on your bicycle should be your main priority. It is important to understand exactly how to be safe while preparing to ride your bike and also while you are in the act of riding. In this article I am going to be going over a few simple tips that you can take in order to insure you are being as safe as possible while riding on your bicycle. Read Whole Story >>

Safety Tips If You Enjoy Biking at Night

Some people enjoy biking to get themselves to any place that they need to be. This helps them save the environment while also helping them get into the best shape of their lives and save money that would otherwise be spent on fuel for their cars. But others enjoy biking for the pleasure it provides. For some, it’s a truly relaxing experience that they like to partake in to relieve tension and stress and get away from it all. That’s why some bikers prefer to ride at night, when things have quieted down, the air is cooler, and there are fewer people around and cars on the road.

...Read The Full Post (whole text)»...

The UK’s Best Road Trips

Too often we consider the journey of going away to be a hassle, a rigmarole, a bother you could do without. You want to just get there, right? How about, just once in a while, we slow the pace down and enjoy the journey as part of the trip. Instead of standing in queues at an airline check-in desk, instead of being stuck on a delayed, hot and packed train, instead of facing the worst of the weather at sea, why not opt for a road trip and see where the journey takes you. Travelling at leisure, there is arguably no better way to see the UK than by road. Here are some of our favourite routes.

...Read The Full Post (whole text)»...

How to Plan a Family Biking and Picnic Adventure

While you can certainly hop on your bike, head to the nearest park, and plop down on the grass for a picnic, you might want to liven up the proceedings a bit by turning your standard Saturday afternoon with the family into something of an adventure. You may not even realize that there are prime biking areas in and around your locale, but once you start scouting biking trails in your area you’re bound to find a veritable bounty of adventurous options. For the sake of safety, however, there are a few steps you should take to plan out your trip before you hit the road.

  1. Service bikes. The first thing to do after your bikes have been in the garage all winter is make sure they’re in ship shape and ready to take you out on the trails. You can either do this on your own with a few clean rags, a bucket of soapy water, and some WD-40. But you might also haul them in to your local bike shop for a once-over that includes a good cleaning, air in the tires, and any repairs that might be in order.
  2. Consider age and ability. When planning a family biking trip the ages and ability levels of kids must be a consideration. If you’ve got tiny tots, you don’t necessarily want them bumping along uneven trails in their bike seats. And you clearly can’t go too far with kids that are just learning to ride a bike. In these instances you’re probably better off sticking to city streets and hitting your local park or a nearby waterfront for your picnic. However, teens that are familiar with taking their mountain bikes on local trails may be up for more of an off-road type adventure.
  3. Print a map. Depending on where you decide to take your local adventure you might end up with little or no cell service. If you’re relying on your GPS to lead you back to civilization this can definitely be a problem. So make sure that you mark your route on a paper map. It may sound old-school, but you’ll be glad you have it when your battery dies or you’re out of range of a cell tower.
  4. Bring an emergency kit. With all the stories in the news lately about lost hikers (they probably forgot their paper map) you should take the hint and prepare for the possibility that a backwoods biking expedition could leave you stranded overnight or even for a couple of days. While most families probably won’t take their adventure too far off the beaten path, you never know what might happen, and having an emergency kit on hand could significantly increase your chances of survival. Your kit should include basic medical supplies (bandages, antiseptic, aspirin, etc.) as well as matches, water purification tablets, Mylar foil blankets (they fold up to about the size of a slim wallet), and a couple of flares (to signal Search and Rescue). You might even include a couple of MREs or a guide to edible plant species for your region.
  5. Pack a portable lunch. You don’t necessarily have to bring a ton of gear when you head out on your bikes for the day, but you might want to pack a couple of picnic blankets and some foods that will keep until you decide to stop for lunch. Non-perishable items like trail mix, granola bars, and jerky work great as snacks, but when it comes to your picnic, consider making some sandwiches and packing self-contained items like fruits and veggies rather than messy concoctions like pasta or potato salad. You should opt for items that are less likely to spoil and that require you to haul only minimal trash out the way you came in. And don’t forget to bring plenty of water to stay hydrated during your trip. You might even throw in a few sports drinks; the sugar and electrolytes will keep your energy high and help you to make it back home.

Do You Need a Car?

If you live in a highly urban area, where schools or even your job is close probably you do not need a car. Also if public transport is excellent or at least very good, this can be another reason your answer to be no again.

bicycle car fnancing

...Read The Full Post (whole text)»...

Cargo Bikes in Europe – Facts

Cargo bikes or bicycles are great way to move things around in a fast, cheap and clean way.

In the past few years a new class of cargo bicycles emerged on the streets of big, crowded and polluted European cities. They are fast, thanks to electric drive which can provide autonomy of 20 to 30 miles or 30 to 40 km per battery charge. Battery can be fully charged within 2 or 3 hours depending of the technology which is used for battery production. This bikes are clean and cheap way to commute in the city. Charging the battery from the city electrical network cost less than 10 cents.

Let’s see the facts:

FedEx uses electric cargo trike for deliveries in Paris, France.

fedex is using electric bikes for delivery in paris

...Read The Full Post (whole text)»...

Family Biking

Family Biking for All Family Members (even the youngest one)


If we know today that biking is clean and healthy transportation choice than we should engage fully into it not only by ourselves but also with our whole family.
We should buy or borrow equipment for all members of the family, regardless of their age, and hence, educate them more thoroughly about right life choices. One could dress up all fit children properly (helmet, bike, shoes, …) and go for a river stroll, or easy biking on the sea level roads for couple of miles.
Even youngest children with proper bikes (regularly serviced and oiled, helmets on) can endure several miles bike route without even the slightest problem.
My personal experience involves 12 km route on slowly elevating road, which my oldest son had biked without any problem whatsoever (afterwards a good hydration is in order, of course).
These times can be really stressful, especially for young parents without big support, but weekend biking tours are god-given gift to all of us, easily and cost-efficiently maintained, and all you have to do is actually organize and motivate family members for engaging in these recreational sports which also emphasize family bonding in a way no one could predict it.
Highly recommended activity for all families!
I can only hope that this post will thrust you into joys and happiness of biking!