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 4 of 4
  1. #1
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default [TUT] Habbo Image In CJ55s UserSystem [TUT]

    Okay are you using CJ555s free user system and theres nothing about there habbo or Evan a picture, Well i have the soultion..


    Step one
    High light all of account.php and paste this code below:
    PHP Code:
    <?
    session_start
    ();
    include(
    "config.php");
    $ip $_SERVER['REMOTE_ADDR'];
    $sqlcontent mysql_query("select * from usr_config");
    $content mysql_fetch_array($sqlcontent);

    if(!isset(
    $_SESSION[usr_name]) || empty($_SESSION[usr_name]) || !isset($_SESSION[usr_level]) || empty($_SESSION[usr_level]))
    {
    session_destroy();
    session_unset();
    die(
    '
    <body bgcolor="#006699">
    <div align="center">
      <table width="50%" border="1">
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Sorry, You must be logged in to view this page.. </font></td>
        </tr>
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Click <a href="index.php">Here</a> to Login </font></td>
        </tr>
      </table>
    </div>
    </body>'
    );
    }
    include(
    "func.php");
    /*
    Coded by Cj555 of Habbo UK
    For Habbo-Center Scripts DB
    www.Habbo-Center.com
    This notice along with the one on the login screen must stay intact for legal use.
    */
    $update clean($_GET[update]);
    $getprof mysql_query("select * from usr_users where username = '$_SESSION[usr_name]'");
    $prof mysql_fetch_array($getprof);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" href="css.css" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Usersystem &bull; <? echo("$content[site]");?></title></head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">Account Options </div></td>
      </tr>
      <tr>
        <td><div align="center"><em>Here you can edit your preferences.. </em></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center">
        <? if(!$update) { ?>
        <form action="account.php?update=update" method="post">
        <b><u>Your Account</u></b><br /><br />
        Your Username:<br />
        <? echo("<b>$_SESSION[usr_name]</b>");?><br /><br />
        Email Adress:<br />
        <input name="email" type="text" value="<? echo("$prof[email]");?>" size="40"?>" size="40" />
        <br /><br />
        YOUR Habbo Name:<br />
        <input name="avator" type="text" value="<? echo("$prof[avator]");?>" size="50"?>" size="50" />
        <br /><br />
        <b><u>Set a New Password</u></b><br /><em>If you dont want to change password, leave this blank</em><br /><br />
        Your OLD password:<br />
        <input name="oldpw" type="password" size="30" />
        <br /><br />
        Your new password:<br />
        <input name="new1" type="password" size="30" />
        <br /><br />
        Retype new password:<br />
        <input name="new2" type="password" size="30" />
        <br /><br />
        <input type="submit" value="Update!" />
        </form>
        <? }
        
        elseif(
    $update==update)
        {
        
    $email clean($_POST[email]);
        
    $avator clean($_POST[avator]);
        
    $updateemail mysql_query("update usr_users set email = '$email', avator = '$avator' where username = '$_SESSION[usr_name]'");
        
    $oldpw clean($_POST[oldpw]);
        
    $new1 clean($_POST[new1]);
        
    $new2 clean($_POST[new2]);
        if(
    $oldpw!="")
        {
        
    $checkpass md5($oldpw);
        
    $check2 mysql_query("select * from usr_users where password = '$checkpass' and username = '$_SESSION[usr_name]'");
        
    $check mysql_num_rows($check2);
        if(
    $check==1)
        {
        if(
    $new1==$new2)
        {
        
    $password md5($new1);
        
    $updatepass mysql_query("update usr_users set password = '$password' where username = '$_SESSION[usr_name]'");
        echo(
    "Your password has been updated!<br />");
        }
        else echo(
    "The two passwords do not match!");
        }
        else echo(
    "The password you entered does not match your current password.");
        }
        echo(
    "Your Preferences have been updated!");
        } 
    ?>
        </div></td>
      </tr>
    </table>
    </body>
    </html>
    Now In Memb.php
    high light every bit in the code and paste this in there:
    PHP Code:
    <?
    session_start
    ();
    include(
    "config.php");
    $ip $_SERVER['REMOTE_ADDR'];
    $sqlcontent mysql_query("select * from usr_config");
    $content mysql_fetch_array($sqlcontent);

    if(!isset(
    $_SESSION[usr_name]) || empty($_SESSION[usr_name]) || !isset($_SESSION[usr_level]) || empty($_SESSION[usr_level]))
    {
    session_destroy();
    session_unset();
    die(
    '
    <body bgcolor="#006699">
    <div align="center">
      <table width="50%" border="1">
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Sorry, You must be logged in to view this page.. </font></td>
        </tr>
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Click <a href="index.php">Here</a> to Login </font></td>
        </tr>
      </table>
    </div>
    </body>'
    );
    }
    include(
    "func.php");
    /*
    Coded by Cj555 of Habbo UK
    For Habbo-Center Scripts DB
    www.Habbo-Center.com
    This notice along with the one on the login screen must stay intact for legal use.
    */
    $user clean($_GET[user]);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" href="css.css" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Usersystem &bull; <? echo("$content[site]");?></title>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">Member Profiles </div></td>
      </tr>
      <tr>
        <td><div align="center"><em>View users Furni Etc Etc </em></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center"><a href="memb.php">&raquo;Search Members</a> <a href="memb.php?user=mlist">&raquo;Memberlist</a></div></td>
      </tr>
      <tr>
        <td><div align="center"></div></td>
      </tr>
    </table>
    <? if(!$user
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">
        <form action="memb.php?user=user" method="post">
        Username:<br />
        <input type="text" name="user" /><br /><br />
        <input type="submit" value="Look-up Profile" />
        </form></div></td>
      </tr>
    </table>
    <? }
    elseif(
    $user==user)
    {
    $username clean($_POST[user]);
    echo(
    '<meta http-equiv="refresh" content="0;url=memb.php?user='.$username.'" />');

    elseif(
    $user==mlist)
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="23%"><em><strong>Username</strong></em></td>
        <td width="24%"><em><strong>Rank</strong></em></td>
        <td width="34%"><em><strong>Credits</strong></em></td>
        <td width="19%"><em><strong>View Profile </strong></em></td>
      </tr>
      <?
      $sql 
    mysql_query("select * from usr_users");
      while(
    $m mysql_fetch_array($sql))
      { 
    ?>
      <tr>
         <td width="23%"><? echo("$m[username]");?></td>
        <td width="24%"><?
        
    if($m[level]==1)
        echo(
    "Administrator");
        else
        echo(
    "User");
        
    ?></td>
        <td width="34%"><? echo("$m[credits]");?></td>
        <td width="19%"><a href="memb.php?user=<? echo("$m[username]");?>"?>"?>">Click Here </a></td>
      </tr>
        <? ?>
    </table>
    <?
    }
    else
    {
    $usr mysql_fetch_array(mysql_query("select * from usr_users where username = '$user'"));
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2"><div align="center"><? echo("$usr[username]'s Profile");?></div></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td width="50%"><div align="center"><strong>Users Furni </strong></div></td>
        <td width="50%"><div align="center"><strong>Habbo Image </strong></div></td>
      </tr>
      <tr>
        <td>
        <?
        $usersql 
    mysql_query("select * from usr_users where username = '$user'");
        
    $usr2 mysql_fetch_array($usersql);
        
    $getfurni mysql_query("select * from usr_furni where userid = '$usr2[id]'");
        
    $check mysql_num_rows($getfurni);
        if(
    $check==0)
        echo(
    "This user does not have any furni..");
        else 
        {
        while(
    $furni mysql_fetch_array($getfurni))
        {
        
    $geturl mysql_query("select * from usr_furnidb where id = '$furni[id]'");
        while(
    $url mysql_fetch_array($geturl))
        {
        echo(
    '<img src="'.$url[url].'" />');
        }
        }
        }
        
    ?></td>
        <td><div align="center">
        <?
        
    if($usr[avator]!="")
        echo(
    '<a target="_blank" href="http://www.habbo.com.au/home/'.$usr[avator].'"><img src="http://www.habbo.com.au/habbo-imaging/avatarimage?user='.$usr[avator].'&action=wav&direction=4&head_direction=4&gesture=sml&size=l" alt="'.$usr[username].'\'s Habbo" /></a>');
        else
        echo(
    "No HABBO Set.");
        
    ?>
        </div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center"><strong>Users Badges </strong></div></td>
        <td><div align="center"><strong>Users Credit Balance </strong></div></td>
      </tr>
      <tr>
        <td><?
        $badgesql 
    mysql_query("select * from usr_badge where user = '$user'");
        
    $user2 mysql_query("select * from usr_users where username = '$user'");
        
    $usr2 mysql_fetch_array($user2);
        
    $vipsql mysql_query("select * from usr_vip where userid = '$usr2[id]'");
        
    $vipcheck mysql_num_rows($vipsql);
        
    $badgecheck mysql_num_rows($badgesql);
        
    $checkit $badgecheck $vipcheck;
        if(
    $checkit==0)
        echo(
    "This user has no badges.");
        else
        if(
    $badgecheck!=0)
        {
        while(
    $badge mysql_fetch_array($badgesql))
        {
        echo(
    '<img src="'.$badge[badge].'" alt="Issue Reason: '.$badge[reason].'" />');
        }
        }
        
    //Display VIP Badges
        
    if($vipcheck!=0)
        {
        
    $vipbadge mysql_fetch_array($vipsql);
        
    $vip1 mysql_query("select * from usr_vipdb where id = '$vipbadge[vipid]'");
        
    $vip2 mysql_fetch_array($vip1);
        echo(
    '<img src="'.$vip2[url].'" alt="This user is a VIP!" />');
        }
        
    ?></td>
        <td><div align="center">
        <? echo("<em>$usr[credits]</em>");?>
        </div></td>
      </tr>
    </table>
    <? }} ?>
    </body>
    </html>

    What does this do?

    Well when someone goes into Account Settings They Fill in there HabboName..

    Once they've done this if a member where to look on there profile it will show a image of there habbo and a link to there home page PLEASE NOTE THIS IS FOR HABBO AU TO EDIT IT PLEASE ASK ME IN THE POST AN DILL POST A UK IMAGER
    Last edited by chrisgocrazyH; 02-02-2008 at 03:02 AM.
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

  2. #2
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Looks like it will only work with au though.
    Coming and going...
    Highers are getting the better of me

  3. #3
    Join Date
    Sep 2007
    Location
    USA
    Posts
    474
    Tokens
    0

    Default

    ive switched the domain before on hsp and it went straight to Us
    Post Meter
    ______________________________________________
    400 450 500 550 600 650 700 750 800 850 900-1k
    Green=Done | Orange=Almost | Red=Not Done
    ______________________________________________
    Habbo fury Coming Soon!
    My Img tag has ran away

  4. #4
    Join Date
    May 2007
    Location
    Brisbane, Australia
    Posts
    796
    Tokens
    0

    Default UK

    i did it with UK

    EDIT:

    THIS IS .COM code for MEMB.PHP
    PHP Code:
    <?
    session_start
    ();
    include(
    "config.php");
    $ip $_SERVER['REMOTE_ADDR'];
    $sqlcontent mysql_query("select * from usr_config");
    $content mysql_fetch_array($sqlcontent);

    if(!isset(
    $_SESSION[usr_name]) || empty($_SESSION[usr_name]) || !isset($_SESSION[usr_level]) || empty($_SESSION[usr_level]))
    {
    session_destroy();
    session_unset();
    die(
    '
    <body bgcolor="#006699">
    <div align="center">
      <table width="50%" border="1">
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Sorry, You must be logged in to view this page.. </font></td>
        </tr>
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Click <a href="index.php">Here</a> to Login </font></td>
        </tr>
      </table>
    </div>
    </body>'
    );
    }
    include(
    "func.php");
    /*
    Coded by Cj555 of Habbo UK
    For Habbo-Center Scripts DB
    www.Habbo-Center.com
    This notice along with the one on the login screen must stay intact for legal use.
    */
    $user clean($_GET[user]);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" href="css.css" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Usersystem &bull; <? echo("$content[site]");?></title>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">Member Profiles </div></td>
      </tr>
      <tr>
        <td><div align="center"><em>View users Furni Etc Etc </em></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center"><a href="memb.php">&raquo;Search Members</a> <a href="memb.php?user=mlist">&raquo;Memberlist</a></div></td>
      </tr>
      <tr>
        <td><div align="center"></div></td>
      </tr>
    </table>
    <? if(!$user
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">
        <form action="memb.php?user=user" method="post">
        Username:<br />
        <input type="text" name="user" /><br /><br />
        <input type="submit" value="Look-up Profile" />
        </form></div></td>
      </tr>
    </table>
    <? }
    elseif(
    $user==user)
    {
    $username clean($_POST[user]);
    echo(
    '<meta http-equiv="refresh" content="0;url=memb.php?user='.$username.'" />');

    elseif(
    $user==mlist)
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="23%"><em><strong>Username</strong></em></td>
        <td width="24%"><em><strong>Rank</strong></em></td>
        <td width="34%"><em><strong>Credits</strong></em></td>
        <td width="19%"><em><strong>View Profile </strong></em></td>
      </tr>
      <?
      $sql 
    mysql_query("select * from usr_users");
      while(
    $m mysql_fetch_array($sql))
      { 
    ?>
      <tr>
         <td width="23%"><? echo("$m[username]");?></td>
        <td width="24%"><?
        
    if($m[level]==1)
        echo(
    "Administrator");
        else
        echo(
    "User");
        
    ?></td>
        <td width="34%"><? echo("$m[credits]");?></td>
        <td width="19%"><a href="memb.php?user=<? echo("$m[username]");?>"?>"?>">Click Here </a></td>
      </tr>
        <? ?>
    </table>
    <?
    }
    else
    {
    $usr mysql_fetch_array(mysql_query("select * from usr_users where username = '$user'"));
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2"><div align="center"><? echo("$usr[username]'s Profile");?></div></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td width="50%"><div align="center"><strong>Users Furni </strong></div></td>
        <td width="50%"><div align="center"><strong>Habbo Image </strong></div></td>
      </tr>
      <tr>
        <td>
        <?
        $usersql 
    mysql_query("select * from usr_users where username = '$user'");
        
    $usr2 mysql_fetch_array($usersql);
        
    $getfurni mysql_query("select * from usr_furni where userid = '$usr2[id]'");
        
    $check mysql_num_rows($getfurni);
        if(
    $check==0)
        echo(
    "This user does not have any furni..");
        else 
        {
        while(
    $furni mysql_fetch_array($getfurni))
        {
        
    $geturl mysql_query("select * from usr_furnidb where id = '$furni[id]'");
        while(
    $url mysql_fetch_array($geturl))
        {
        echo(
    '<img src="'.$url[url].'" />');
        }
        }
        }
        
    ?></td>
        <td><div align="center">
        <?
        
    if($usr[avator]!="")
        echo(
    '<a target="_blank" href="http://www.habbo.com/home/'.$usr[avator].'"><img src="http://www.habbo.com/habbo-imaging/avatarimage?user='.$usr[avator].'&action=wav&direction=4&head_direction=4&gesture=sml&size=l" alt="'.$usr[username].'\'s Habbo" /></a>');
        else
        echo(
    "No HABBO Set.");
        
    ?>
        </div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center"><strong>Users Badges </strong></div></td>
        <td><div align="center"><strong>Users Credit Balance </strong></div></td>
      </tr>
      <tr>
        <td><?
        $badgesql 
    mysql_query("select * from usr_badge where user = '$user'");
        
    $user2 mysql_query("select * from usr_users where username = '$user'");
        
    $usr2 mysql_fetch_array($user2);
        
    $vipsql mysql_query("select * from usr_vip where userid = '$usr2[id]'");
        
    $vipcheck mysql_num_rows($vipsql);
        
    $badgecheck mysql_num_rows($badgesql);
        
    $checkit $badgecheck $vipcheck;
        if(
    $checkit==0)
        echo(
    "This user has no badges.");
        else
        if(
    $badgecheck!=0)
        {
        while(
    $badge mysql_fetch_array($badgesql))
        {
        echo(
    '<img src="'.$badge[badge].'" alt="Issue Reason: '.$badge[reason].'" />');
        }
        }
        
    //Display VIP Badges
        
    if($vipcheck!=0)
        {
        
    $vipbadge mysql_fetch_array($vipsql);
        
    $vip1 mysql_query("select * from usr_vipdb where id = '$vipbadge[vipid]'");
        
    $vip2 mysql_fetch_array($vip1);
        echo(
    '<img src="'.$vip2[url].'" alt="This user is a VIP!" />');
        }
        
    ?></td>
        <td><div align="center">
        <? echo("<em>$usr[credits]</em>");?>
        </div></td>
      </tr>
    </table>
    <? }} ?>
    </body>
    </html>

    AND .CO.UK FOR MEMB.PHP Thanks
    PHP Code:
    <?
    session_start
    ();
    include(
    "config.php");
    $ip $_SERVER['REMOTE_ADDR'];
    $sqlcontent mysql_query("select * from usr_config");
    $content mysql_fetch_array($sqlcontent);

    if(!isset(
    $_SESSION[usr_name]) || empty($_SESSION[usr_name]) || !isset($_SESSION[usr_level]) || empty($_SESSION[usr_level]))
    {
    session_destroy();
    session_unset();
    die(
    '
    <body bgcolor="#006699">
    <div align="center">
      <table width="50%" border="1">
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Sorry, You must be logged in to view this page.. </font></td>
        </tr>
        <tr>
          <td><font face="verdana" size="2" color="#FFFFFF">Click <a href="index.php">Here</a> to Login </font></td>
        </tr>
      </table>
    </div>
    </body>'
    );
    }
    include(
    "func.php");
    /*
    Coded by Cj555 of Habbo UK
    For Habbo-Center Scripts DB
    www.Habbo-Center.com
    This notice along with the one on the login screen must stay intact for legal use.
    */
    $user clean($_GET[user]);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" href="css.css" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Usersystem &bull; <? echo("$content[site]");?></title>
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">Member Profiles </div></td>
      </tr>
      <tr>
        <td><div align="center"><em>View users Furni Etc Etc </em></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center"><a href="memb.php">&raquo;Search Members</a> <a href="memb.php?user=mlist">&raquo;Memberlist</a></div></td>
      </tr>
      <tr>
        <td><div align="center"></div></td>
      </tr>
    </table>
    <? if(!$user
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">
        <form action="memb.php?user=user" method="post">
        Username:<br />
        <input type="text" name="user" /><br /><br />
        <input type="submit" value="Look-up Profile" />
        </form></div></td>
      </tr>
    </table>
    <? }
    elseif(
    $user==user)
    {
    $username clean($_POST[user]);
    echo(
    '<meta http-equiv="refresh" content="0;url=memb.php?user='.$username.'" />');

    elseif(
    $user==mlist)
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="23%"><em><strong>Username</strong></em></td>
        <td width="24%"><em><strong>Rank</strong></em></td>
        <td width="34%"><em><strong>Credits</strong></em></td>
        <td width="19%"><em><strong>View Profile </strong></em></td>
      </tr>
      <?
      $sql 
    mysql_query("select * from usr_users");
      while(
    $m mysql_fetch_array($sql))
      { 
    ?>
      <tr>
         <td width="23%"><? echo("$m[username]");?></td>
        <td width="24%"><?
        
    if($m[level]==1)
        echo(
    "Administrator");
        else
        echo(
    "User");
        
    ?></td>
        <td width="34%"><? echo("$m[credits]");?></td>
        <td width="19%"><a href="memb.php?user=<? echo("$m[username]");?>"?>"?>">Click Here </a></td>
      </tr>
        <? ?>
    </table>
    <?
    }
    else
    {
    $usr mysql_fetch_array(mysql_query("select * from usr_users where username = '$user'"));
    ?>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2"><div align="center"><? echo("$usr[username]'s Profile");?></div></td>
      </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      <tr>
        <td width="50%"><div align="center"><strong>Users Furni </strong></div></td>
        <td width="50%"><div align="center"><strong>Habbo Image </strong></div></td>
      </tr>
      <tr>
        <td>
        <?
        $usersql 
    mysql_query("select * from usr_users where username = '$user'");
        
    $usr2 mysql_fetch_array($usersql);
        
    $getfurni mysql_query("select * from usr_furni where userid = '$usr2[id]'");
        
    $check mysql_num_rows($getfurni);
        if(
    $check==0)
        echo(
    "This user does not have any furni..");
        else 
        {
        while(
    $furni mysql_fetch_array($getfurni))
        {
        
    $geturl mysql_query("select * from usr_furnidb where id = '$furni[id]'");
        while(
    $url mysql_fetch_array($geturl))
        {
        echo(
    '<img src="'.$url[url].'" />');
        }
        }
        }
        
    ?></td>
        <td><div align="center">
        <?
        
    if($usr[avator]!="")
        echo(
    '<a target="_blank" href="http://www.habbo.co.uk/home/'.$usr[avator].'"><img src="http://www.habbo.co.uk/habbo-imaging/avatarimage?user='.$usr[avator].'&action=wav&direction=4&head_direction=4&gesture=sml&size=l" alt="'.$usr[username].'\'s Habbo" /></a>');
        else
        echo(
    "No HABBO Set.");
        
    ?>
        </div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center"><strong>Users Badges </strong></div></td>
        <td><div align="center"><strong>Users Credit Balance </strong></div></td>
      </tr>
      <tr>
        <td><?
        $badgesql 
    mysql_query("select * from usr_badge where user = '$user'");
        
    $user2 mysql_query("select * from usr_users where username = '$user'");
        
    $usr2 mysql_fetch_array($user2);
        
    $vipsql mysql_query("select * from usr_vip where userid = '$usr2[id]'");
        
    $vipcheck mysql_num_rows($vipsql);
        
    $badgecheck mysql_num_rows($badgesql);
        
    $checkit $badgecheck $vipcheck;
        if(
    $checkit==0)
        echo(
    "This user has no badges.");
        else
        if(
    $badgecheck!=0)
        {
        while(
    $badge mysql_fetch_array($badgesql))
        {
        echo(
    '<img src="'.$badge[badge].'" alt="Issue Reason: '.$badge[reason].'" />');
        }
        }
        
    //Display VIP Badges
        
    if($vipcheck!=0)
        {
        
    $vipbadge mysql_fetch_array($vipsql);
        
    $vip1 mysql_query("select * from usr_vipdb where id = '$vipbadge[vipid]'");
        
    $vip2 mysql_fetch_array($vip1);
        echo(
    '<img src="'.$vip2[url].'" alt="This user is a VIP!" />');
        }
        
    ?></td>
        <td><div align="center">
        <? echo("<em>$usr[credits]</em>");?>
        </div></td>
      </tr>
    </table>
    <? }} ?>
    </body>
    </html>
    Last edited by chrisgocrazyH; 02-02-2008 at 10:49 PM. Reason: UK
    Thanks,
    Chris
    Free Image Uploading

    __________________


    [/url]

    [/FONT]

Posting Permissions

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