nemrod.se Various guides and experiments

“Matches” WordPress plugin


This is a WordPress plugin I made when we were making a new website for an ice hockey team. It basically lets you administer teams and matches and display them with a neat little widget. Here’s a screenshot of what it could look like (ignore the names and logos):
Widget for Matches WordPress plugin

Here are the various admin panes:
Settings for your own team and how many upcoming matches to display in the widget
Adding, editing and deleting opponents
The most important thing of all, administering the matches between you and your opponent

You can see a live example at http://www.krif-hockey.net in the sidebar to the left.

And finally, if you’re interested in trying it, here it is:
Matches in the WordPress Plugin Directory

If you’re an awfully generous person and like this plugin, any donations (there’s a button in the sidebar) are terribly appreciated. :)


Posted in WordPress | 14 Comments

14 Responses to ““Matches” WordPress plugin”

  1. Fredrik says:

    Finally! The world’s been waiting for that plugin. ;)

    The only feedback I (still) have is to switch the tabs around; “next match” to the right, “previous match” to the left.

    Looking forward to our upcoming match. Thanks for the heads-up, I suppose. :P

  2. Claudio says:

    it’s very good!!
    but i have a problem…
    I installed in plugin but i can’t see this in widget!! why? help me please!!
    i’m sorry for the bad english…

  3. nemrod says:

    @Claudio: thanks for trying it out!
    It doesn’t register itself as a widget but instead you’ll have to add it to your theme. Here’s the installation instructions copied from the WP Plugin Directory:

    1. Upload the matches folder to the /wp-content/plugins/ directory
    2. Activate the plugin through the ‘Plugins’ menu in WordPress
    3. Place < ?php if(function_exists('matches_display_widget')) { matches_display_widget(); } ?> in your templates
    4. Modify display_widget.css in the plugin directory to style the widget to your liking

    The instruction relevant to you is #3. Good luck!

  4. Pierrick says:

    thanks a lots for this plugin! Great job but I don’t understand when you say:

    3. Place in your templates

    Which file(s)?

    Does this line add a widget to make me able to drag it where I want? Or must I put this line exactly where I want it appears?

    (Sorry for my bad english! Oo )

  5. nemrod says:

    @Pierrick: The snippet of code (from < ?php to ?>) needs to be placed in the template files exactly where you want it. I should probably rewrite it to register as a true WP widget but haven’t yet. Basically you need to go to Appearance -> Editor, choose a template file to edit (most likely “Sidebar” or something like that) and add the line of code where you want it. It might be a bit difficult if you’re not used to seeing code.

  6. Pierrick says:

    Ok, thank you! :)

    I’m a beginner with WP so I’m not used to seeing code but I’ll try. It’s work for others, why not for me? ^^

  7. Art says:

    Hi nemrod,

    Already found out how to use the .po and .mo files (see email). I’ve changed them too matches-nl_NL.po and .mo. And they work! :)

  8. nemrod says:

    @Claudio, Pierrick, Art; I’ve uploaded version 0.5 that properly registers as a widget. Hope this makes things easier for you. :)

    There are also several other feature additions/improvements, a list is available here: http://wordpress.org/extend/plugins/matches/changelog/

  9. Caps says:

    The new widget does not register properly. Using Headway theme. I am back to using a HTML/PHP widget for placing that snippet.

  10. nemrod says:

    @Caps: It works for me so I’m not sure what Headway is doing “wrong”. I was going to download the theme and test it, but it seems to be pay-to-use. Do you think you could try a different theme with widget support just to see if it works? If it doesn’t work then link me to the theme and I’ll try it on my end.

  11. Art says:

    Works for me as well, perfectly! Great work Nemrod :)

  12. Caps says:

    There was no notification when you responded, sorry. Will try a different theme.

  13. Caps says:

    While in the admin widget area I get, “There are no options for this widget.”

  14. Art says:

    Nemrod, when can we expect version 6.0?

Leave a Reply