April, 2006

Friday, April 28th, 2006

I’m Not Gay… Er… Uh…

I guess you can lump me in with the “Questioning” community after getting elbow deep in staight up girl design. Every-so-often while designing this theme I had to take a trip to the bathroom mirror and take a look at the dirty unkempt unshaven mass of male that looked back at me just to snap out of the estro-zone I was finding myself in at every turn.

“Oooh I like the way that looks when I add this here” I would say with a slight lisp as I got in character in order to pull of a barely authentic female piece. “Those lemons are just fabulous.” I have no more self respect. And you’re the beneficiary.

Click the image above to enlarge and the link below to download.

Click filename below to download::


Friday, April 28th, 2006

Oooh Shiny… Photoshop Template

This blog theme was intended for a client at one point… but when she snapped and went stark raving mad I had no choice but to pull the plug. Anyway, it’s shiny, it’s clean, and it’s ready for your gentle touch. Again, it’s in Photoshop format because I reserve the time it takes to make wordpress templates for actual paying peeps. Click the thumbnail above to enlarge and the link below to download.

Click filename below to download::


Friday, April 28th, 2006

Travel Blog Photoshop Template

I’ve been meaning to post these Photoshop templates of mine for a while now. They do me no good just sitting unused on my PC. I’m too lazy to actually create the blog template for you, but if you need any help integrating it into your site give me a holla. This particular template is nothing fancy but I rather fancy the colors and layout. It’s obviously meant as a travel blog template, but it’s a Photoshop file so have at it. Click the image above to enlarge, and the link below to download.

Click filename below to download::


Friday, April 28th, 2006

Standalone IE 5.1, 5.5, & 6

Anyone who uses CSS based design knows about the joys of IE compatibility. I just recently set out to find older versions of IE to test my sites compatibility with the older browsers. It’s next to impossible to run parallel installs of different versions of IE because of its integration into the OS, but why install when you can run it right out of the box, install free? Attached to this post is a zip file containing IE 5.01, 5.5 and 6. This will allow you to install and start testing version 7 but still be able to refer back to previous more common versions until 7 hits the mainstream.

DOWNLOAD IE5Thru6 HERE

There is a fantastic old browser archive located here: http://browsers.evolt.org

Friday, April 28th, 2006

Wordpress Stylesheet Switching

The following is a quick way to switch Wordpress styles just by using a URL variable and a cookie. Actually this can be used for any site. I needed to be able to allow users to view one of my sites in plaintext, without a lot of complex CSS in order to be more browser friendly.

First thing you do is open up your header.php file in the theme of your choice.

At the very top, before any other code, paste the following:

<?php
$getstyle = $_GET['css'];
if ($getstyle == "plaintext"){
setcookie("style_cookie", "plaintext");
header("Location: http://www.your-site-url.com");}
?>

To break this down for you real quick like, the first line is the variable which will contain the value of the URL variable that is passed. Line 2 says that if the value of this URL variable is “plaintext” then to proceed to the next line. Line 3 sets a cookie called “style_cookie” with a value of “plaintext.” Line 4 simply resets the page with the cookie in place, otherwise even after sending that URL variable, the user would have to manually refresh the page to see the result. Make sense?

Now that we have a cookie set called “plaintext” we’re ready to proceed. Notice when I set the cookie up in the previous code I didn’t use an expiration value? This will by default cause the cookie to die once the user closes the browser, which is what I want. If you want to set this cookie for any different length of time feel free.

In the header.php file in wordpress, you will see the following line:

<link rel="stylesheet" href="<? php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /></link>

I will be removing the proprietary wordpress “bloginfo” code for our purposes here to make this tutorial a little more user friendly you non-wordpress folk. We can’t use this code anyway with my hack since it won’t be integrating with the wordpress control panel.

Anyway, remove the line above and replace it with the following:

if ($_COOKIE['style_cookie'] == "plaintext")
{
   echo "<link rel=\"stylesheet\" href=\"http://www.your-site-url.com/wp/wp-content/ themes/yourtheme/plaintext.css\" type=\"text/css\" media=\"screen\" />";
}
else
{
   echo "<link rel=\"stylesheet\" href=\"http://www.your-site-url.com/wp/wp-content/ themes/yourtheme/style.css\" type=\"text/css\" media=\"screen\" />";
}

The sole purpose of the code above is to write the html that decides which stylesheet will be used. If the “style_cookie” equals “plaintext” then use the plaintext.css stylesheet otherwise use the standard style.css file.

Upload your header.php file to your server and your ready to go. Just use the following as the URL to activate the new plaintext stylesheet:

http://www.your-site-url.com/wp?css=plaintext

For a demo of what the end result is, click this link. To reset to the standard CSS style CLICK HERE.

This code can be tweaked in many ways to allow unlimited .css files to be used. Download my header.php file attached to this tutorial to see how I set it up for this example.

Click filename below to download::