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!


Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default Habbo LIVE Image

    I worked that I need to crop the live Habbo image before it is shown on the page..

    Code:
     
    php: 
    <? 
     
    if($_GET[habboname]) { 
    // If the URL is search_habbo.php?habboname=habboname 
    echo("<img src=\"http://www.habbohotel.co.uk/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir=3&h_2_name=0&h_2_frame=5&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=50&name_1_txt=$_GET[habboname]&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=right&h_1_name=$_GET[habboname]&h_1_frame=0&h_1_y=0&h_1_x=0&overlay=&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=&bkgY=-95&bkgX=-39&bkgColor=ffffff&picH=300&picW=65&quality=5&img-format=png&xml-template=imageCreator_1_name\">"); 
    }elseif(!$_POST[submit]) { 
    echo(" 
    <form method=\"POST\"> 
    Your Habbo Name: <input type=\"text\" name=\"habboname\" value=\"$_GET[habboname]\"> 
    <br><br> 
    <input type=\"submit\" name=\"submit\" value=\"Search\"></form> 
    "); 
    }else{ 
    $habbo = $_POST[habboname]; 
    if($habbo == NULL) { 
     
    echo("You did not enter a Habbo name"); 
     
    }else{ 
     
    echo(" 
    <img src=\"http://www.habbohotel.co.uk/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir=3&h_2_name=0&h_2_frame=5&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=50&name_1_txt=$habbo&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=right&h_1_name=$habbo&h_1_frame=0&h_1_y=0&h_1_x=0&overlay=&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=&bkgY=-95&bkgX=-39&bkgColor=ffffff&picH=300&picW=65&quality=5&img-format=png&xml-template=imageCreator_1_name\"> 
    "); 
     
    } 
    } 
    ?>
    Is there any way you can submit this into the code somewhere? It would cut off the bottom section:

    could I use css to style a div and save server resources?


    Code:
    Code:
    .cropped { width:200px; height:200px; background: url(http://example.com/foo.jpg) no-repeat;}
    bomb-head (forum moderator) - Moved to coding, please post in the correct forum.
    Last edited by Bomb-Head; 30-10-2006 at 02:04 PM.

  2. #2
    Join Date
    May 2006
    Location
    Cymru
    Posts
    2,157
    Tokens
    2,925

    Latest Awards:

    Default

    Kool +REP

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default

    dunno, i'v bin searching ages for something that will do that. Lemme know if you find out, Thanks

    + REP for a gud job so far!
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

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

    Latest Awards:

    Default

    U got transparent background?

  5. #5
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    lol, this thread is an example of people not knowing how to read...

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

    Latest Awards:

    Default

    I know! I ask for help and I get WOW +REPZ!

    Oh well, +reps for me. Still need help merging them.

Posting Permissions

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