Javascript to Print a Single Image on Web Page

Here’s the problem: you have multiple coupons or pictures on your webpage and you want your visitor to be able to choose one and print it via their browser print dialog box. You don’t want to ask your visitor to first download the image to their computer and print from there.

Kudos to Boutell.com that gave me a solution where many others failed. This script even works with Firefox. I tested it myself in Chrome, IE9 and Firefox, and it works beautifully. Boutell also says it works in IE 6 and 7. It also provides a message for visitors who have disabled javascript (which you can customize, providing them an alternate means to print, eg. saving image first, etc.)

I even got this to work in a WordPress blog by using the “Add to Head” plugin by Samuel Cohen. Kudos to you, too, for an elegant solution to many befuddling WordPress issues.

So if you are just ready to copy and paste, click through to Javascript to Print a Single Image On a Webpage and page down to where the part is that says, “Enough Talk, Let’s Print!” Note that some of the script goes in the head of your webpage and some in the body.

Also, don’t forget to add the ALT tags and height and width attributes. It seems to be necessary to remind the image to change the cursor to a hand or pointer also.

<img style="cursor: hand;" onclick="printme(event)" src="smiley.gif" alt="Smiley face" width="42" height="42" />

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

How To Forward Gmail To Cell Phone as a Text Message (SMS)

This is a great solution for someone with a business where you want to be notified audibly and nearly instantly when you receive email from one of your customers. This keeps you from having to check your email constantly or to be interrupted by every email from everyone. Just set up the filter according to subject line or some other constant in the “to” or “from” fields.

 

First in Gmail you need to set up your telephone number as a forwarding “email” destination. The following explains how:

Within Gmail go to “Settings” and select “Forwarding and POP/IMAP.”

Under “Forwarding,” click “Add a Forwarding Address.”

Enter your 10 digit cell phone number with the designation for your provider.

  • AT&T: number@txt.att.net
  • Qwest: number@qwestmp.com
  • T-Mobile: number@tmomail.net
  • Verizon: number@vtext.com
  • Sprint: number@messaging.sprintpcs.com or number@pm.sprint.com
  • Virgin Mobile: number@vmobl.com
  • Nextel: number@messaging.nextel.com
  • Alltel: number@message.alltel.com
  • Metro PCS: number@mymetropcs.com
  • Powertel: number@ptel.com
  • Suncom: number@tms.suncom.com
  • U.S. Cellular: number@email.uscc.net

 

Thanks, http://www.thinkingserious.com/2010/04/03/how-to-forward-an-email-as-a-text-message/ for this list. I have not checked them all, but I know the T-mobile works.

Let’s say your cell number is 555-123-4567 and you have T-Mobile so you enter:

5551234567@tmomail.net.

Click “Next” and you will see the message “A confirmation code has been sent to verify permission.”

In a minute you will receive a text message from Gmail on your cell phone.

It sends you an 8- or so digit “confirmation code” and also gives you the option to click through a link to complete the verification. If you do not want to get a data charge, you can make a note of the confirmation code. I will tell you where to put it.

Go back to your Gmail account to “Settings” and “Forwarding and POP/IMAP” under “Forwarding” and you will see the message “Verify 5551234567@tmomail.net” and a box where you can enter the confirmation code and click “verify.” You also have the option to “Re-send email,” actually the text message, or to remove the address.

You should see the message “You have verified the forwarding address.”

Under “Forwarding” keep the radio button “Disable Forwarding” selected if you do not want all your email forwarded to your cell phone.

Follow the standard procedure for creating filters and you will see when you have the option of designating a forwarding “email” which in this case is a text message to your phone. (It will appear as a drop-down selection.)

Setting up filters is fairly intuitive. You can start under “Settings” by going to “Filters” or by initiating a search of your mail first or by opening an email of someone whose messages you want to filter.

https://support.google.com/mail/bin/answer.py?hl=en&answer=6579

I have noticed that my text messages from my Gmail appear as “picture messages.” I do not believe this will accrue additional charges in my cell phone plan, but I will update when I know for sure.

 

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Fascinating Collection of Infographics for the Internet Business

I just love these 9 New & Fantastic Search Engine Marketing Infographics by Derek Edmond. From a variety of sources, he has gathered together this educational collection.

I especially learned a great deal from “The Evolution of Making Page 1″ which is a history of search engines as well as Google algorithm updates.

Though I have not used them in a while I found “What Is Google AdWords? How the AdWords Auction Works” very well presented and highly recommended for anyone starting out in AdWords or just curious about it.

I also found the “Google Longtail Keywords Infographic” a great explanation for what happened in the aftermath of Panda this year.

There are also other interesting infographics related to the authority site, building links, content for SEO, SEO salaries, a SEO software survey, and more.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Search and Replace Plug-In for Moving WordPress

Recently I had to undertake the moving of one of my blogs from a subdirectory to a subdomain.

I recommend the following two pages to help with that:

http://yoast.com/move-wordpress-blog-domain-10-steps/
http://patdoyle.com/internetbusiness/how-to-move-a-wordpress-blog/330/

I especially found that the “Search and Replace” plug-in by Frank Bültge (found by ordinary search in the WordPress plug-in directory) to be much easier than a download and attempted correction of a database.

In my situation I had to do a “search and replace” for both:

  • example.com/subdirectory to subdomain.example.com
  • example/public_html/subdirectory to subdomain.example.com

Immediately I checked my blog and the home page worked, but all the secondary pages gave Server 500 errors. I checked the htaccess file (created by WordPress) and found the following:

RewriteRule . /subdirectory/index.php [L]

I changed it to

RewriteRule . /index.php [L]

