Right I have it working.
Simple.
http://www.rksoftware.swainhosting.c...bo1.php?name=r
You need to use this as habbo1.php
There you go. Not hard at all.PHP Code:
<img src="<?include ("habbo.php"); ?>" alt="" />

Right I have it working.
Simple.
http://www.rksoftware.swainhosting.c...bo1.php?name=r
You need to use this as habbo1.php
There you go. Not hard at all.PHP Code:
<img src="<?include ("habbo.php"); ?>" alt="" />
lol![]()
Everything working now Panther?
lol
If you're going to use it on a staff page it could take a while to load.
Lol Im crap at php :p
Just looked at the code again. There is a way to do it on one page. Very simplely.
All you needed to do was to change the echo so it outputs the image instead of the url =/PHP Code:
<?PHP
$page = file_get_contents("http://www.habbo.co.uk/home/$_GET[name]");
eregi("<img alt=\"$_GET[name]\" src=\"/habbo-imaging/avatar/(.*).gif\" />", $page, $result);
$name = $_GET[name];
$url = "http://www.habbo.co.uk/habbo-imaging/avatar/$result[1].gif";
echo("<img src=\"$url\">");
?>
There is. I mentioned that earlier in this threadReplace what you've got inside habbo.php so far with the code above.Code:<?PHP $page = file_get_contents("http://www.habbo.co.uk/home/$_GET[name]"); eregi("<img alt=\"$_GET[name]\" src=\"/habbo-imaging/avatar/(.*).gif\" />", $page, $result); $name = $_GET[name]; $url = "http://www.habbo.co.uk/habbo-imaging/avatar/$result[1].gif"; echo("<img src=\"$url\">"); ?>.
EDIT: You can remove the variable $name if you like. It has no use whatsoever.
Last edited by Halting; 17-11-2006 at 09:29 PM.
I just came up with another idea.
Using the $url variable, you could easily find out whether a Habbo is banned or not.
For instance, this might be a good feature for a profile:
Just an ideaCode:<?PHP $page = file_get_contents("http://www.habbo.co.uk/home/$_GET[name]"); eregi("<img alt=\"$_GET[name]\" src=\"/habbo-imaging/avatar/(.*).gif\" />", $page, $result); $url = "http://www.habbo.co.uk/habbo-imaging/avatar/$result[1].gif"; if ($url != '') { // if the $url variable is empty, then the image couldn't be found. Meaning that Habbo Hotel is under maintenance or they have been banned from using Habbo Hotel. echo('Normal profile contents go here.'); } else { echo('This Habbo has been banned.'); } ?>![]()
Last edited by Halting; 17-11-2006 at 09:37 PM.
Want to hide these adverts? Register an account for free!