Write the reason you're deleting this FAQ
I have a Xbox gaming forum (phpBB software) and I want a script / mod so that my members can add their Xbox GamerTag into a field in their profile settings and this fetches their Xbox Gamer Profiles Stats such as their Gamerscore, the amount of achievements they have unlocked, what games they have recently played, etc.. I want these stats to show on their Profiles, under their posts, and some other places around my forum / website.
If anyone can help me out with this by either making one for me for a fee or by telling me where I can get one done / installed, it would be greatly appreciated. Thanks
Are you sure you want to delete this post?
Are you sure you want to delete this post?
I have never worked with phpBB before
Are you sure you want to delete this post?
jakemadness
[php]
$gamer_tag = 'xXjakemadnessXx';
$data = json_decode(file_get_contents("http://www.xboxleaders.com/api/profile.json?gamertag={$gamer_tag}"), true);
[/php]
And then grab the needed data like below.
[php]
echo 'gamer score - current: ' . $data['gamerscore']['current'];
echo 'gamer score - total: ' . $data['gamerscore']['total'];
echo 'achievements - current: ' . $data['achievements']['current'];
echo 'achievements - total: ' . $data['achievements']['total'];
[/php] If you know a bit about how to handle Json you could use this API. [php] $gamer_tag = 'xXjakemadnessXx'; $data = json_decode(file_get_contents("http://www.xboxleaders.com/api/profile.json?gamertag={$gamer_tag}"), true); [/php] And then grab the needed data like below. [php] echo 'gamer score - current: ' . $data['gamerscore']['current']; echo 'gamer score - total: ' . $data['gamerscore']['total']; echo 'achievements - current: ' . $data['achievements']['current']; echo 'achievements - total: ' . $data['achievements']['total']; [/php]
Are you sure you want to delete this post?