The Plugin

3
Martin Majoor
Exceedingly Difficult
30 correct
Final score: 26.4

Finished in 00:51


This WordPress plugin [download here] for the Font Game will display either your highest score or your best standing on the hall of fame.

To use it, simply download and unzip the file and upload the contents to your plugins directory. Then copy the CSS rules from readme.txt to the end of your stylesheet.

After activating the plugin you need to insert this into your template:
<?php
if( function_exists('fontgame') )
{
fontgame('nancywudesign','position');
}
?>

The if(function_exists()) check is there to make sure your layout won't break if you deactivate the plugin before removing the PHP code from your template. The first parameter is the desired Twitter username and the other one is the preferred sorting method. Use either "position" or "score". Due to a recent hall of fame update, sorting by score no longer gives accurate results.

The results for each player are cached for 15 minutes for obvious reasons.

Using this feature on a website that does not run on WordPress

Embedding this feature on any website is easy. Just place the following code anywhere you find appropriate:
<?php
function fontgame($username,$order='position'){
$data = file_get_contents('http://fontgameapp.com/wp-plugin/?user='.$username.'&order='.$order);
echo $data;
}
?>

Then you can insert this line of code into your template file and it will display the results: <?php fontgame('nancywudesign','position'); ?>
Please note that if you use more than one instance of the fontgame() function, your HTML will no longer validate due to duplicate IDs.

This page uses the non-WP approach. Please drop us a line if you're using the plugin on your website.

Features

  • 657 font samples
  • 3 levels of difficulty
  • Post your results directly to Twitter
  • read more…

The Game

Creators

  • John Boardley: Founder of ILT
  • Justin Stahl: iPhone development
  • Kari Pätilä: web stuff & original design
  • read more…
Hosted by the world's best, Fused Network