zed1 Team Fixtures Plugin

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

12 thoughts on “zed1 Team Fixtures Plugin

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

  2. 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!

    • 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

  3. Pingback: Thank a Plugin Developer Day | Tkey.net

  4. Pingback: Test Blog » Thank a Wordpress Plugin Developer Day

  5. This plugin is awsome

    It would be even better if you could have it auto get match information specific to a team,

    e.g if my site is about liverpool which it is hehe, if the plugin could find the matchs and add them auto to save you having to manually do it.

    If you could do this i will make a donation towards your hard work for sure.

    Mikey

  6. I really like this plugin. The only problem is that I am trying to use it for my local teams website and I would like to have the next match for the 1st team, 2nd team and a 3rd team, but there is only one widget ! Is there any way around this ?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>