Archive

Archive for January, 2009

WordPress 2.7 – With Built In LightBox!

January 7th, 2009

wordPress With three short lines of code in your theme’s header.php file, you can instantly have lightbox capabilities on your WordPress 2.7 Blog.

In case you haven’t poked around the backend since your upgrade to WordPress 2.7, this version includes the ThickBox Script for previewing and selecting themes. (Or was this in 2.6 also? Can’t remember.) If the code to do this is already there, then why not use it on the front end too?

Here is all you need to do:

Go to your theme directory and load ‘header.php’ into your editor. Add the following three lines within the <head> </head> tags:

<script type="text/javascript" src="wp-includes/js/jquery/jquery.js"></script>

<script type="text/javascript" src="wp-includes/js/thickbox/thickbox.js">
</script>

<style type="text/css" media="all">
@import "wp-includes/js/thickbox/thickbox.css";</style>

Save/Upload the changes. That’s it! You’re now ready to use ThickBox on the front end.

You only need to add a couple extra parameters to your links to get it to work.

<a href="license.txt?height=600&width=800" title="WordPress – License.txt" class="thickbox">CLICK HERE FOR EXAMPLE</a>

In this example, I’m displaying a text document (the WordPress License) within a scrollable window. Appending ‘?height=600&width=800’ to the link defines the size of the lightbox. The class="thickbox” completes the job.

CLICK HERE FOR EXAMPLE (Note: May not work within all news readers – visit the site)

Works for images too! More options for using ThickBox, can be found here. Just ignore the download and install instructions as that’s already been done by WordPress. :)

I just stumbled onto this and thought I would share.

WordPress , ,

DIY Custom Themes – Getting Ready

January 6th, 2009

Custom Themes As much as I adore the current theme I’m using, there’s one huge problem with it…

I didn’t create it!

The blog still feels like rented space to me and not the ‘home’ I’m ultimately seeking. So, let’s do something about that, shall we?

In my very first post here I discussed our options when selecting themes. The last option I mentioned was the Do-It-Yourself (DIY) route. We’re going to explore this more in the coming weeks as I start this series of posts on the topic.

Before I go any further I should point out that I am not an expert theme coder. I expect to make mistakes, blunders, and bone head moves (all in public, no less!) which I ultimately hope to be called to answer for via comments from my readers. I simply mean to come at this as an ‘intermediate’ because let’s face it, newbies and experts aside, a lot of us fall into this category of skill level.

Who knows. Maybe we’ll all learn something in the process. :)

Preparations:

I’ve setup two sub-domains to aid in the development of the new theme. The first sub-domain will house a default WordPress setup with a theme switcher plugin installed. This way, I’ll be able to post about my progress and provide a link to a working version of the theme on a post by post basis. That’s to say if someone a year down the road is reading the post, the link provided will demo where the work stood on that particular day. A visual timeline of sorts.

The second sub-domain will house the theme images. Most browsers can only load 2-4 images simultaneously from any single domain. By keeping theme images on a sub-domain and content images on the main domain, I can increase the load speed of the site dramatically by allowing an additional 2-4 images to be loaded at the same time. (A preliminary step in page optimization)

Today’s Link simply takes you to the default WordPress theme. Nothing special there.

In my next post we’ll be stripping that puppy down to basic code. From there we’ll start building our new theme based on what’s left. Ripping apart and rebuilding a default theme is a great learning technique, not only for WordPress, but other CMS’s as well.

Themes , ,

Social Avatars

January 5th, 2009

One of the first things suggested to me in regard to blogging was to have my picture taken and start plastering that along side my name as my avatar. Branding… bla bla bla.

As good as this idea was I have an aversion to having my picture taken. I hate it! I’m much like my father in this way. In fact, the last time I had my picture taken (that I know of) was for my 20 year old driver’s license. We all know how ‘good’ those pictures can be.

My fake smile comes off as ‘creepy’ every time, in my opinion. So instead of creeping out the entire blogosphere, I’ve decided to go the mascot route.

Kaffy240 Allow me to introduce you to Kaffy – The Kaffeinated Kitty. Kaffy’s been with me for a number of years now and we’ve been through thick and thin together. He’s appeared with such slogans as ‘Coffee Addict’, ‘More Coffee’ and ‘Juan Valdez is my buddy’ and currently sits beside several thousand forum posts across the web. He’s associated with my forum nickname of StarLab.

If you see Kaffy now, the first thing you should think is: ‘OMG! It’s Larry!’ The second thing you should think is: ‘I Need Coffee!’ ;)

My buddy Kaffy – Saving the Internet from my creepy smile. lol

Odds N Ends ,

TMI And Not Enough Time

January 4th, 2009

backwards-clock I’m guessing the more experienced among us can go grab a smoke and coffee while I, once again, talk about starting up.

Too much information (TMI) and not enough time can be a harsh cocktail. If you’re like me then you have a real life job to work at too. So how do you manage your time effectively when dealing with all the information that flows on a daily basis?

On a previous venture into blogging I made the mistake of trying to follow everything. I’d obtained an exported OPML for my RSS reader containing hundreds of feeds and signed up to all the hot social sites. It was too much and I found myself turned away rather than inspired to continue. 

