Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 45

Thread: $_GET?

  1. #11
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    Quote Originally Posted by Calon View Post
    I know a way without using GD, but it's pretty stupid.
    Nothing's to stupid for me What is it?
    +.net - omg it's coming o_o

  2. #12
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    I'd like to know how to do this too


  3. #13
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    You could always use sIFR - but yeah, you can specify which font you use in GD.

  4. #14
    Join Date
    Jul 2007
    Location
    Scotland
    Posts
    529
    Tokens
    0

    Default

    You could, really stupid way, save each individual letter of Volter font with border in a folder and then replace each input letter with the url to the image.

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

    Latest Awards:

    Default

    Basic GD GET header would look like:
    PHP Code:
    <?php
    header
    ("Content-type: image/png");
    $text htmlspecialchars($_GET['t']);
    $im imagecreatefrompng("images/header_bg.png");
    $font "volterb.ttf";
    $white imagecolorallocate($im255255255);
    imagettftext($im70914$white$font$text);
    imagepng($im);
    imagedestroy($im);
    ?>
    The output will be something like


    But if you want to put a 1px border round the letters it will be much much more complicated.

  6. #16
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    Quote Originally Posted by --ss-- View Post
    Basic GD GET header would look like:
    PHP Code:
    <?php
    header
    ("Content-type: image/png");
    $text htmlspecialchars($_GET['t']);
    $im imagecreatefrompng("images/header_bg.png");
    $font "volterb.ttf";
    $white imagecolorallocate($im255255255);
    imagettftext($im70914$white$font$text);
    imagepng($im);
    imagedestroy($im);
    ?>
    The output will be something like


    But if you want to put a 1px border round the letters it will be much much more complicated.
    Damn, I want the border. lol. Thanks though, this will come in handy. +rep
    Also if you can explain how to do it with a border?:s

    EDIT: Need to spread, in sig.
    Last edited by HabbDance; 30-11-2008 at 09:27 PM. Reason: Need to spread rep.
    +.net - omg it's coming o_o

  7. #17
    Join Date
    Nov 2008
    Posts
    75
    Tokens
    0

    Default

    Here's a simple black border, it's not as thick as the other one though:



    It's just --SS--'s code modified:

    PHP Code:
    <?php
    header
    "Content-type: image/png" );
    $text htmlspecialchars$_GET ['t'] );
    $im imagecreatefrompng"header.png" );
    $font "volterb.ttf";
    $white imagecolorallocate$im255255255 );
    $black imagecolorallocate$im00);

    imagettftext$im70815$black$font$text );
    imagettftext$im70914$black$font$text );
    imagettftext$im701015$black$font$text );
    imagettftext$im70916$black$font$text );

    imagettftext$im70915$white$font$text );

    imagepng$im );
    imagedestroy$im );
    ?>
    ;; Joshua Mingle
    ;; API Developer
    ;; TehUpload

  8. #18
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    Quote Originally Posted by Doritos View Post
    Here's a simple black border, it's not as thick as the other one though:



    It's just --SS--'s code modified:

    PHP Code:
    <?php
    header
    "Content-type: image/png" );
    $text htmlspecialchars$_GET ['t'] );
    $im imagecreatefrompng"header.png" );
    $font "volterb.ttf";
    $white imagecolorallocate$im255255255 );
    $black imagecolorallocate$im00);
     
    imagettftext$im70815$black$font$text );
    imagettftext$im70914$black$font$text );
    imagettftext$im701015$black$font$text );
    imagettftext$im70916$black$font$text );
     
    imagettftext$im70915$white$font$text );
     
    imagepng$im );
    imagedestroy$im );
    ?>
    Thanks so much Worked a charm. +rep. Is there anyway I can make a transparent background though? Because when I tried it simply didn't appear:rolleyes:
    +.net - omg it's coming o_o

  9. #19
    Join Date
    May 2008
    Posts
    605
    Tokens
    0

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

    Latest Awards:

    Default

    Quote Originally Posted by Calon View Post
    PHP Code:
    <?php
    $text 
    $_GET'text' ];
    ?>
    But Calon, $_GET is being deprecated, is it not ?

Page 2 of 5 FirstFirst 12345 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
  •