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 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default Bored Again. Another random PHP signature

    Yes, it's Tim's bored time again! This time I made a random signature that gets whether it is AM and displays accordingly

    If you want it the URL is http://www.lolz.co.uk/greetings/bar.php. If you wanna host it yourself/customize it, here is the code:

    PHP Code:
    <?php
    header
    ("Content-type: image/png");
    $am_pm date('a');
    if (
    $am_pm == "am")
    $message "Good morning!";
    else {
    $message "Good evening!";}
    $im imagecreatefrompng("template.png");
    $textcolour imagecolorallocate($im000);
    $font "verdana.ttf";
    imagettftext($im100$x$y$textcolour$font$message); 
    imagepng($im);
    ?>
    You'll need to upload your template file and the verdana font file.



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  2. #2
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    Cool but how you ad dit into your siggy :S

    EDIT: found out
    Last edited by Flisker; 05-03-2006 at 05:32 PM.
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  3. #3
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    It's just an image Put it like you would a normal image!



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


  4. #4
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    thanks

    Id love to learn PHP ive been trying for ages -.-
    Last edited by Flisker; 05-03-2006 at 05:34 PM.
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  5. #5
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    lol its great i dont know how 2 do this stuff why not make a tutorial
    EDTALKING


  6. #6
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by DJ-Zero
    lol its great i dont know how 2 do this stuff why not make a tutorial
    Learn basic PHP and how to use the image editing functions; then just create a message which defines evening or morning, which is as easy as:
    PHP Code:
    $msg 'Good morning.';
    if (
    date('a')!='am'$msg 'Good evening.'
    kinda quit.

  7. #7
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    well i'm rubbish at that coz i just cant take it in
    EDTALKING


  8. #8
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Hey I stole all your files and it wont work, it says error on line 11

    and nor duz ur othr cool 1 can u zip them and upload the zips of all the things needed?

    also is it possible to do:

    Good Morning
    Bon Appetit (for lunchtime)
    Good Afternoon
    Good Evening
    Good Night
    Last edited by :Edzy; 05-03-2006 at 07:11 PM.
    EDTALKING


  9. #9
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by DJ-Zero
    Hey I stole all your files and it wont work, it says error on line 11

    and nor duz ur othr cool 1 can u zip them and upload the zips of all the things needed?

    also is it possible to do:

    Good Morning
    Bon Appetit (for lunchtime)
    Good Afternoon
    Good Evening
    Good Night
    Perhaps it's because he didn't declare two of the variables (x and y)? I can't test that theory as I've got an old version of PHP on this computer.
    kinda quit.

  10. #10
    Join Date
    Dec 2005
    Posts
    1,733
    Tokens
    201
    Habbo
    Bomb-Head

    Latest Awards:

    Default

    hah nice.

Page 1 of 2 12 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
  •