Mike Little’s Journalized

Mike Little’s not-quite-so-daily thoughts, babblings, and random synapse firings!

A collection of random thoughts and links. Nothing too exciting. ;-) -- Mike Little

[powered by WordPress.]

zed1 Team Fixtures Plugin 

This page first published by @ 17:49 on Saturday, 12 July 2008.

I have written a small plugin for a friend who wanted an easy way to display his favourite football (soccer) team’s next fixture on his blog.

He had previously needed to edit his theme sidebar.php every time, often twice a week.

So I came up with the idea of this theme widget, which allows him to select the two teams from drop down lists, type in the date, time, and competition and then save the changes. He can also specify which TV or Satellite channel the match will be shown on.

I have set up a demo of the widget on this page

In the spirit of open source, I thought I would release it to the world.

You can download version 1.0.7 of the plugin. Update: Version 1.0.7 has a minor CSS tweak.

Note the zip file includes UK soccer team badges (sourced from Wikipedia), but you can just drop in any team badges you like. Name them like Team_Name.jpg (or .gif, or .png) and the plugin will simply add them to the drop down list. Add them in a subdirectory (perhaps by league) for example Sport_League_1 and it will subcategorise them in the drop down list.

Screen shots

The settings dialog allows you to configure all aspects of the widget.

Widget dialog

The drop down list will categorise the badges it finds in subdirectories.

drop down list

The URI to TrackBack this entry is: http://zed1.com/journalized/wordpress-plugins/zed1-fixtures/trackback/

7 Responses to “zed1 Team Fixtures Plugin”

  1. zed1.com demo site » Team Fixtures Widget Plugin Says:

    [...] is a post to demonstrate the Team Fixtures widget plugin. Got to the plugin page to download, discuss, or ask questions about the [...]

  2. Paul Taylor Says:

    This is a great little tool, going to try and use it for a non-league website i’m trying to build.

    One quesiton is it possible to include this in a page? Thnking of having it as a page header before the posts. Anyways great stuff, thanks very much!

  3. mike Says:

    Hi Paul,
    If you had a theme that allowed an extra area for widgets at the top of the page, you could use it that way.
    However if your theme doesn’t provide that, you can add the following code to your template in the place you want the fixture to appear:

    <?php
    $args = array('before_widget' => '<div id="team-fixture">',
    'before_title' => '<h2>', 'after_title' => '</h2>',
    'after_widget' => '</div>');
    widget_zed1_fix($args);
    ?>

    Give it a try and let me know how it goes.

    Mike

  4. Thank a Plugin Developer Day | Tkey.net Says:

    [...] plugin is still working [...]

  5. Test Blog » Thank a Wordpress Plugin Developer Day Says:

    [...] plugin is still working [...]

  6. LaX Says:

    Can i change the time displayed to use for other locales? like Asia

  7. mike Says:

    Hi LaX,
    Yes you can enter any time you like.

Leave a Reply

Please note: Comment moderation is currently enabled so there will be a delay between when you post your comment and when it shows up. Patience is a virtue; there’s no need to re-submit your comment.

[powered by WordPress.]

counter: 15810352

jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.

Protecting your bits since 10/01/2006. Founder #29 Wikipedia Affiliate Button [FSF Associate Member # 6279]

internal links:

gallery image:

A random gallery image, (click to expand)
corky page3"He saw a butterfly and when he went to foolow it but it flew even further. So Corky followed it. The butterfly flew into the jungle and Corky followed. The butterfly flew up and away and Corky was lost. He met a friendly lion called Tuka who told Corky "You must be careful and stay away from Maya the snake. She"
felt tip on paper
corky page3
"He saw a butterfly and when he went to foolow it but it flew even further. So Corky followed it. The butterfly flew into the jungle and Corky followed. The butterfly flew up and away and Corky was lost. He met a friendly lion called Tuka who told Corky "You must be careful and stay away from Maya the snake. She"
felt tip on paper
From album: The Adventures of Corky
'

tip box:

categories:

search blog:

 

archives:

ratings, codes, rings

other:

95. We are waking up and linking to each other. We are watching. But we are not waiting.
The Cluetrain Manifesto

Make Poverty History 2005

family links:

latest comments:

sponsored links:

I read:

bloggy links

worthwhile causes:

respect to:

  • Get  Firefox

favourite places:

Visitors:

39 queries. 0.792 seconds

You are protected by wp-dephorm: wp-dephorm logo