pinksy
Search Pinksy
Lijit Search
Comment Chart
Chris (129)
Barnze (73)
Lisa (68)
Skytower (64)
MJBDiver (61)
Erika (47)
Calendar
March 2010
M T W T F S S
« May    
1234567
891011121314
15161718192021
22232425262728
293031  
Subscribe

Add to Google
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online

Add to My AOL
Add to Technorati Favorites!
Add to netvibes

Thingies
Add to Technorati Favorites
Hello
Just an experiment...
Your IP address
38.107.191.87
Your browser
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Your language
en-us,en;q=0.5
spacer spacer

Took me a while, hope you like it…

Here’s a write-up on how I got here, from the ground up.

Wordpress

Wordpress is a tool for creating blogs. You can either set up a blog that Wordpress sorts out for you, by creating an account at Wordpress.com, or you can download the code from Wordpress.org and host it yourself, which is where this site started.

Then you find yourself a suitable host and a domain (I went with Webfusion, who do both), and upload to there. Once you’ve uploaded the code, you can get a basic site up and running in minutes. There are lots of free themes you can download to transform to overall look, but you can also mess about as much as you like with code, and come up with your own design. The code itself is formed of a MySQL database, with PHP to process the data and format the HTML, and CSS to make it look nice.

Design Inspiration

I quite like the design of the Doctor Who fansite Outpost Gallifrey, so I used that as a reference.

The layout is very tabular, and looking at the HTML behind it, they actually use HTML tables. However, I wanted to try and steer away from relying on HTML tables for a layout: the more I read up on it, it seemed that using tables is not the best way to lay out your site. Instead, the new standard is to use the CSS tags float, position, clear, etc.

Figuring out HTML and CSS

My HTML and CSS wasn’t that strong (the last time I had a go in 2001, I came up with the original pinksy site, which didn’t even get published). So I searched around on the net for a decent tutorial, and came across HTML Dog. I still haven’t got beyond the intermediate lesson, but I’ve picked up enough to get this far.

Figuring out PHP and MySQL

I bought a book for this: Build your own Database Driven Website using PHP & MySQL.

To be honest, I’ve not really got very far with itI’ve now gone through most of this book, but you don’t need a great amount of PHP knowledge anyway. It is a good book though - it shows you how to build a site like this without “cheating” with something like Wordpress. I looked through a lot of PHP and MySQL books in Waterstones, and read lots of reviews on Amazon, but I’d definitely recommend this one.

Armed with very little PHP or MySQL knowledge, it’s easy to knock up the “New Posts” and “New Comments” sections (see left) without needing a single Wordpress plugin.

Three column CSS layout

I followed a couple of tutorials to work out the 3-column layout. I started off with a 2-column design, following this tutorial at the 456 Berea Street site, which is pretty easy to follow. I followed another link on there to the “A List Apart” site, to learn how to make all the columns extend to the footer every time: Link. Once I’d got all that, it’s fairly easy to figure three columns: I created a leftcolumn.php file and a rightcolumn.php file, and then use the php “include” function on each page that needs them.

Dropdown menus using CSS

I went back to HTML Dog for this. They’ve got a good tutorial on how to do dropdowns, called “Son of Suckerfish Dropdowns”.

Browser woes

By far the biggest headache is the difference in behavior between the different browsers. If you develop it in Firefox and it all looks fine, you’ll open it up in Internet Explorer, and it’s all messed up. So in the end, I learnt to test every incremental change in three different browsers as I went along: Internet Explorer 6, Firefox 1.5 (and now 2), and Opera version 9. I’ve no idea what it looks like in Safari (the Apple Mac browser), so perhaps someone could let me know!

Outstanding bugs

There’s still a few problems I’m getting in Internet Explorer.

The menu bar doesn’t line up properly when you expand it, seemingly because the header link isn’t left-aligned, but centered.

This isn’t a problem in Firefox or Opera.

And then you get this stupid double margin at the bottom, between the last post or “Older stuff” button, and the footer…

…in Internet Explorer…

…but not in Firefox or Opera

But the bug that does my head in most is best demonstrated by seeing for yourself. Open up this page in IE6 (this might be alright in IE7 - haven’t tried it yet), and scroll down to the two pictures just above this paragraph. Notice that the one-pixel left and right border is missing? Scroll up and down a few times, and it may or may not be there. Now refresh the page, and it’s there. Scroll about again, and it’s gone again!. How crap is that?! It’s something to do with how IE6 renders floating images, but I’m no expert.

To be honest, I don’t know if I can be bothered to figure out the hacks to fix any of these - just get a better browser like Firefox.

Anyway, that’s it. Have a play around with it, and let me know what you think…

Since July 2006
640 posts
1474 comments
Pinksy RSS Feed
Discover the feeds I read. Follow me on http://www.toluu.com to see!
Adverts
www.flickr.com
This is a Flickr badge showing recent public photos from Flickr. Make your own badge here.
Link to Outpost Gallifrey
RichardDawkins.net
Pinksy's Wish List
www.kaboodle.com
del.icio.us
Hit Counter

Atheist Bus - Official Website