This is a plugin for the soon-to-be-released iPhone game "Binary Game".
Install as a normal wordpress plugin and activate. This plugin provides both a classic plugin and a widget for your sidebar.
The Widget customization is done in your Widget admin screen. You are giving choice of period (year/month/week/day), mode (challenge/speed) and # of scores to show. Here's a screenshot:
To use the plugin, you include the magic comment <!--highscores --> in any page or post. That uses the defaults of:
- 10 scores
- This week
- <li>'s wrapping each line
- <strong class="name"> wrapping the name
- <span class="score"> wrapping the score
All of those are customizable via the magic comment. Here's a more complex example:
<!--highscores for|2009-02-13 period|day mode|speed before_line|<tr+class="score-row"> after_line|</tr> before_score|<td+class="score"> after_score|</td> before_name|<td+class="name"> after_name|</td>-->
(in the magic comment, <'s must be written as < and spaces replaced with +)
You can use the enclosed
plugin_helper.php to generate the magic comment for you.