browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

XFire Plugin

The current version of XFire Stats Plugin is 0.4, and requires PHP 4.0.2 or greater.

v0.1 — initial test
v0.2 — added Widget Title option
v0.3 — curl_setopts_array unavailable before PHP 5.0, use curl_setopt for PHP 4 compatibility.
v0.4 — typo in the linkage into XFire for the games.
v0.5 — first alpha release, added ‘now playing’ box, fixed bad link for Wizard 101, fixed parsing bug for games with apostrophes in the title.
v0.6 — Rewrite the way options are saved.
v0.7 — Pages from XFire.com are cached for five minutes to ease server load on busy blogs. Fall back to vanilla file transfer to get XFire data if libcurl is not installed.

Issues

The plugin’s guess as to XFire’s page for a game is sometimes wrong.

Announcing the XFire Stats WordPress Plugin. This plugin adds a widget that you can place on the sidebar of your WordPress blog to show your gaming stats for the past week — the title and time spent, sorted by decreasing time.

This is the very first release of this, my very first plugin, and feedback is definitely encouraged.

To install:

  1. Right click on this link and choose “Save Link As…” and name it ‘xfirestats.zip’.
  2. Unzip this file to find ‘xfirestats.php’
  3. Upload ‘xfirestats.php’ to the plugins folder of your WordPress installation — http://yourblog.com/wp-content/plugins/ might be the spot, but there will definitely be other plugins there. Automatic installation is coming.
  4. Go to your WordPress dashboard. Choose Plugins, and activate XFire Stats.
  5. In your dashboard, choose Appearance and then Widgets.
  6. Drag the XFire Stats widget where you want it to go.
  7. Edit it, and enter your XFire Id and, optionally, a title for the widget (otherwise the title will be XFire Weekly Stats).
  8. Save changes.
  9. See that it appears correctly in your blog.

Enjoy! Please send me an email at brendahol@gmail.com if you have any trouble, reactions, suggestions, untapped rage, etc.


6 Responses to XFire Plugin

  1. Fallon Shadowblade

    Thanks for this great plugin! It works perfectly – I just installed it on Diary of a Wizard! Are you working on any other WP-plugins? I look forward to seeing more!

  2. Tipa

    Cool! Glad you like it! I really need to get it put into the WP Plugin repository. I have an idea for another one — one that lets commentators know if the post to which they are commenting is old or not. This would help with the comments like, “Wizard 101 came out six months ago! Why are you talking about it as if it were in beta?” — on articles from last year’s beta. I used to just have comments turned off on older posts.

  3. fhefheu

    whats the plugin anyway

  4. Nathan P.

    Is this plugin still being updated? I’d like to use it for my blog (which runs WP 3.4.2) but I will not if it’s outdated.

  5. Tipa

    It’s not being updated; I moved to Raptr. But there’s a good chance it still works. Give it a shot.

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>