UberCMS - Imager - [ADDON]
Do you hate it when Habbo is off line ?
You think its your fault no one can see what their Habbo looks like.
Well I have a solution !!
This is a complicated PHP script that is exactly like Habbo has (that http://www.habbo.com/habbo-imaging/avatarimage)
Also this one has another feature.
It will check your database for the looks, So all you have to put in the url is "YourSite.com/avatarimage?name=Beny.
I have worked with PHP graphics before, But this one I think will blow you away.
RELEASE DATE: 15 January 2011
Thank you for reading, If you want any updates or stuff comment.
Re: UberCMS - Imager - [ADDON]
What sort of experience do you actually have in advanced coding like this?
I was actually planning to make my own literally an hour ago after a few of the processed avatars came back with their trousers not on the figure itself, this is common for custom clothing but none of the clothing is custom yet it's just a random glitch, to fix this would be brilliant.
Re: UberCMS - Imager - [ADDON]
@Ryno
I have done user bars for forums that find the user-name and their "Message" and it will automaticly put it in.
ALSO
I made one with my old website where you could have accounts and choose different characters.
Re: UberCMS - Imager - [ADDON]
Well that sounds good, I am creating a habbo imager for PHPRetro and a new RP hotel that will be released soon, only for the custom clothing to be introduced without avatars going blank!
Re: UberCMS - Imager - [ADDON]
Cool, I will be releasing a PHPRetro and holo version in mine. And also in mine you can add custom clothing.
Re: UberCMS - Imager - [ADDON]
The only reason I would say yours is not a PHPRetro worthy imager is the fact of all the extra clothing it holds although a few edits can solve that easily!
Re: UberCMS - Imager - [ADDON]
Re: UberCMS - Imager - [ADDON]
Nice release. Why so long?
Re: UberCMS - Imager - [ADDON]
Sounds good, goodluck.
Cya'
Re: UberCMS - Imager - [ADDON]
Quote:
Originally Posted by
Beny.
I dont understand :s: ??
You said it will be for PHPRetro as well as UberCMS, but Uber caters for the new .swf looks as well as the old .cct looks. PHPRetro is not compatible with Uber as a server and CMS so if your imager holds all the images to the .swf they will be useless to the user although I guess without the correct database side code it wouldn't show anyway but I don't know how Uber imaging works never even looked at that server :/
Re: UberCMS - Imager - [ADDON]
LOL NOOB!!!
I already made this a while ago:
PHP Code:
<?php
// Function that Creates the avatar
function CreateAvatar($figure, $direction, $head_direction, $gesture, $action, $size)
{
$url = "http://www.habbo.nl/habbo-imaging/avatarimage?figure=".$figure."&direction=".$direction."&head_direction=".$head_direction."&action=".$action."&gesture=".$gesture."&size=".$size;
$i = file_get_contents($url);
$f = fopen("../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png","a+");
fwrite($f,$i);
fclose($f);
}
// Function that Shows the avatar
function ShowAvatar($figure, $direction, $head_direction, $gesture, $action, $size)
{
$file = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
$i = file_get_contents($file);
echo $i;
}
// Checking shit
if(isset($_GET['figure']))
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$file = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
if (file_exists($file))
{
header("Content-type: image/png");
ShowAvatar($figure, $direction, $head_direction, $gesture, $action, $size);
}
else
{
header("Content-type: image/png");
CreateAvatar($figure, $direction, $head_direction, $gesture, $action, $size);
ShowAvatar($figure, $direction, $head_direction, $gesture, $action, $size);
}
}
?>
Make a directory called "habbo-imaging" and save this PHP file as avatarimage.php
Make another directory called "cache" and inside that directory create a directory called "avatars".
And add this in you'r .htaccess:
Code:
RewriteRule ^habbo-imaging/avatarimage$ ./habbo-imaging/avatarimage.php
And eh, Ryno, there's already a habbo-imager inside PHPretro :/
Re: UberCMS - Imager - [ADDON]
Like alwys its pejump2 who mess the thread up..i think he can everything, maybe he fixed one you release? Pejump2noob
Re: UberCMS - Imager - [ADDON]
I didn't fucked this thread up?
I only gave my codes to you guys, And i think you should thank me for that ;)
Re: UberCMS - Imager - [ADDON]
Quote:
Originally Posted by
oleaa
Like alwys its pejump2 who mess the thread up..i think he can everything, maybe he fixed one you release? Pejump2noob
lol
he only give his codes,Faggot-,-
Re: UberCMS - Imager - [ADDON]
Quote:
Originally Posted by
PEjump2
LOL NOOB!!!
I already made this a while ago:
PHP Code:
<?php
// Function that Creates the avatar
function CreateAvatar($figure, $direction, $head_direction, $gesture, $action, $size)
{
$url = "http://www.habbo.nl/habbo-imaging/avatarimage?figure=".$figure."&direction=".$direction."&head_direction=".$head_direction."&action=".$action."&gesture=".$gesture."&size=".$size;
$i = file_get_contents($url);
$f = fopen("../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png","a+");
fwrite($f,$i);
fclose($f);
}
// Function that Shows the avatar
function ShowAvatar($figure, $direction, $head_direction, $gesture, $action, $size)
{
$file = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
$i = file_get_contents($file);
echo $i;
}
// Checking shit
if(isset($_GET['figure']))
{
$figure = $_GET["figure"];
$direction = $_GET["direction"];
$head_direction = $_GET["head_direction"];
$gesture = $_GET["gesture"];
$action = $_GET["action"];
$size = $_GET["size"];
$file = "../cache/avatars/".$direction."-".$head_direction."-".$action."-".$gesture."-".$size."-".$figure.".png";
if (file_exists($file))
{
header("Content-type: image/png");
ShowAvatar($figure, $direction, $head_direction, $gesture, $action, $size);
}
else
{
header("Content-type: image/png");
CreateAvatar($figure, $direction, $head_direction, $gesture, $action, $size);
ShowAvatar($figure, $direction, $head_direction, $gesture, $action, $size);
}
}
?>
Make a directory called "habbo-imaging" and save this PHP file as avatarimage.php
Make another directory called "cache" and inside that directory create a directory called "avatars".
And add this in you'r .htaccess:
Code:
RewriteRule ^habbo-imaging/avatarimage$ ./habbo-imaging/avatarimage.php
And eh, Ryno, there's already a habbo-imager inside PHPretro :/
I think you have this all wrong, your imager works by using Habbo Hotel: Maak vrienden, doe mee en val op!
The thread refers to a method that does not use habbo, therefore your system is not the answer and he is not a "noob" as you so claimed. In fact you could be considered the noob for not understanding something as simple as what he wrote.
You also say there is one built into PHPRetro yet again you have no realised the fact of we are talking about in the download of this file he will release all of the clothing templates will be included unlike the PHPRetro method of using a function to take the images from Habbo.
Just to clarify as you don't seem to understand in the first place I will put it in coding terms.
If ($Habbo == "down")
{
return null;
}
else
{
return $avatarimage;
}
In other words if habbo is down so is your imager code you placed above. Stop trying to be the hero..