Archive for the ‘Scripts’ Category

List of U.S. States for a CForms II Select Box

Friday, July 24th, 2009

If you're new here, you may want to subscribe to my RSS feed. My blog is still pretty new, and is mainly for my own SEO web design reference but feel free to bookmark and comment. Thanks for visiting!

Here’s a list of U.S. States in a format that you can copy and paste into your Cforms II form:

#Alabama#Alaska#American Samoa#Arizona#Arkansas#California#Colorado#Connecticut#Delaware#District of Columbia#Florida#Georgia#Guam#Hawaii#Idaho#Illinois#Indiana#Iowa#Kansas#Kentucky#Louisiana#Maine#Maryland#Massachusetts#Michigan#Minnesota#Mississippi#Missouri#Montana#Nebraska#Nevada#New Hampshire#New Jersey#New Mexico#New York#North Carolina#North Dakota#Northern Marianas Islands#Ohio#Oklahoma#Oregon#Pennsylvania#Puerto Rico#Rhode Island#South Carolina#South Dakota#Tennessee#Texas#Utah#Vermont#Virginia#Virgin Islands#Washington#West Virginia#Wisconsin#Wyoming

And here is the entire string, including “State” as a label:

State#Alabama#Alaska#American Samoa#Arizona#Arkansas#California#Colorado#Connecticut#Delaware#District of Columbia#Florida#Georgia#Guam#Hawaii#Idaho#Illinois#Indiana#Iowa#Kansas#Kentucky#Louisiana#Maine#Maryland#Massachusetts#Michigan#Minnesota#Mississippi#Missouri#Montana#Nebraska#Nevada#New Hampshire#New Jersey#New Mexico#New York#North Carolina#North Dakota#Northern Marianas Islands#Ohio#Oklahoma#Oregon#Pennsylvania#Puerto Rico#Rhode Island#South Carolina#South Dakota#Tennessee#Texas#Utah#Vermont#Virginia#Virgin Islands#Washington#West Virginia#Wisconsin#Wyoming

Cforms II is the best Wordpress Plugin out there for building forms – visit their site for more information.

(Modified) Nofollow Greasemonkey Script

Friday, January 23rd, 2009

I took the liberty of adjusting Joost de Valk’s Nofollow Display Greasemonkey script to highlight links on pages that use a nofollow Meta tag. As always, Joost’s tool is really great but it only shows nofollow links when the rel=”nofollow” attribute is used (skipping links that are nofollow due to the robots Meta nofollow tag).

(more…)

Using the META Robots Tag

Thursday, January 22nd, 2009

Tutorial: How to use the Meta Robots tag — code examples, meanings, and all the major REP directives.

I’ve seen a whole lot of websites lately that are wasting space (and the time it took to write it) by implementing the Meta Robots tag like this:

  1. <meta name="robots" content="all, index, follow" />

If you want search engine bots to crawl and index your website, then just leave it alone. By default, search engines will crawl, index, and archive every page on your website that they can find by following links. You also don’t have to say “all” — every bot that obeys the Robots Meta tag will obey it by default.

So not only is that example pointless because that is the default, it is repeating the same command twice!

(more…)

Tutorial: KML Geo Sitemaps

Thursday, January 8th, 2009

Step-by-step instructions on how to create a Geo-sitemap. I will post a tutorial for setting up a GeoRSS feed soon.

(more…)

How to 301 Redirect the Non-WWW to WWW

Saturday, January 3rd, 2009

Tutorial: Redirecting non-WWW to WWW

I have seen a lot of clients get frustrated quickly after I tell them to set up a 301 Permanent Redirect from the non-WWW version of their website to the WWW version. 

Example: Redirect http://domainname.com to http://www.domainname.com

It is important to note that this method only applies to servers running Apache. Be very careful when you change the .htaccess file because it can cause your entire site to fail with a simple typo. I recommend hiring an experienced web designer to do this for you.

First: open your .htaccess file. It should be in the root folder of your website (usually www). If it doesn’t exist, create a new file named .htaccess – that is the entire file name, so don’t add a .txt extension or add anything in front of the period.

Add the following lines  (if there are already some code in the file, add these lines above them):

  1. RewriteEngine on
  2. RewriteCond %{HTTP_HOST} ^domainname\.com
  3. RewriteRule (.*) http://www.domainname.com/$1 [R=301,L]

REMEMBER: Be extremely careful, and make sure you know what you are doing. Depending on the structure of your website, adding these lines in the wrong place can break your website. 

I am working on a large post explaining what the .htaccess file is and now to use 301 Permanent Redirects for many reasons – I will publish it as soon as possible.