Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: PHP Help

  1. #1
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default PHP Help

    Hi,

    I have this code which someone made on this forum but there is a problem with it. It grabs your Mission, Name, and Habbo But it does not display it in the correct place.

    http://www.thishabbo.net/trophey/habbo.php?habbo=Lysine

    That is the lnik where you can see it.
    This is the way it's coded :-

    PHP Code:
    <?php 

      $html 
    file_get_contents('http://habbo.co.uk/home/'.$_GET['habbo']); 
      
    $addr 'http://habbo.co.uk/'.preg_replace('/.*re">.*<img alt=".*" src="(.*?)" \/.*/''$1'str_replace("\n"''$html)); 
      
    $mish preg_replace('/.*tto">(.*?)<.*/''$1'str_replace("\n"''$html)); 
      
    ereg(' '$addr) and die; 
      
    $i1 imagecreatefromgif($addr); 
      
    $i2 imagecreatefromgif('pedestal.gif'); 
      
    $c1 imagecolorallocate($i20xFF0xFF0xFF); 
      
    $c2 imagecolorallocate($i20x000x000x00); 
      
    $f1 imageloadfont('voltar.gdf'); 
      
    imagecopymerge($i2$i182, -170060120100); 
      
    imagestring($i2$f180-((strlen($_GET['habbo'])/2)*imagefontwidth($f1)), 101$_GET['habbo'], $c1); 
      
    imagestring($i2$f1140-(strlen(trim($mish))*5), 117$mish$c2); 
      
    header('content-type: image/gif'); 
      
    imagegif($i2); 

    ?>
    + Rep for help
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Learn PHP, move it yourself.

    Dont be spoon fed code.

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    change the co-ordianates of where your dumpin the text o.0

  4. #4
    Join Date
    Mar 2006
    Posts
    121
    Tokens
    0

    Default

    Quote Originally Posted by Invent View Post
    Learn PHP, move it yourself.

    Dont be spoon fed code.
    What I was about to say.

  5. #5
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default

    I have tried moving the co-ordianates but it just mucks up.
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

  6. #6
    Join Date
    Mar 2006
    Posts
    121
    Tokens
    0

    Default

    It should work if yuo move the co-ordinates.

    I'll try and see if I can get it to sit right and get the code back.

    No promising anything

  7. #7
    Join Date
    Jun 2005
    Location
    USA
    Posts
    2,047
    Tokens
    0

    Latest Awards:

    Default

    I have done the name and mission but i dont know how to move the actual picture of the habbo down.

    http://www.thishabbo.net/trophey/habbo.php?habbo=Lysine
    *Image Removed*

    Thank you Brad for the sig


    Signature edited by Nick- (Forum Super Moderator): Please do not have images that exceed the limit for non VIPs (700 x 150) in your signature.

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

    Latest Awards:

    Default

    I'm assuming that's the one I wrote. You're using a different font/backgruond image to what I used.

    kinda quit.

  9. #9
    Join Date
    Mar 2006
    Posts
    121
    Tokens
    0

    Default

    nets, which srpt did you write?

    Could you prehaps give me the link?

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

    Latest Awards:

    Default

    learn how to spell trophy
    EDTALKING


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
  •