well i have this script but im having some trouble using it
i need someone to help code
$html = file_get_contents('http://habborp.com/home/?name='.$name);
$doc = new DOMDocument();
@$doc->loadHTML($html);
$xpath = new DOMXPath($doc);
$results = $xpath->query("//div[@class='profile-figure']/img");
if (!is_null($results))
{
foreach ($results as $result)
{
$details = $result->getAttribute('src');
}
$tmp = explode('?',$details);
$details = $tmp[1];
unset($tmp);
$details = explode('&',$details);
$usrFigure = substr($details[0],7,strlen($details[0]));
unset($details);
into
<?php
// Place headers
header("Content-type: image/gif");
// Get Habbo & Land
$habbo = $_GET['habbo'];
$land = $_GET['land'];
// Make image size
$im = @ imagecreate("169", "145") or die();
// Make transparant
$transparant= imagecolorallocate($im, 51, 80, 124);
ImageColorTransparent($im, $transparant);
// Get Habbo from Habbo-imaging and place the Habbo
$habbo2 = imagecreatefromgif("http://www.habbo.$land/habbo-imaging/avatarimage?hb=img&figure=$habbo&action=wav,drk=0&gesture=sml&size=b&direction=4&head_direction=2&img_format=gif");
imagecopy($im, $habbo2, 89, -8, 0, 0, 160, 200);
// Get Disco-image and place the image
$home = imagecreatefromgif("images/disco.gif");
imagecopy($im, $home, 0, 14, 0, 0, 169, 200);
// Create Image
imagegif($im);
// Destroy headers
imagedestroy($im);
// END
}
?>
Cheers
RYan