our thoughts

Design and develop the official site for South Pacific Picture's new television show Diplomatic Immunity.

I have received many comments asking how to extend the earlier tutorial on How to organise posts into two side-by-side columns in Wordpress to work with more than just two columns.

This can be done in a similar way by just editing two main files: index.php and style.css.

In index.php:

Before the Wordpress Loop starts:
<?php $col = 0; $numcols = 3; ?>
Change numcols to another number if you want something other than 3 columns.

Just after the Wordpress Loop:
<?php if ($ct && $ct%$numcols==0) echo '<div class="clearcol"></div>'; ?>
<div class="col">

Just before the end of the Wordpress Loop:
</div>
<?php $ct++; ?>

Just after the end of the Wordpress Loop:
<div class="clearcol"></div>

The exact code you need to add to style.css depends on how many columns you want, how much space you want between them, and how much width your theme allows for the posts.

For example, with the current Wordpress Default theme, the width of the left column is 450px wide. If you wanted three columns, that’s 150px per column. If you also wanted 10px of spacing to the left and right of each column, that leaves a width of 130px for the post itself.

You would then need this code in style.css:
.clearcol {clear:both;}
.col {float:left;display:inline;width:130px;padding:0 10px;}

You’ll probably need to play around with these values until you get something that works.

The result for a 3-column Wordpress Default theme can be seen here.

I’d love to see a Facebook Statistics Application – a dashboard showing handy information such as:

Forgotten friends: Friends I haven’t been in touch with via Facebook in more than, say, six months.

Missing friends
: Friends who haven’t logged into Facebook in more than say, six months.

Popular friends: Friends I keep in touch the most with via Facebook (Combines messages, likes, wall posts, comments, games)

Popular status updates: Which of my friends’ status updates have been the most popular in the past week?  (Ones with the most comments or likes).  Possibly filtering this by ones I haven’t “liked” or commented on so it helps me see ones I may have missed.

Popular photos: Which photos of mine (and my friends) have the most comments or likes?

Popular apps: Which apps do my friends use the most that I don’t have?

Facebook addicts: Which friends have uploaded the most photos recently?  Commented the most?  Done the most quizzes?  Played the most games?

Would you find this handy?  What would you like to see?

Elsewhere: Skype MSN Messenger Twitter Facebook