Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default Need habbo scrip

    Hi, i have searched bu i can't find anything

    I need a script for my usersystem so that wen ppl update they're profile and put they're habbo name in the SQL table $profile[habboname] and then they're hotel in $profile[hotel]

    then i could have an image for example *this image woudn't work it just for example* htp://www.habbo.$profile[hotel]/habbos/$profile[habboname]

    and then would display a picture of their habbo

    if you no wot i mean

    if any1 can get me one wuold be much apreciated thx and +rep if i can to any1 tht helps.

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

    Latest Awards:

    Default

    Put something like this in the members.php file:

    Code:
    <?php
    
    include("config.php"); // Path to your config
    
    $query = mysql_query("SELECT * FROM members");
    while($rows = mysql_fetch_array($query)) {
    $habbo = $rows[habboname];
    $hotel = $rows[hotel];
    }
    
    echo("<img src=\"habbo.php?name=$habbo&hotel=$hotel\" />");
    
    ?>
    And make the file: habbos.php with this code:
    Code:
    <?
    header("Content-Type: image/gif");
    $thumbWidth = "60";
    $thumbHeight = "120";
    $name = $_GET[name];
    $hotel = $_GET[hotel];
    $url = "http://www.habbohotel.$hotel/habbo-imaging/collagepr?name_2_txt=0&name_2_y=-117&name_2_x=-491&h_2_dir1&h_2_name=0&h_2_frame=0&h_2_gesture=0&h_2_action=0&h_2_y=0&h_2_x=0&name_1_txt=No&#37;20Such%20User!&name_1_y=-597&name_1_x=-471&stampY=-1048&stampX=-1019&h_1_dir=4&h_1_name=$name&h_1_frame=0&h_1_gesture=sml&h_1_action=std&h_1_y=1&h_1_x=0&overlay=0&overlayY=-95&overlayX=-39&logoY=-300&logoX=-300&bkg=0&bkgY=-95&bkgX=-38&bkgColor=ffffff&picH=320&picW=61&quality5&img-format=png&xml-template=imageCreator_1_name";
    $srcImg = imagecreatefrompng($url);
    $origWidth = imagesx($srcImg); 
    $origHeight = imagesy($srcImg);  
    $thumbImg = imagecreate($thumbWidth, $thumbHeight);
    imagecopyresized($thumbImg, $srcImg, 0, 0, 0, 0, $thumbWidth, $thumbHeight, imagesx($thumbImg), imagesy($thumbImg));
    $ImgWhite = imagecolorallocate($thumbImg, 255, 255, 255);
    imagefill($thumbImg, 0, 0, $ImgWhite);
    imagecolortransparent($thumbImg, $ImgWhite);
    imagegif($thumbImg);
    imagedestroy($thumbImg);
    ?>

  3. #3
    Join Date
    Nov 2006
    Location
    D?sseldorf
    Posts
    2,858
    Tokens
    2,256

    Latest Awards:

    Default

    thx +rep

Posting Permissions

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