avatarimage.php - help

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Hey!

I am wanting to include my own avatarimage.php in my files (if you don't know what it is, it's what catches your avatars).

If you still don't get it the link looks like this

http:/game.boon.pw/habbo-imaging/avatarimage.php?figure=figure=ea-1404-110.lg-270-110.hr-28021715-1394.ch-3077-110-110.wa-2001-63.hd-3092-1.sh-3524-110-110.cc-3075-110.&gesture=sml

Anyone out there can help me?
 

Zaka

Programmer
Feb 9, 2012
471
121
Basically what you do is requesting the same image from that link, and then just get the file contents, and set the header, I can provide an example a bit later, just came home from work
 
avatarimage.php
PHP:
if (isset($_GET['figure']))
{
    $look = $_GET['figure'];
    
    if (isset($_GET['headonly']))
    {
        $head = $_GET['headonly'];
        $image = "http://drome.biz/avatar/avatarimage.php?figure={$look}&direction=2&action=wav&gesture=sml&head_direction=3&headonly={$head}";
        $imageData = file_get_contents($image);
        header('Content-type: image/png');
        echo $imageData;
    }
    else
    {
        $image = "http://drome.biz/avatar/avatarimage.php?figure={$look}&direction=2&action=wav&gesture=sml&head_direction=3";
        $imageData = file_get_contents($image);
        header('Content-type: image/png');
        echo $imageData;
    }
}
else
{
    echo 'The variable is not filled in ( ?figure= )';
}
 

Central

Imagination is more important than knowledge.
Feb 22, 2015
709
107
Basically what you do is requesting the same image from that link, and then just get the file contents, and set the header, I can provide an example a bit later, just came home from work
 
avatarimage.php
PHP:
if (isset($_GET['figure']))
{
    $look = $_GET['figure'];
   
    if (isset($_GET['headonly']))
    {
        $head = $_GET['headonly'];
        $image = "http://drome.biz/avatar/avatarimage.php?figure={$look}&direction=2&action=wav&gesture=sml&head_direction=3&headonly={$head}";
        $imageData = file_get_contents($image);
        header('Content-type: image/png');
        echo $imageData;
    }
    else
    {
        $image = "http://drome.biz/avatar/avatarimage.php?figure={$look}&direction=2&action=wav&gesture=sml&head_direction=3";
        $imageData = file_get_contents($image);
        header('Content-type: image/png');
        echo $imageData;
    }
}
else
{
    echo 'The variable is not filled in ( ?figure= )';
}

I copied the code and replaced the url drome.biz to my url is that what i should have done or not?

If so i go to this link:



and it just comes up with a blank white screen.
 


Skickat från min FRD-L09 via Tapatalk

Your way sucks, not trying to be such horrible but that doesn't answer my question nor does it help, I've looked and nothing pops up, it only has stuff for groups.
 

Zaka

Programmer
Feb 9, 2012
471
121
I copied the code and replaced the url drome.biz to my url is that what i should have done or not?

If so i go to this link:



and it just comes up with a blank white screen.
 


Your way sucks, not trying to be such horrible but that doesn't answer my question nor does it help, I've looked and nothing pops up, it only has stuff for groups.
Make sure you didn't delete the {$code} part in the url, because thats a PHP variable. Then the rest is correct almost. You don't add a gesture, because the gesture is already set in the avatarimage.php file.
 

Zaka

Programmer
Feb 9, 2012
471
121
Basically you just save that in a file, change the url to something that works, and then you use your own domain when getting the images even tho they are actually being retrieved from another server
 

Users who are viewing this thread

Top