This time around I’m taking it slower. Instead of someone else’s OPML file I’m building my own RSS subscriptions in the areas that interest me alone. Much less clutter. I can follow a couple dozen blogs better than a couple hundred. Same thing with social sites. I’m following/friending fewer people this time also.

Don’t get me wrong. I doubt things will remain this light as I continue on. I may end up at those several hundred feeds and many friends at some point anyway, but at least it will be a silent progression rather than a cacophony hitting me all at once. Perhaps the future will allow more time to handle the load.

I guess the point here is ease yourself in. There’s nothing worse than sitting there at 4:30am with an unfinished post and having to work at 8am. Why did you stay up all night sidetracked from what you set out to do?

Stay focused. Less can actually mean more in the long run. (You are in this for the long run, right? ;) )

Blog Startup ,

Facebook For Promotion?

January 3rd, 2009

facebook-logo I’m still not seeing what the attraction is but the damned place attracts millions of people from all over the globe. There is no question that this is THE hot spot on the Internet.

None of what Facebook offers is new to me in any way. I’ve been chatting, playing online games, and communicating with people online since 1985. It’s little wonder why I find it boring.

However, since starting this blog I’ve been thinking about Facebook in the capacity of a promotional tool. Certainly sounded like a good idea.

However, after reading Nick Bradbury’s post The Great Un-Friending of 2009 I realized the flaw in my thinking.

Anyway…because I never used Facebook, I just blindly friended anyone and everyone.  Which now, of course, makes it such a noisy place that I can’t possibly spend any time there.

This is exactly the place I found myself now. Since your reach only goes as far as your friend list, you need to add massive amounts of people as friends in order to benefit yourself in any possible way.

I’d added quite a few new people in the last couple weeks in hope of expanding my reach. The result was a noise level unlike anything I’d seen before! Emails, alerts, requests, this, that, and the other. There literally was no peace until I followed Nick’s lead. I un-friended many of the newly added ones earlier tonight. Back to my original short list of close friends.

Ahhh… some peace at last! (No offense to anyone dropped)

Will I be using Facebook for Blog Promotion? If I think something I’ve written here will interest any of my close friends then I may share it there. Otherwise, I doubt Facebook will play any significant part in my promotion.

Am I giving up too soon? Is there a way to use Facebook effectively and noise-free? If so, please comment because I’m not seeing it.

Blog Promotion ,

Adsense Image Ads – Targeted to Content?

January 2nd, 2009

Google-adsense-logo There must be a lack of image ad sponsors out there when it comes to Google Adsense. I’ve tried running these on two blogs in the past and never once found them relevant to any of my content.

I’m guessing because there are fewer image ad sponsors, diversity suffers. If your content doesn’t match any of the available image ads then you’re just given anything. In my case, I got nothing but online gaming ads with the occasion web host ad or something equally irrelevant.

The default at Google for Adsense is ‘text and image ads’ when setting up your ad block. I had switched to ‘image ads only’ for a few months and found clicks had dropped from their normal rate of ‘rarely’ to ‘never’ for the duration. About a month ago I switched them to ‘text ads only’ and have started to see those pennies rolling in again. (I should be able to retire in the year 2875! ;) )

If you want people to click on ads they must be related to the topic the reader is visiting for. If your blog is about electronics or other popular topics of image ads then you’ll likely do alright with with them. Otherwise, I find ‘text ads only’ is the way to go.

I’m thinking Adsense and similar programs should be thought of as stepping stones anyway. Once your blog reaches a Google Page Rank (PR) of 4 or better there are much better ways to utilize your ad space. I can only hope to achieve such ranking so I can blog about those choices at some point. :)

Advertising ,

Forum Decorum

January 1st, 2009

Forum Rules To this point I’ve touched on the subject of Forum Profiles and Signatures as a great way to build backlinks to your new blog. (Over 200 for here now!)

Since I moderate on several Forums I thought it might be a good idea to post about proper Forum behaviour. If you go into a Forum with links a-blazin’ chances are you’re going to find yourself infracted, or worse, banned from the Forum altogether.

Each Forum will have their own set of rules but here are a few things that might help keep you out of hot water:

  • Finding the Rules: Most welcome emails from joining a new forum will usually contain a link to the Rules. Look for it, read and understand them. Sticky posts in the topic listing is another place to look. There’s nothing worse than spending months building up post counts just to find yourself banned for a simple link drop.
  • The Signature itself: Some Forums simply do not allow links in Signatures. Others will have restrictions or posting requirements before you’re allowed to have live links appearing. Be sure to check any rules before doing this.
  • Posting: Your Signature links will do nothing unless you get involved in the Forum Community. Adding replies to threads, or creating your own threads can see mention of your site appear in Google within several minutes of posting. (Depending on the popularity of the Forum) Don’t throw your link into every post. Your signature will take care of that.
  • Be polite: Just because the person you’re talking to can’t punch you in the face doesn’t mean you can be rude. Remember, these people are a community. They don’t take kindly to someone new mouthing off to their friends.
  • Don’t tick off the Moderators: More of a personal request than a useful tip. ;)

I’ve been involved in Forums to one degree or another for many years. Not only are they a great place to meet people with similar interests, but they also contain a community of knowledgeable people who can help with even the most perplexing problem.

Don’t overlook this valuable resource!

Blog Promotion , ,