Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33
  1. #11
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    HTML Code:
    <html>
    <head>
    <title>What does your Habbo look like?</title>
    </head>
    <body>
     
    <form action="habbo.php" method="post">
    Enter Habbo Name: <input type="text" name="name" /><br />
    <br /><input type="submit" name="submit" value="Submit" />
    <br /><br />
    </body>
    </html>
    habbo.php

    PHP Code:
    <? 
    header
    ("Content-Type: image/gif"); 
    $thumbWidth "60"
    $thumbHeight "120"
    $name $_GET[name]; 
    $url "www.morningsunshine.net/habbo.php?name=$name
    "

    $srcImg imagecreatefrompng($url); 
    $origWidth imagesx($srcImg);  
    $origHeight imagesy($srcImg);   
    $thumbImg imagecreate($thumbWidth$thumbHeight); 
    imagecopyresized($thumbImg$srcImg0000$thumbWidth$thumbHeightimagesx($thumbImg), imagesy($thumbImg)); 
    $ImgWhite imagecolorallocate($thumbImg255255255); 
    imagefill($thumbImg00$ImgWhite); 
    imagecolortransparent($thumbImg$ImgWhite); 
    imagegif($thumbImg); 
    imagedestroy($thumbImg); 
    ?>

    There ya go boyo

  2. #12
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    I love you. (lolz)

    I already +Repped.. )::

  3. #13
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    I love u too lol!

  4. #14
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    OMGZ the php code buggered up.

    www.morningsunshine.net/form.html

    I checked, it's nothing to do with how I changed the bg and stuff. I made a non edited version. Check it out !

  5. #15
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    HTML Code:
    <html>
    <head>
    <title>What does your Habbo look like?</title>
    </head>
    <body>
     
    <form action="habbo.php" method="post">
    Enter Habbo Name: <input type="text" name="name" /><br />
    <br /><input type="submit" name="submit" value="Submit" />
    <br /><br />
    </body>
    </html>
    habbo.php

    PHP Code:
    <? 
    header
    ("Content-Type: image/gif"); 
    $thumbWidth "60"
    $thumbHeight "120"
    $name $_POST[name]; 
    $url "http://www.morningsunshine.net/habbo.php?name=$name
    "

    $srcImg imagecreatefrompng($url); 
    $origWidth imagesx($srcImg);  
    $origHeight imagesy($srcImg);   
    $thumbImg imagecreate($thumbWidth$thumbHeight); 
    imagecopyresized($thumbImg$srcImg0000$thumbWidth$thumbHeightimagesx($thumbImg), imagesy($thumbImg)); 
    $ImgWhite imagecolorallocate($thumbImg255255255); 
    imagefill($thumbImg00$ImgWhite); 
    imagecolortransparent($thumbImg$ImgWhite); 
    imagegif($thumbImg); 
    imagedestroy($thumbImg); 
    ?>

    Try that mate
    Last edited by Jackboy; 01-11-2006 at 05:57 PM.

  6. #16
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    Okay ill have a go!

  7. #17
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    good luck

    EDIT: I HAVE EDITED MY LATEST SCRIPT POST UP THERE.
    Last edited by Jackboy; 01-11-2006 at 05:57 PM.

  8. #18
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jackboy View Post
    HTML Code:
    <html>
    <head>
    <title>What does your Habbo look like?</title>
    </head>
    <body>
     
    <form action="habbo.php" method="post">
    Enter Habbo Name: <input type="text" name="name" /><br />
    <br /><input type="submit" name="submit" value="Submit" />
    <br /><br />
    </body>
    </html>
    habbo.php

    PHP Code:
    <? 
    header
    ("Content-Type: image/gif"); 
    $thumbWidth "60"
    $thumbHeight "120"
    $name $_POST[name]; 
    $url "http://www.morningsunshine.net/habbo.php?name=$name
    "

    $srcImg imagecreatefrompng($url); 
    $origWidth imagesx($srcImg);  
    $origHeight imagesy($srcImg);   
    $thumbImg imagecreate($thumbWidth$thumbHeight); 
    imagecopyresized($thumbImg$srcImg0000$thumbWidth$thumbHeightimagesx($thumbImg), imagesy($thumbImg)); 
    $ImgWhite imagecolorallocate($thumbImg255255255); 
    imagefill($thumbImg00$ImgWhite); 
    imagecolortransparent($thumbImg$ImgWhite); 
    imagegif($thumbImg); 
    imagedestroy($thumbImg); 
    ?>

    Try that mate
    Anyone can do that with 2 lines of code.

  9. #19
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    Nooope!

    <br />
    <b>Warning</b>: imagecreatefrompng(http://www.morningsunshine.net/habbo.php?name=Huddle
    ): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
    in <b>/home/morning/public_html/habbo.php</b> on line <b>8</b><br />
    <br />
    <b>Warning</b>: imagesx(): supplied argument is not a valid Image resource in <b>/home/morning/public_html/habbo.php</b> on line <b>9</b><br />
    <br />
    <b>Warning</b>: imagesy(): supplied argument is not a valid Image resource in <b>/home/morning/public_html/habbo.php</b> on line <b>10</b><br />
    <br />
    <b>Warning</b>: imagecopyresized(): supplied argument is not a valid Image resource in <b>/home/morning/public_html/habbo.php</b> on line <b>12</b><br />
    GIF89a<x€&#255;&#255;&#255;!&#249;,<x^„&#169;&#20 3;&#237;&#163;œ&#180;&#218;‹&#179;&#222;&#188;&#25 1;†&#226;H–&#230;‰&#166;&#234;&#202;&#182;&#238;&# 199;&#242;L&#215;&#246;&#231;&#250;&#206;&#247;&# 254;
    ‡&#196;&#162;&#241;ˆL*—&#204;&#166;&#243; J&#167;&#212;&#170;&#245;Š&#205;j&#183;&#220;&#17 4;&#247;‹&#199;&#228;&#178;&#249;ŒN&#171;&#215;&#2 36;&#182;&#251;
    &#203;&#231;&#244;&#186;&#253;Ž&#207;&#235;&#247; &#192;;


    I got that. Oh wait, something has worked as it has put http://www.morningsunshine.net/habbo.php?name=Huddle

    But its broken it loool! Just edit it like my starting thread post.
    Last edited by Kymux; 01-11-2006 at 06:06 PM.

  10. #20
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    the problem there is its trying to create a PNG from a php file.

    Get the direct habbo url?

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

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