Lol, I very very badly need a Habbo Imager script to make a few things and I HATE using other people's..
If you can place the PHP Code someone on here I will be thankful :)
Printable View
Lol, I very very badly need a Habbo Imager script to make a few things and I HATE using other people's..
If you can place the PHP Code someone on here I will be thankful :)
Whipped that up, especially for you :pPHP Code:<?php
function get_badge( $username ) {
$site = "http://www.habbo.co.uk/home/".$username."";
$page = file_get_contents( $site );
$badge = explode( 'http://images.habbohotel.co.uk/c_images/album1584/', $page );
$badge1 = explode( '.gif', $badge[1] );
$badge = "http://images.habbohotel.co.uk/c_images/album1584/".$badge1[0].".gif";
echo $badge;
}
function get_group_badge( $username ) {
$site = "http://www.habbo.co.uk/home/".$username."";
$page = file_get_contents( $site );
$badge = explode( '<img src="/habbo-imaging/badge/', $page );
$badge1 = explode( '.gif', $badge[1] );
$badge = "http://www.habbo.co.uk/habbo-imaging/badge/".$badge1[0].".gif";
echo $badge;
}
function get_habbo( $username ) {
$site = "http://www.habbo.co.uk/home/".$username."";
$page = file_get_contents( $site );
$habbo = explode( '<img alt="'. $username .'" src="/habbo-imaging/avatar/', $page );
$habbo1 = explode( '.gif', $habbo[1] );
$habbo = "http://www.habbo.co.uk/habbo-imaging/avatar/".$habbo1[0].".gif";
echo $habbo;
}
function get_motto( $username ) {
$site = "http://www.habbo.co.uk/home/".$username."";
$page = file_get_contents( $site );
$motto = explode( ' <div class="profile-motto">', $page );
$motto1 = explode( '<div class="clear">', $motto[1] );
$motto = $motto1[0];
$motto = str_replace( ' ', '', $motto );
echo $motto;
}
echo get_badge( $_GET[ "habbo" ] );
echo "<br />";
echo get_group_badge( $_GET[ "habbo" ] );
echo "<br />";
echo get_habbo( $_GET[ "habbo" ] );
echo "<br />";
echo get_motto( $_GET[ "habbo" ] );
?>
Ty simon, ill stop with the spam messages on Habbo xD
Would i goto
script_directory/imagescript.php?name=ilovepoo? lolz because its not working
you would need to add GD to make it work as an image in itself.
I'll code that in a bit.
This just echoes the URL to the images. So you could do <img src="" /> using the functions.
What so, i type the image html, and add imagescript.php?name=Xendo to grab the image into a Html page, right?
Couldnt you just do a collect script so it collects from the URL like
imagescript.php?name=Xendo
so the form thing grabs Xendo?
No that wont work, you need it to be done using GD for that to work.
Right, sorry for annoying you but how do i add the image, as in what URL, would I enter into the image src