Building a poker template

This is the first article in a series of niche templates I’m building. You can have a look at the finished template before we start if you want.

About the niche

Today’s topic is Poker sites. Poker, and card games overall, are hot these days and they are all over news. There are TV commercials for big international gambling sites even here in Sweden. Being in that kind of spotlight and receiving massive traffic must make those sites better than the rest, don’t you think? Let’s google for “poker” and have a look at the top 10 results (23 Jan 2006).

# Site name Doctype Validation errors Layout method
1 Pokerroom.com Transitional 22 errors Tables
2 Poker.com Strict 62 errors CSS
3 Pokerstars.com None 48 errors Tables
4 Pokerpages.com None 336 errors Tables
5 Pagat.com Poker None 52 errors* None
6 Worldpokertour.com Transitional 56 errors Tables
7 Pacificpoker.com None 72 errors Tables
8 Partypoker.com Transitional 22 errors* CSS
9 Paradisepoker.com Transitional 1 error CSS
10 Homepoker.com Broken 146 errors Tables

*) These sites required that we set a character set manually to even see how many errors there were.

What do we see up there? Poker.com and Paradisepoker.com do pretty well. Poker.com uses Strict doctype which means that their validation is stricter than the others, but 62 errors is still too much. Paradisepoker.com almost validates as Transitional which is a good thing compared to the other sites in the list.

Three sites use CSS for their layouts instead of tables. This is a good thing and they should be commended for it. However, that does not mean that they can’t be better. All three with CSS layouts overuse divisions and spans terribly, often making the page a mess without CSS turned on.

Does this guy do nothing more than whine? I hear you ask. Yes I do. What I will do is nothing special; any one of you reading this could have done it yourself. I’m going to build a simple HTML document mimicking the front page of a poker site. If you are planning to build a site like that (or even if you are the developer of one of the sites above), you should definitely keep reading. The idea with all of this is to make it easier for people to follow the standards.

I will only include the front page of the site but it won’t be hard to transform it to something simpler later on. Remember the purpose here: to show that it’s possible to combine logical markup, valid code and make it look just the way you want it to. We need some kind of content though, so let’s start with that.

Plan what features you want

The features for the template will be my picks of the top10 above. Let’s put some time on analyzing what features a decent poker site has.

The purpose of most of the sites seems to be to get people to play on their site. Most have some kind of client that is easily available from the front page and that button is the most important part of the page. Aside from that we need features to build a community around the game. Let’s pick a forum as our community builder. Beginners need to have somewhere to learn the basics and everyone might need support from experienced staff sometimes. To build a good community you might also need news of some kind, displaying the largest prizes might give the site more players. Finally, all respectable sites have some info about the company behind it and if the site is big, they have a search. We want to earn some money too so let’s add in a little advertisement. Sum this up in a list with descriptions.

  • Play poker button: One big button telling people to click it.
  • Beginners guide and support: Show on the front page that you don’t need to be a pro to play and provide a quote from a professional player that illustrates this. Link directly into the guide to show experienced users that there might be something there for them too. Add frequently asked questions to this part too. Give users somewhere to turn to if they have problems.
  • News: Front page should link to a couple of top news and at the bottom have link to a dedicated news-page with more info.
  • Forum: Users should feel that this is a site with lots of people. Link to the topics in the forum most posted in to show them just that. This site is live and kicking.
  • Search: Search might be important both if you look for either a poker term or for a feature on the site. Add search for both the forums and the news here and let people decide which of them to search.
  • About us: Trust is important if you want people to part from their money. Put a picture of the staff online and quote reviews and happy customers (Don’t fake this stuff. Never)
  • Advertisement (Ads): Ads need needs to be marked up as what they are. We want users to click on the ads only if they like the service the advertisers are serving

We now need to transform this to HTML somehow. When you do this yourself, try to think as little about the color, fonts and such as possible. Focus on what content you want to show your users and build the HTML based on that.

On the next page we will get down to business and start coding. You want to see what I’m talking about don’t you?

Friendly Bit is a blog by Emil Stenström, an interface developer and Web 2.0 promoter that blogs about the modern web and how to make best use of it.