Then everything worked fine.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Searching for Clean Romance Fiction

False Colors by Georgette Heyers cover art

I have only just started reading romance fiction, looking for stories in a Jane Austen / Regency England type setting. (This derives from my enjoyment of the Caroline Stevermer and Patricia C. Wrede, which I considered a fantasy book and has the longest title in a book I have seen lately: Sorcery and Cecelia or The Enchanted Chocolate Pot: Being the Correspondence of Two Young Ladies of Quality Regarding Various Magical Scandals in London and the Country ) Let’s face it: a lot of romance fiction is too explicit, however there are some good books of this genre to be found.

Georgette Heyer (1902-1974) was a prolific writer of romance fiction that was considered historically accurate in its details and very Austenesque. Recently I have enjoyed False Colours which I found to be a very original plot about a brother who must impersonate his identical twin to save his brother from an awkward social situation, and in the process ends up falling in love with his brother’s fiance. I have also read several of her other books (Simon the Coldheart, Lady of Quality, Faro’s Daughter) which share the similar plot device of two people who hate each other falling in love with each other. That can be rather amusing at first, but I was getting tired of it.

Also in looking for clean Regency Romance fiction, I found Linore Rose Burkard who has written two books of the genre, Before the Season Ends and its sequel The House in Grosvenor Square as well as one additional sequel. I enjoyed the Christian aspects in the book and I may need to find other Christian romances that I may like.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

The Decline Effect

I highly recommend this article about the Decline Effect by Jonah Lehrer published in The New Yorker.

http://www.newyorker.com/reporting/2010/12/13/101213fa_fact_lehrer?currentPage=all

This is the kind of thing to make you a bit distrustful of any new report, study, or statistic that is reported every day. Even more scary is the prospect that many of the assumptions we make about our health care are not to be invested with the total trust that seems to be asked of us when something has been supported by research. We should all remember that for just about every study that has been done on a topic, especially something that seems to defy previously held views, there will be another study next year that says just the opposite.

It kind of makes me wonder how this can be applied to an internet business, especially testing things like SEO, copywriting, and other things related to increasing revenue. It makes me think that a very significant difference (30 percent or more? how much?) should be seen between your baseline and your test result before you can trust it. What about keyword research? I have seen some pretty inconsistent things in that department. When it comes to building websites my philosophy has become “Build it, then we will see if they come.” (Apologies to Field of Dreams.)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

New Research Tool: Shablast

This is a search engine that gathers the top 30 pages from Bing then ranks the pages according to which one has the most information. Sometimes in Google and other search engines, high ranking pages are sparse on information because their inbound links help them to rank well. This search engine is found at http://shablast.com/

I can see where this can be a great resource in researching information for creating new web content, especially when used in conjunction with http://gistweb.com/ for really hefty pages of content.

More background information from the creator of Shablast can be found at http://jonathanleger.com/how-google-gets-it-wrong/

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Book Review: Sun and Moon, Ice and Snow By Jessica Day George

Sun and Moon, Ice and Snow cover art

This YA novel is based on the Nordic fairy tale “East of the Sun, West of the Moon.” This is a story reminiscent of Beauty and the Beast — a man is enchanted to be a bear by an evil troll. If a girl can live in an ice palace with him for a year, without uncovering the terms of the enchantment he will be free. Nice, romantic ending. Original elements like the girl being unnamed by her mother, until a magical white reindeer gives her a name. The scene where she shares her name with the man she loves is sweet.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Displaying RSS Feeds On Your Site

Lesson Four (and final lesson I think)

Now here is the part I really love about RSS feeds. You can use them to display rotating or fresh content on your websites.

Why is this a good thing? Well, not only does it make a better experience your visitors, which should always be your number one consideration, it also puts fresh content on your pages which search engines love. Fresh content can mean better SERPs.

This can be content of entirely your own creation that you can cause to rotate and refresh as you want to. Or you can pick a keyword and go over to an RSS feed directory or the Google blogs search engine and display feeds created by others.

This is one way I have used RSS feeds on my websites.

I have picked a keyword, such as “baby crib bumpers”, (if that was the topic of a website) and put it in the blogs search engine at http://blogsearch.google.com/. It takes you to a page that gives you a sampling of recent blog posts on that particular keyword from many different blogs. In the left column you will see “Subscribe Atom | RSS.” I copy the link address for RSS it it will say something like: http://blogsearch.google.com/blogsearch_feeds?hl=en&q=baby+crib+bumpers&ie=utf-8&num=10&output=rss

Now I use a really nifty script called CaRP (Caching RSS Parser) to get the feed to display on my site. With CaRP there are a great many choices on how to display the items in the feed. One thing I do with blogs is to add a “no follow” to the links since sometimes something unsavory will turn up. There are also filters you can set up to try to prevent the unsavory from displaying. Some keywords are more prone to this problem than others. I always preview a blog search for the first forty or so items to see if it will be a persistent issue or not.

One great thing about CaRP is that when it displays RSS on your webpage it does so with a PHP script that alters/updates your HTML before the browser displays it. When you look at a webpage’s source (ctrl+U) you will see no sign of CaRP, but you will see lovely content in the form of links, titles and descriptions. This is a vast improvement over displaying a RSS feed in a javascript. With a javascript the search engine has nothing fresh to crawl.

Anyway, if you are willing to give it a try here is the link to CaRP, and this is an affiliate link, by the way.

One small warning: I personally do not consider CaRP to be a newbie script to work with. While I got it to work initially very quickly in its basic form, I have spent many hours ironing out little problems that have cropped up trying to get my feeds to display just so. One thing that has come up with CaRP is that I have decided to build all my webpages in PHP.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS