Nike+ iPod Stats WordPress Plugin
The Nike+ iPod Stats plugin for WordPress is a great way to display to the world how you're doing at your workouts. It uses Nike's public API (the same one used for the official Nike widgets) to retrieve your personal data and formats it to display correctly on your WordPress blog.
NOTE TO EVERYONE UPGRADING FROM 1.4.2:
Because WordPress is now hosting the plugin, you may need to change your permissions again and change your cache path to the new directory in the plugin's options. The plugin directory has changed from nikePlus to nike-ipod. This will result in a change of the caching path from something like: "/home/username/public_html/wp-content/plugins/nikePlus/cache/" to "/home/username/public_html/wp-content/plugins/nike-ipod/cache/"
Sorry for the trouble.
Info:
- Version: 1.4.3
- Description: Allows you to display Nike+ iPod running data on your wordpress blog.
- Download: Nike+ iPod Stats WordPress Plugin
- Release Date: June 25, 2009
If you like my plugin and use it, please consider making a donation through Paypal to support its further development.
In the past month, I have received $0.00 for my coding efforts.
Requirements:
- A wordpress blog running on a server with PHP ? 4.3.0 compiled with curl support.
- A Nike+ login ID (used to access http://www.nike.com/nikeplus/)
What it does:
- Gets your personal running data from Nike.com in XML format
- Caches the data locally so your site load time is not dependent on the speed of the Nike website.
- Displays your data in an easy to read way.
- Easy to use configuration in your WordPress administration panel
- Ability to enable or disable the display of your "Power Song"
- Ability to display all your goals under the general run data.
- Ability to link your power song to the artist on the iTunes Music Store
- Ability to show your most recent runs
- Graphs your runs
Note: The functionality of this plug in is SOLELY dependent on the open Nike+ API. At any time Nike decides to change or close access to their API, this plug in will most likely cease to operate correctly. The likelihood of this happening, however, is very slim since the plugin uses the exact same calls as the flash animations on the official NikePlus website.
This plugin has been tested with WordPress 2.8 and is not guaranteed to work for you. Support questions? Leave them in the comments below.



August 28th, 2008 - 19:23
Hi Mark … I sent a request to my web host to ask what the errors were. They so rarely contact me I assumed it was bad, but it could be a permission thing. All they stated was “an error that showed a script from one of our servers trying to connect to Nike+”. I will let you know if they tell me more.
Thanks for replying
August 31st, 2008 - 15:39
I seem to have everything working for pulling and publishing the stats, however when I go into Nike+iPod User Options I see all the text fields have values such as . I am not very familiar with PHP however this tells me the code is not being processed. What could be going on for this to happen and yet have everything else working fine.
August 31st, 2008 - 19:48
@Sky,
There should be two options, one that has a “,”, and one that has a “.” .This is normal and purposeful to allow people with other numeric systems to adjust the display output.
For example, in most of Europe someone would write 1,254.00 as 1.254,00. They switch around the period and comma from teh american system of comma notation. It’s jsut anoption you can fiddle with.
Heck, you can even make your runs look like 3|12miles or 3#12miles if you’d like.
Again, the periods and commas are normal and on purpose.
September 22nd, 2008 - 22:01
Great plugin! Got an error tho on the challenge stats: When clicked on details it shows:
Warning: arsort() expects parameter 1 to be array, null given in /home/1195/domains/mindplunge.com/html/wp-content/plugins/nikePlus/nikePlus.php on line 424
After this the list looks fine except at the bottom:
Warning: Invalid argument supplied for foreach() in /home/1195/domains/mindplunge.com/html/wp-content/plugins/nikePlus/nikePlus.php on line 467
I looked at the php file but couldn’t find anything unusual. Any ideas?
September 23rd, 2008 - 07:26
Only thing I can think of is if you’ve got less than 2 runs. The plugin is sometime unpredictable when you have zero or one runs.
September 23rd, 2008 - 10:28
Hmmm… can’t be it. I have at least 12 runs recorded. Here’s how the list looks:
Warning: arsort() expects parameter 1 to be array, null given in /home/1195/domains/mindplunge.com/html/wp-content/plugins/nikePlus/nikePlus.php on line 424
1. Nobodyuno: 216.41km
2. Gazcobain: 159.37km
3. Tenshigure: 154.98km
4. didorossi: 122.06km
5. Rashmica: 88.41km
6. mr.freeze33: 86.39km
7. nohara: 81.27km
8. Mummo: 80.46km
9. TonyRaeck: 71.07km
10. barcode: 66.05km
11. Enne73: 63.44km
12. Micbilly: 61.70km
13. PEZZULLI: 58.45km
14. fujiyama17: 55.48km
15. JCrandall: 50.92km
16. Yoats: 49.01km
17. rollwave: 48.18km
18. MindPlunge: 40.86km
19. J Alvelais: 38.54km
20. ????: 38.46km
21. webbo99: 33.23km
22. petrzima: 31.30km
23. indy anna: 31.07km
24. matt weeks: 30.49km
25. sabrinafudge: 28.33km
26. SusanS.: 24.91km
27. Richobauer83: 22.82km
28. Walkingitoff: 20.23km
29. Bmwd49: 15.57km
30. kingkeen: 10.85km
31. Jurn: 10.41km
32. dan edelman: 9.50km
33. paulhendry: 6.56km
34. Hammer76: 5.03km
35. Southerngirl: 4.66km
36. enis ozsoy: no runs
37. Kayster-UK: no runs
Warning: Invalid argument supplied for foreach() in /home/1195/domains/mindplunge.com/html/wp-content/plugins/nikePlus/nikePlus.php on line 467
Close Details
October 23rd, 2008 - 13:18
This plugin inspired me to make my own! Mine uses the Nike+ Mini, and puts it on your sidebar. Check it out here.
November 2nd, 2008 - 01:37
does this work with wordpress 2.6.3? I’m getting errors when I install it. My directory is writeable.
November 2nd, 2008 - 09:57
It does work on 2.6.3. In fact, I’m running that version here.
Check that you’re web host doesn’t require a proxy to connect to external APIs. You uploaded the thtire nikeplus directory to your plugins directory, right
February 7th, 2009 - 13:45
I’ve installed the widget and I’ve this error:
Warning: DOMDocument::loadXML() [domdocument.loadxml]: Start tag expected, ‘<’ not found in Entity, line: 1 in /membri2/fantagalla/blog/wp-content/plugins/nikeipod-stats/nikeplusipod.php on line 91
what’s wrong?
February 16th, 2009 - 21:48
I checked with my host and they support curl and I’ve made my cache dir writable, yet I get this error:
“Fatal error: Call to undefined function: curl_init() in E:\hshome\ursername\domainurl\blog\wp-content\plugins\nikePlus\nikePlus.php on line 593″
Any ideas what I’m doing wrong?
August 24th, 2009 - 17:58
I love it and it works as a charm. However I do not like that the hyperlink to the iTunes store does open in the same parent browser window. Making people navigate away from my site. It should open in a new tab on the browser.
FWIW
September 1st, 2009 - 12:51
I’m not sure what I’m doing wrong…but I can’t get this to work. are the foreign characters in the code listed below supposed to be something different?
You can insert the code directly into your sidebar.php file in your template directory:
< ?php
echo ‘My Nike+ Stats’;
get_nikePLUS();
?>
September 1st, 2009 - 13:46
Not sure why those special characters are doing that but it should be :
< ?php
echo "My Nike+ Stats";
get_nikePLUS();
?>
September 1st, 2009 - 13:46
Regarding the above code, make sure that you remove the space between “<” and “?php”.
September 18th, 2009 - 03:55
hi mark,
installed this today. unfortunately there’s a slight problem. i’m getting error
“failurethere is no user information in the request
Can not retrieve data from Nike.com.
Error:
Can not retrieve data from Nike.com.
Error:”
is it my login and password? i’ve triple checked them.
September 26th, 2009 - 13:17
Would be interesting to see some showcases of what has been achieved in WordPress if possible, please?
especially the API
December 12th, 2009 - 20:32
Anyone know where to get the userid within the new nike+ site?
December 18th, 2009 - 07:13
i’ve put instructions here. I’m looking to release a plugin of my own for wordpress, but you’ll still need to grab that ID!