Log in

View Full Version : Need habbo scrip



Luke
18-03-2007, 10:44 AM
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.

Invent
18-03-2007, 11:13 AM
Put something like this in the members.php file:


<?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:


<?
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);
?>

Luke
18-03-2007, 11:19 AM
thx +rep

Want to hide these adverts? Register an account for free!