PDA

View Full Version : ANY WORKING HABBO IMAGE SCRIPTS EASY TO USE?



Xendo
03-08-2007, 05:54 PM
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 :)

Invent
03-08-2007, 05:56 PM
<?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" ] );
?>


Whipped that up, especially for you :p

Xendo
03-08-2007, 05:57 PM
Ty simon, ill stop with the spam messages on Habbo xD

Xendo
03-08-2007, 06:02 PM
Would i goto

script_directory/imagescript.php?name=ilovepoo? lolz because its not working

Invent
03-08-2007, 06:07 PM
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.

Xendo
03-08-2007, 06:09 PM
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?

Invent
03-08-2007, 06:11 PM
No that wont work, you need it to be done using GD for that to work.

Xendo
03-08-2007, 06:13 PM
Right, sorry for annoying you but how do i add the image, as in what URL, would I enter into the image src

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