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 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Egg Script

  1. #11
    Ryan. Guest

    Default

    Tyvm Ash ..

    When Eddy comes on i'll tell him and he can crack it lol. +rep

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

    Latest Awards:

    Default

    Quote Originally Posted by Ryan. View Post
    Tyvm Ash ..

    When Eddy comes on i'll tell him and he can crack it lol. +rep
    Ily, run out of rep today but will tomoz


    Ash does that make it an image thennn coz i.. ****, you need gd and my host isnt :@
    Last edited by :Edzy; 06-04-2007 at 03:22 PM.
    EDTALKING


  3. #13
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    Just upload 2 separate images
    1 for easter sunday and one for the days upto then


  4. #14
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis => "Sunday, April 8, 2007") {
    echo 
    "<img src=\"image.gif\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"image.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    If its Easter Sunday, or after it shows the image of the egg. Just drompo's code btw.


    You don't like me
    Chances are I don't like you.

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

    Latest Awards:

    Default

    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis => "Sunday, April 8, 2007") {
    echo 
    "<img src=\"me+egg.png">"; //Image that appears on Easter Sunday
    } else {
    echo "
    <img src=\"egg.gif">"; //Image that will appear before easter Sunday
    }
    ?>
    C'est une probleme
    EDTALKING


  6. #16
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    PHP Code:
     <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis => "Sunday, April 8, 2007") {
    echo 
    "<img src=\"me+egg.png\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"egg.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    You were missing the backslash before the quotes on the 2nd image


  7. #17
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Quote Originally Posted by Drompo View Post
    Simple PHP
    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis == "Sunday, April 8, 2007") {
    echo 
    "<img src=\"image.gif\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"image.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    Thanks! +rep if i can.

    Edit: DAM AND BLAST! Need to spread! Sorry!

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

    Latest Awards:

    Default

    Quote Originally Posted by Drompo View Post
    PHP Code:
     <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis => "Sunday, April 8, 2007") {
    echo 
    "<img src=\"me+egg.png\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"egg.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    You were missing the backslash before the quotes on the 2nd image
    Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/edneely/public_html/egg/egg.php on line 3
    EDTALKING


  9. #19
    Join Date
    Jul 2006
    Location
    Athens
    Posts
    842
    Tokens
    0

    Default

    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis "Sunday, April 8, 2007") {
    echo 
    "<img src=\"me+egg.png\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"egg.gif\">"//Image that will appear before easter Sunday
    }
    ?>


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

    Latest Awards:

    Default

    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis "Sunday, April 8, 2007") {
    echo 
    "<img src=\"me+egg.png\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"egg.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    that shows the egg

    but when i change to show the other pic today

    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis "Friday, April 6, 2007") {
    echo 
    "<img src=\"me+egg.png\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"egg.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    It wont work
    EDTALKING


Page 2 of 3 FirstFirst 123 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
  •