Lysine
25-02-2007, 06:41 PM
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
$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($i2, 0xFF, 0xFF, 0xFF);
$c2 = imagecolorallocate($i2, 0x00, 0x00, 0x00);
$f1 = imageloadfont('voltar.gdf');
imagecopymerge($i2, $i1, 82, -17, 0, 0, 60, 120, 100);
imagestring($i2, $f1, 80-((strlen($_GET['habbo'])/2)*imagefontwidth($f1)), 101, $_GET['habbo'], $c1);
imagestring($i2, $f1, 140-(strlen(trim($mish))*5), 117, $mish, $c2);
header('content-type: image/gif');
imagegif($i2);
?>
+ Rep for help :)
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
$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($i2, 0xFF, 0xFF, 0xFF);
$c2 = imagecolorallocate($i2, 0x00, 0x00, 0x00);
$f1 = imageloadfont('voltar.gdf');
imagecopymerge($i2, $i1, 82, -17, 0, 0, 60, 120, 100);
imagestring($i2, $f1, 80-((strlen($_GET['habbo'])/2)*imagefontwidth($f1)), 101, $_GET['habbo'], $c1);
imagestring($i2, $f1, 140-(strlen(trim($mish))*5), 117, $mish, $c2);
header('content-type: image/gif');
imagegif($i2);
?>
+ Rep for help :)