PDA

View Full Version : Find out what a Habbo looks like - code.



Hitman
17-09-2006, 02:35 PM
Hey, me and some other HabboxForum members (Ryannnnn and Organised and some others [sorry can't remember names :(]) found out how to make the habbos wave or smile etc.

Well, I put it all together in a code. The other thread is here btw: http://habboxforum.com/showthread.php?t=225112

Preview of code (With css): http://team-x-labs.net/testin/form.html

This one has no css. PM me if you want it, and what colours etc.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Find a Habbo!</title>
</head>

<body>
<form action="habbo.php" method="post"><br />
Enter Habbo Name: <input type="text" name="name" />
<br /><br />
Face:
<br />
None: <input type="radio" value="nrm" name="face" /><br />
Smile: <input type="radio" value="sml" name="face" /><br />
Sad: <input type="radio" value="sad" name="face" /><br />
Angry: <input type="radio" value="agr" name="face" />
<br /><br />
Other:
<br />
Stand: <input type="radio" value="std" name="arm" /><br />
Wave: <input type="radio" value="wav" name="arm" /><br />
Sitting: <input type="radio" value="sit" name="arm" />
<br /><br />
Position:
<br />
Facing left: <input type="radio" value="4" name="position" /><br />
Facing right: <input type="radio" value="2" name="position" /><br />
Facing center: <input type="radio" value="3" name="position" /><br />
<br />
<input type="submit" value="Submit!" name="submit" />
</form>
</body>
</html>

Save this file as form.html


<?php
$name = $_POST['name'];
$face = $_POST['face'];
$arm = $_POST['arm'];
$position = $_POST['position'];
if ($name == null|$face == null|$arm == null|$position == null){
echo "You missed something!";
} else {
echo "$name looks like: <br> <img src=\"http://www.habbohotel.co.uk/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir=3&h_2_name=0&h_2_frame=5&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=50&name_1_txt=$name&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=$position&h_1_name=$name&h_1_frame=0&h_1_gesture=$face&h_1_action=$arm&h_1_y=0&h_1_x=0&overlay=&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=&bkgY=-95&bkgX=-39&bkgColor=ffffff&picH=300&picW=65&quality=5&img-format=png&xml-template=imageCreator_1_name\"><br> If no image shows, the Habbo doesn't exist!";
}
?>
Save this as habbo.php

The only thing I want in return is for you to link people to this thread if they also want it. Oh, and rep wouldn't hurt :p If you want.

Have fun.

- Tom.

uber
17-09-2006, 02:37 PM
Thanks +rep

Hitman
17-09-2006, 02:38 PM
No problem and thanks ;)

Stitch
17-09-2006, 02:38 PM
Thanks +rep
I tested it and i clicked wave and sitting and it came up as stand and wave

brandon
17-09-2006, 02:41 PM
Well when I try yours

And I do angry face, sitting. It says

You missed something!

Hitman
17-09-2006, 02:41 PM
Thanks for telling me, try the code above now, i fixed it.

uber
17-09-2006, 02:45 PM
can u post the css file so we can edit the hex codes please?

Hitman
17-09-2006, 02:46 PM
Yeah, I will just re-make it, I overwrote it by mistake xD


<style>
<!--
{
color: #781351;
background: #fee3ad;
border: 1px solid #781351;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
input
{
color: #000;
background: #ffa20f;
border: 2px outset #d7b9c9;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
-->
</style>

Put that above the </head> tag.

uber
17-09-2006, 02:46 PM
ok thanks

RYANNNNN
17-09-2006, 02:47 PM
omg dont rep him rep us all tehe.

Hitman
17-09-2006, 02:48 PM
omg dont rep him rep us all tehe.

Yeah, rep us all ;)

We didn't manage to get it transparent though :(

VersionUpdate
17-09-2006, 02:51 PM
Wicked :)
Plus rep matey

uber
17-09-2006, 02:52 PM
omg dont rep him rep us all tehe.

Ok Done

Hitman
17-09-2006, 02:52 PM
Thanks.

Now I can try and make it smaller, get rid of the "preview" text and transparent.

brandon
17-09-2006, 02:55 PM
omg dont rep him rep us all tehe.
omg don't ask for rep.

RYANNNNN
17-09-2006, 03:10 PM
I did nothing of the sort! ;p

RyanS
17-09-2006, 04:02 PM
Its really good well done people.

Tom go on MSN NOWWWWW.

Dentafrice1
17-09-2006, 07:52 PM
Check out my new thread and my other one :)

RYANNNNN
17-09-2006, 08:05 PM
Check out my new thread and my other one :)

Dude shutup and stop bragging.

Want to hide these adverts? Register an account for free!