zed1 Team Fixtures Plugin

I have writ­ten a small plu­gin for a friend who wanted an easy way to dis­play his favour­ite foot­ball (soc­cer) team’s next fix­ture on his blog.

He had pre­vi­ously needed to edit his theme sidebar.php every time, often twice a week.

So I came up with the idea of this theme wid­get, which allows him to select the two teams from drop down lists, type in the date, time, and com­pet­i­tion and then save the changes. He can also spe­cify which TV or Satel­lite chan­nel the match will be shown on.

I have set up a demo of the wid­get on this page

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

You can down­load ver­sion 1.0.7 of the plu­gin. Update: Ver­sion 1.0.7 has a minor CSS tweak.

Note the zip file includes UK soc­cer team badges (sourced from Wiki­pe­dia), but you can just drop in any team badges you like. Name them like Team_Name.jpg (or .gif, or .png) and the plu­gin will simply add them to the drop down list. Add them in a sub­dir­ect­ory (per­haps by league) for example Sport_League_1 and it will sub­cat­egor­ise them in the drop down list.

Screen shots

The set­tings dia­log allows you to con­fig­ure all aspects of the widget.

Widget dialog

The drop down list will cat­egor­ise the badges it finds in subdirectories.

drop down list

11 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 web­site i’m try­ing to build.

    One quesiton is it pos­sible to include this in a page? Thnk­ing of hav­ing it as a page header before the posts. Any­ways great stuff, thanks very much!

    • Hi Paul,
      If you had a theme that allowed an extra area for wid­gets at the top of the page, you could use it that way.
      How­ever if your theme doesn’t provide that, you can add the fol­low­ing code to your tem­plate in the place you want the fix­ture 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 plu­gin is awsome

    It would be even bet­ter if you could have it auto get match inform­a­tion spe­cific to a team,

    e.g if my site is about liv­er­pool which it is hehe, if the plu­gin could find the matchs and add them auto to save you hav­ing to manu­ally do it.

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

    Mikey

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>