Results 1 to 6 of 6
  1. #1

    Default Need Help With Status Sig Script?

    Hey... I have just installed a Habbo Status Sig script on my site. It works fine but the only problem is the image won't show. I know it has something to do with a code(forget the name of the file) but I took a look at the php last night and it gave me something like

    GET=profile.PNG or soemthing like that but the profile is a psd and it is also not in the upload folder. anyway here is the code:

    PHP Code:
    <?php
    header
    ("Content-type: image/png");
    include (
    'habboClass.php');
    $habbo $_GET['name'];
    //Data Retrieval
    $habboHome = new habboClass($habbo'com.au');
    if (
    $habboHome->banned())
    {
        
    $im imagecreatefrompng("banned.png");
    }
    elseif (
    $habboHome->pageprivate())
    {
        
    $im imagecreatefrompng("private.png");
    }
    elseif (!
    $habboHome->actual())
    {
        
    $im imagecreatefrompng("exist.png");
    }
    else
    {
        
    $im imagecreatefrompng("profile.png");
        
    $white imagecolorallocate($im255255255);
        
    $fontbold "volterb.ttf";
        
    $font "volter.ttf";
        
    imagettftext($im70103.528.5$white$fontbold"Name:");
        
    imagettftext($im70149.528.5$white$font$habboHome->name());
        
    $habboMotto $habboHome->motto();
        
    $habboMotto eregi_replace("&gt;"">"$habboMotto);
        
    $habboMotto eregi_replace("&lt;""<"$habboMotto);
        
    imagettftext($im70103.558.5$white$fontbold"Motto:");
        
    imagettftext($im70149.558.5$white$font$habboMotto);
        if (
    $habboHome->online())
        {
            
    $statusText "Online";
        }
        else
        {
            
    $statusText "Offline";
        }
        
    imagettftext($im7024089$white$fontbold"Status:");
        
    imagettftext($im7029089$white$font$statusText);
        
    $habboFigure $habboHome->figure();
        
    $habboFigure imagecreatefromgif($habboFigure);
        
    imagecopy($im$habboFigure1618.50064106);
    if(
    $habboHome->badge()){
        
    $habboBadge $habboHome->badge();
        
    $habboBadge imagecreatefromgif($habboBadge);
        
    $halfBadgeX imagesx($habboBadge) / 2;
        
    $halfBadgeY imagesy($habboBadge) / 2;
        
    $centerX 127.5 $halfBadgeX;
        
    $centerY 110.5 $halfBadgeY;
        
    imagecopy($im$habboBadge$centerX$centerY00imagesx($habboBadge),
            
    imagesy($habboBadge));
    if(
    $habboHome->groupbadge()){
        
    $habboBadge $habboHome->groupbadge();
        
    $habboGBadge imagecreatefromgif($habboBadge);
        
    $halfGBadgeX imagesx($habboGBadge) / 2;
        
    $halfGBadgeY imagesy($habboGBadge) / 2;
        
    $centerX 193.5 $halfGBadgeX;
        
    $centerY 110.5 $halfGBadgeY;
        
    imagecopy($im$habboGBadge$centerX$centerY00imagesx($habboGBadge),
            
    imagesy($habboGBadge));
     
    }
    }
    }
    //Create Image
    imagepng($im);
    imagedestroy($im);
    ?>



  2. #2
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    It won't work with a psd, it has to be png.

  3. #3
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    First of all for the script to work your host must have both the Freetype and GD Library scripts enabled.
    Secondly, I believe you haven't installed the .htaccess file which changes the url with the mod-rewrite function, making the path to the image/file incorrect .

  4. #4

    Default

    @ Trinity: That's what I thought.
    @ss the .htacess is installed.

  5. #5
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Masterfood680 View Post
    @ Trinity: That's what I thought.
    @ss the .htacess is installed.
    GD, not HTAACCESS - their two different things.

    Yes but you haven't installed GD?!

  6. #6

    Default

    Would you mind teklling me the difference, I believe this is turned on by defauklt if not how Can I turn it on?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •