Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 6 of 6
  1. #1
    Topps Guest

    Default Help, I'm sick of this error!

    Hey everyone, I have my user system and I have made a page where it has the exact same scheme as Habbo so it displays the users information as the old Habbo slate (no one steal the idea cos it's just gay if you do.) but it just shows a blank page, I don't know what's wrong, could someone try and figure it out?

    PHP Code:
    <?
    oB_start
    ();
    include(
    "config.php");
    switch(
    $_GET[go]) 

    default: 
    if (!
    $_GET[user]){
    $getuser mysql_query("SELECT * FROM users WHERE username = '$_GET[user]'");
    $usernum mysql_num_rows($getuser);
    if (
    $usernum == 0){
    echo (
    "User Not Found");
    } else {
    $profile mysql_fetch_array($getuser);
    if(
    $profile[hotels] == "UK"){
    ?> 
    <img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;height:55px;z-index:0">
    <div id="bv_" style="position:absolute;left:15px;top:117px;width:150px;height:13px;z-index:1" align="center">
    <font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
    <img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
    <img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;height:56px;z-index:3">
    <div id="bv_" style="position:absolute;left:14px;top:135px;width:152px;height:13px;z-index:4" align="right">
    <font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
    <?
    }
    if(
    $profile[hotels] == "USA"){
    ?> 
    <img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;height:55px;z-index:0">
    <div id="bv_" style="position:absolute;left:15px;top:117px;width:150px;height:13px;z-index:1" align="center">
    <font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
    <img src="http://www.habbo.com/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
    <img src="<? echo $profile[displaybadge]; ?>" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;height:56px;z-index:3">
    <div id="bv_" style="position:absolute;left:14px;top:135px;width:152px;height:13px;z-index:4" align="right">
    <font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
    <?
    }
    if(
    $profile[hotels] == "CA"){
    ?> 
    <img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;height:55px;z-index:0">
    <div id="bv_" style="position:absolute;left:15px;top:117px;width:150px;height:13px;z-index:1" align="center">
    <font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
    <img src="http://www.habbo.ca/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
    <img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;height:56px;z-index:3">
    <div id="bv_" style="position:absolute;left:14px;top:135px;width:152px;height:13px;z-index:4" align="right">
    <font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
    <?
    }
    if(
    $profile[hotels] == "AU"){
    ?> 
    <img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;height:55px;z-index:0">
    <div id="bv_" style="position:absolute;left:15px;top:117px;width:150px;height:13px;z-index:1" align="center">
    <font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
    <img src="http://www.habbo.com.au/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
    <img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;height:56px;z-index:3">
    <div id="bv_" style="position:absolute;left:14px;top:135px;width:152px;height:13px;z-index:4" align="right">
    <font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
    <?
    }
    if(
    $profile[hotels] == "SG"){
    ?> 
    <img src="images/big_slate.png" id="Image1" alt="" align="top" border="0" width="164" height="55" style="position:absolute;left:8px;top:80px;width:164px;height:55px;z-index:0">
    <div id="bv_" style="position:absolute;left:15px;top:117px;width:150px;height:13px;z-index:1" align="center">
    <font style="font-size:10px" color="#FFFFFF" face="Verdana"><b><? echo $profile[user]; ?></b></font></div>
    <img src="http://www.habbo.com.sg/habbo-imaging/avatarimage?user=<? echo $profile[habboname]; ?>&action=&direction=4&head_direction=4&gesture=sml&size=l" id="Image2" alt="" align="top" border="0" style="position:absolute;left:95px;top:0px;z-index:2">
    <img src="management.gif" id="Image3" alt="" align="top" border="0" width="56" height="56" style="position:absolute;left:142px;top:27px;width:56px;height:56px;z-index:3">
    <div id="bv_" style="position:absolute;left:14px;top:135px;width:152px;height:13px;z-index:4" align="right">
    <font style="font-size:10px" color="#000000" face="Verdana"><? echo $profile[mission]; ?></font></div>
    <?
    }
    }
    }
    }
    ?>
    It's a very simple code and yet it's being so perdantic.

    Thanks for any help given!

  2. #2
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    Pedantic
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  3. #3
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Replace <? with <?php. My localhost doesnt like using <? either

  4. #4
    Topps Guest

    Default

    Quote Originally Posted by Blob View Post
    Replace <? with <?php. My localhost doesnt like using <? either
    Yer, it's weird, it didn't work, but thanks.

  5. #5
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    lol, your script is so exploitable ;D!

  6. #6
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    lol, your script is so exploitable ;D!
    Not trying to be an ***, but why just post saying its exploitable and not help?

    Anyways, your server *might* be like one I am working on and have error reporting disabled.

    Place this at the top of the page before oB_start();

    PHP Code:
    ini_set("display_errors""1");
    error_reporting(E_ALL); 
    That may help, if not post back

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •