PHP Widgets

As some of you may know I’m currently in the process of create my very first WordPress plugin (Xbox Achievements).

The idea behind the plugin is you will enter your gamertag in the settings and the rest is done by the app. It will download your game library and achievements for display on your blog.

Achievement Widget
One of the main features I’d like to include is a recent achievement list. Everyone wants to know what the last achievements you earned are? What games you have been playing recently?

So, I decided to include a widget!

Continue reading PHP Widgets

Xbox Achievements Plugin

As some of you may know, i built a site which tracks gamertags. It creates game logs for every game you play and accounts achievements you earn.

Anyways, onto what i want to talk about.

I always wanted to integrate some xbox live stuff into my blog. A friend of mine @Cadab had already created a nice little xbox widget for his blog.

As you can see, he has a nice little widget which sits on his blogs sidebar and grabs the last 5 achievements which then link to a nice page which displays all his games from a database.

So, i wanted to create one for myself. I had all the data i needed already. xBonx was tracking all my gamerscore and achievements already so i could just select from the correct databases and supply my gamertag and boom, id have all the date.

Continue reading Xbox Achievements Plugin

Official Name: xBonx

Hey hey.

Just writing this post as I purchased a new domain the other day, but didn’t want to post anything until the DNS had been set up.

The site is now running under its offcial name of

The old URL ( will stay will to.

You can access your user accounts just by typing your Xbox Live gamertag after the forward slash.

Have fun.

Posted with WordPress for Blackberry.

Whats been added up to now

Since the last post which can be found here i have piled a few more features into the Xbox achievements.

Firstly, with some help off @Cadab, i managed to sort out a neat little feature using what is normally a 404 error page.

This meant that i could create whatever i wanted to go after the foward slash and use it to detect different things.

So when you get a link like this: the script will break it down.

The first letter after the forward slash is the ‘type’. For instance, G means Game. So upon clicking this link you will get something like the below page.

Other links that will look like the above, but they are infact all different will be; – As this one starts with an L it means its a Log entry. IE, The system has logged someone playing a game. – This one starts with an A which means it will link to an Achievement. IE, BobTheBuilder has unlocked this something.

You can also view a persons profile page by just going to the same above URL ( and after the forward slash type a persons xbox live gamertag.

Kings Reigns

Like said in my first post about this project, this was going to be like a foursquare but for your xBox. So, one of the famous things about foursquare is mayorships. When you check into a place so many times, you become the mayor. Then you battle with other users to have the more check-ins of that place. If someone checks in more than you, you will lose the mayorship.

I have tried to import this system directly into xbox achievements. I want to make it so the more a user plays a game, the higher there count goes. (I have limited it this so it only counts 1 log per day per play. We dont want users cheating by turning on and off there xbox and make the logs get higher.)

A user has to have played the game a minimum of 3 non consecutive days before they become King. (I didnt want to take Mayor’s and mayorships so i changed it slightly.) The more a user plays the game, when there king, the longer there reign will get. Another user can only get hold of the reign by beating the amount of plays by 1.

Once the new user has aquired the reign the system will tweet the new king, and the previous king the news.

The system seems to be working well at the moment, with already 12 reigns issued out of 23 games.

Other People Playing

Another really simple, but effective feature i quickly added was the chance to see which other users are playing the same game as you. When you click on a games itself, for instance Battlefield 3 you can see at the below what i am talking about.

Future Plans

This weekend i am hopefully going to be incorporating more features into the system. Im going to be changing the way logs and game counts are added to the database, im also going to hopefully integrate a points system, giving points for more consecutive days and other mini challenges that will be available through the site.

More news will be posted soon.

A different type of Xbox achievements

While spending a little time developing a twitter for xbox app last night, which im sure @Cadab will do a write up for soonish, i came accross the idea of taking a users xbox details and awarding achievements.

They would not be achievements like in-game achievements, nor would they offer you gamerscore. Its basically just for fun but will offer stats and information about your game play, games you have played, time spent on the xbox and so on.

I started last night by doing the easiest thing and just adding the game you where playing to a database i created. This will then check (Using a Cron job) every 15 minutes to see if you are online. If you are online, the game you will be playing will be added. After the next 15 minutes, if your playing the same game, nothing will happen. Only 1 game play per day will be added to the database. If you have changed games, this new game will be added to the database. You will not be able to keep swapping between games to accumalate game plays.

I then have another page wont runs a script more often. This is user to award user with there achievements. Im calculating achievements using logic to work out how long a user has been online for, or how many times they have played a certain game, how many consecutive days playing xbox live. I can use it to calculate the award which will then be ‘added’ to that users account on my site.

I can make it harder for people to get awards by increasing different targets. Eg: I can set an award to be awarded after 30 consecutive days or playing, which will be hard, if they miss a day, there tally will be reset to zero and they will have to start again.

Hopefully i can keep adding to it and make awards for totally different things IE; ‘Playing the new Battlefield 3 within 24hours or release‘ or ‘1 Year Old – For playing a game over a whole year!‘.

Ill update this more when more work is carried out.

@Bonxy - 2023