Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

In Stackoverflow, the user called mellamokb use Towers of Hanoi problem on his profile. Looks like he used some JavaScript or something. Looks like he built this game for himself. But I want to ask, is there any game we can use on our profile page?

enter image description here

share|improve this question
O.O How did he do that? We can have JavaScript in our profiles? Sounds like a security risk. – Rocket Hazmat Jan 15 '13 at 20:14
@RocketHazmat It's just a trick with referrer strings and a script-generated image. – Tim Stone Jan 15 '13 at 20:15
@TimStone: HAX! That's awesomely clever :-) – Rocket Hazmat Jan 15 '13 at 20:21
Related: Create a User-Profile Mini-Game (But Shog9 is right!) – Arjan Jan 15 '13 at 20:25
up vote 27 down vote accepted

That user played something clever with image tags:

<h2>Towers of Hanoi</h2>

<p><img src="""" />
<a href=""""><img src="""" /></a>
<a href=""""><img src="""" /></a>
<a href=""""><img src="""" /></a>
<a href="""">Reset</a></p>

The hanoi.php script probably looks at the referrer header when your browser loads the images and generates images based on the query string on his own profile URL, plus a PHP session cookie.

The owner of that profile challenged others to create their own, resulting in a few more pretty cool cookie+image+referrer-parsing images.

None of these are in any way official.

share|improve this answer
That is an awesome hack! Now to make my own! TO THE PHP CAVE! – Rocket Hazmat Jan 15 '13 at 20:22
Another user did have a snazzy tic-tak-toe game in his profile, but he replaced it with boring text. @Soner, it's a site for programmers - show off your skills by writing your own! – Shog9 Jan 15 '13 at 20:22
Yes, 6 no less, @Soner ;-) – Arjan Jan 15 '13 at 20:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .