Bungie.net Community
This topic has moved here: Subject: Display H2 gamertag emblems on your website (PHP)
  • Subject: Display H2 gamertag emblems on your website (PHP)
  • Pages:
  • 1
  • 2
  • of 2
Subject: Display H2 gamertag emblems on your website (PHP)
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

I wrote this script for someone who requested it and I thought a few other people might want to use it. It's a simple PHP script that allows you to display the H2 emblem associated with a gamertag. The source is available here: http://www.axcs.org/stats/src/emblem.text . Save this file and put it on your server somewhere (be sure to rename it to end with .php).

Then you can view gamertags by calling the script as an image, like this
<img src='emblem.php?gt=brokenwatch'>

You can also adjust the size like this:
<img src='emblem.php?gt=brokenwatch&s=200'>

Here's an example:
http://www.axcs.org/stats/test.html

Hope someone finds this useful (and that this is the right forum).

  • 01.24.2005 7:29 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Interesting. This may be of some use. I'll be sure to give it a try.

  • 01.25.2005 2:05 AM PDT

Tom Achronos
Bungie.net Overlord
twitter: http://twitter.com/Achronos

"I have no words that would do justice to the atrocities you commit to the English language, as well as your continued assaults on the concepts of basic literacy and logical reasoning."

Please be aware that it is not unlikely that we will prevent the emblem code from serving requests to outside servers in the future as performance is very important to us. If you really want your emblem elsewhere than bungie.net, right click it and hit save as, don't use the dynamic version.

  • 01.25.2005 2:46 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

I updated the script to cache the image. Just create a writable directory named cache wherever you put emblem.php. The script will only download the dynamic version the first time. If you want it to update periodically, schedule a cron job to empty the cache folder once a month or so.

  • 01.25.2005 8:19 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Great script - I'm likely going to use it on the clan site I'm building if I don't make everyone just copy their own logo. Unfortunately, if you turn off the background of your emblem, it doesn't remove it on bungie.net (i.e. remove the circle from behind the Runes, and the circle still shows on bungie.net). Still, very worth while.

  • 01.26.2005 12:28 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Awesome!!

  • 01.26.2005 1:51 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

I'm not very computer savvy, so i dont know if you've already answered this. (can barely understand "computer language") Anyway, i was wondering if i can make my AVATAR emblem my halo 2 GAMERTAG emblem. IF you have answered this, please repost in, i guess you could call it .....Gamertag emblem linking for dummies... format.

(dont bust me if this is on the wrong thread plz)

Thank you (if in fact i get a reply)

[Edited on 1/27/2005 4:07:40 PM]

  • 01.27.2005 4:05 PM PDT
  • gamertag: [none]
  • user homepage:

Go to: "My Settings"

Followed by "Avatar"

Click on the box that allows you to change your regular avatar to your Halo 2 emblem.

  • 01.27.2005 5:25 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Thank you

  • 01.27.2005 6:07 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

very cool, brokenwatch...like your site too btw.

  • 01.29.2005 8:46 AM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Is this code still working or did Achronos kill it?

  • 02.11.2005 11:49 AM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

i love you

  • 02.11.2005 8:23 PM PDT
Subject: Easier Way
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Just copy and paste the picture onto your site. Much easier and saves bungie unneeded hits which could cause bungie to slow down for the people who are actually on it and not some mooching site :P

  • 02.12.2005 5:10 AM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Posted by: Dark Toxic Attac
Just copy and paste the picture onto your site. Much easier and saves bungie unneeded hits which could cause bungie to slow down for the people who are actually on it and not some mooching site :P


The script only downloads the image *once* off of Bungie's servers, and then hosts it on yours. Just like if you downloaded it off Bungie's site and put it on your own website. And this is not for you displaying one emblem, it is designed for people making a community site that want to display other people's emblems, but might not know the gamertag in advance.

Smiley, yep, still working.

  • 02.12.2005 6:51 AM PDT
Subject: Display H2 gamertag emblems on your website (PHP)
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

That is very interesting, thanks for sharing. ;D

  • 02.12.2005 10:11 AM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

does this still work?

  • 03.29.2005 5:12 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

cause I wanted to know if it still works cause its exactly what I want for my website....SHEEZ!

  • 03.29.2005 5:49 PM PDT

I couldn't make it to work.

let me know if I did something wrong. here's what I did:

I copy paste the script, name it "emblem.php". then create a html document with the <img src='emblem.php?gt=op4%20latino' alt="op4 latino"> sentece and others with different gamertags. Next, uploaded both file whithin the same directory to my website. finally, created a directory "cache" in the same directory that the php and html are.

or isn't working anymore?

  • 04.24.2005 9:54 PM PDT

Does your host support PHP?

  • 04.25.2005 12:39 AM PDT

oh, I see. Probably no. Thanks.

  • 04.25.2005 1:07 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

Sorry to bring back such an old post, but I keep getting the "Failed to connect to network error" - did bungie block incomming singals from grabbing the images, or am I doing something wrong?

  • 06.03.2005 1:11 PM PDT

Only Becausae I'm Awesome

Forum Tutorials --- WATCH THEM AND LEARN

Well if you had of read achronos' post aswell (the one in gold), you would know.

  • 06.03.2005 5:34 PM PDT
  • gamertag:
  • user homepage:
  • last post: 01.01.0001 12:00 AM PDT

It's still possible to do. You need a bunch more code, though, and I doubt anyone here has that readily available.

  • 06.03.2005 5:36 PM PDT

  • Pages:
  • 1
  • 2
  • of 2