Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

RevCMS working homes + view other users homes

Status
Not open for further replies.

r63

Elite Diviner
Joined
Jan 27, 2012
Messages
417
Reaction score
63
RevCMS working homes, allows you to visit URL/home/user/USERNAME and see that users home page.

I was making this for someone on a rival forum and I got bored and started adding bits and ended up with this.

r63 - RevCMS working homes + view other users homes - RaGEZONE Forums


Code:
 
Last edited:

r63

Elite Diviner
Joined
Jan 27, 2012
Messages
417
Reaction score
63
That code looks horible o_O

Anyway you should've posted in the releases section cause this is not a layout neither a custom.

~tdid

When you say the code looks horrible do you mean the preview looks messy or the pastebin is not organised?
 
Initiate Mage
Joined
Jan 19, 2013
Messages
86
Reaction score
37
LOOOOL, Well done ripping mate. To bad I use this forum too.
 

r63

Elite Diviner
Joined
Jan 27, 2012
Messages
417
Reaction score
63
LOOOOL, Well done ripping mate. To bad I use this forum too.

"LOOOOL" duck off.


I coded this after someone on 0taku requested it and lets be honest, it doesn't take a genius to code something simple like this either.
 
Experienced Elementalist
Joined
Jan 18, 2011
Messages
210
Reaction score
30
But we STILL need to make community avatars clickable to visit other users home
 
Web & Interaction Design
Member
Joined
Dec 18, 2010
Messages
1,507
Reaction score
712
As Rev is fussy about using $_GET you will need to Add this to htaccess - RewriteRule ^home/user/([a-zA-Z0-9_-]+)(|/)$ index.php?url=home&user=$1

It's just htaccess in general. I think there's some way to do it by adding QSA (?) to the original rule(s). Not sure however - and I use the same as above for my additional vars in Roc. :p:
 
Initiate Mage
Joined
Jan 19, 2013
Messages
86
Reaction score
37
"LOOOOL" duck off.


I coded this after someone on 0taku requested it and lets be honest, it doesn't take a genius to code something simple like this either.
Its weird how EVERY SINGLE word is same as mine and the layout is legit EXACTLY similar and I released my yesterday?
r63 - RevCMS working homes + view other users homes - RaGEZONE Forums

I released that yesterday on another forum, so good try bud.
 
Developer
Member
Joined
Jul 28, 2009
Messages
983
Reaction score
133
Someone already released this before, but thanks anyway!
Comes in handy.
 
Experienced Elementalist
Joined
Jan 18, 2011
Messages
210
Reaction score
30
I get the code from KyleVonnie and asked r63 for some help on otaku The codes is from KyleVonnie and r63 just edited it
 

r63

Elite Diviner
Joined
Jan 27, 2012
Messages
417
Reaction score
63
I get the code from KyleVonnie and asked r63 for some help on otaku The codes is from KyleVonnie and r63 just edited it

The code I was given was incredibly messy, using like 20 $_GETs and god knows what else. I got it working, got $_GETs working and edited a majority of the code.

It's just htaccess in general. I think there's some way to do it by adding QSA (?) to the original rule(s). Not sure however - and I use the same as above for my additional vars in Roc. :p:

I have no idea, I don't often use htaccess. I know you can access the page using index.php ( in root directory not skin) because that is how the news page works.
 
Initiate Mage
Joined
Jan 19, 2013
Messages
86
Reaction score
37
The code I was given was incredibly messy, using like 20 $_GETs and god knows what else. I got it working, got $_GETs working and edited a majority of the code.
Okay you EDITED it, doesn't mean you can take credit for the whole thing.
 
Experienced Elementalist
Joined
Jan 18, 2011
Messages
210
Reaction score
30
Just make it clear for ALL who released it first
 
Initiate Mage
Joined
Jan 19, 2013
Messages
86
Reaction score
37
I think it would be better if you don't post that whole pic cause it MIGHT be claimed as "advertising" cause it has other forum's names.
 

r63

Elite Diviner
Joined
Jan 27, 2012
Messages
417
Reaction score
63
Okay you EDITED it, doesn't mean you can take credit for the whole thing.

This is the code I was given:
As you can see it would of never ever ever ever worked and it was incredibly messy.
PHP:
<?php
function clean($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
}
return mysql_real_escape_string($str);
}


$username = filter($_REQUEST["user"]);
$userid = filter($_REQUEST["id"]);


// User Info \\
$userinfo = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));


$user = filter($_GET2['username']);
$id = filter($_GET2['id']);
$looks = filter($_GET2['look']);
$email = filter($_GET2['mail']);
$rank = filter($_GET2['rank']);
$motto = filter($_GET2['motto']);
$credits = filter($_GET2['credits']);
$gender = filter($_GET2['gender']);
$pixels = filter($_GET2['activity_points']);
$pvip = filter($_GET2['vip_points']);
$online = filter($_GET2['online']);




?>
<?php
$username = $_REQUEST["user"];
$userid = $_REQUEST["id"];


// User Info \\
$userinfo = mysql_query("SELECT * FROM users WHERE username='$username' or id='$userid'");
$get2 = mysql_fetch_assoc($userinfo);














$user = $get2['username'];
$id = $get2['id'];
$looks = $get2['look'];
$email = $get2['mail'];
$rank = $get2['rank'];
$motto = $get2['motto'];
$credits = $get2['credits'];
$pixels = $get2['activity_points'];
$pvip = $get2['vip_points'];
$online = $get2['online'];
?>




<!DOCTYPE html>
 
<html lang="en">
 
    <head>
 
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
 
        <title><?php echo $username; ?>'s Home </title>
 
     
        
        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css">
 
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js"></script>
 
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script>
 
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js"></script>
 
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js"></script>
 
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js"></script>
                <link rel="shortcut icon" href="{url}/favicon.ico" type="image/vnd.microsoft.icon" /><script 
 
     
 
        <script type="text/javascript">
 
            document.habboLoggedIn = true;
 
            var habboName = "{username}";
 
            var habboId = {userid};
 
            var habboReqPath = "";
 
            var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";
 
            var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
 
            var habboPartner = "";
 
            var habboDefaultClientPopupUrl = "{url}/client";
 
            window.name = "habboMain";
 
            if (typeof HabboClient != "undefined") {
 
                HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";
 
                HabboClient.maximizeWindow = true;
 
            }
 
        </script>
 
     
 
        <!--[if IE 8]>
 
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css">
 
        <![endif]-->
 
        <!--[if lt IE 8]>
 
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" />
 
        <![endif]-->
 
        <!--[if lt IE 7]>
 
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" />
 
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script>
 
            <script type="text/javascript">
 
                try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
 
            </script>
 
            <style type="text/css">
 
                body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }
 
            </style>
 
        <![endif]-->
 
    </head>
 
 
 
    <body id="home">
 
 
 
 
 
 
 
        <div id="overlay"></div>
 
 
 
        <div id="header-container">
 
 
 
            <div id="header" class="clearfix">
 
 
 
                <h1><a href="{url}/"></a></h1>
 
 
 
                <div id="subnavi">
 
 
 
                    <div id="subnavi-user">
 
 
 
                        <div style="margin-top:7px">Welcome to {hotelName} Hotel!
 
 
 
</div>
 
 
 
                    </div>
 
 
 
                    <div id="subnavi-search">
 
 
 
                        <div id="subnavi-search-upper">
 
 
 
                            <ul id="subnavi-search-links">
 
 
 
                                <li><a href="{url}/logout" style="color:#000">Sign Out</a></li>
 
 
 
                            </ul>
 
 
 
                        </div>
 
 
 
                    </div>
 
 
 
                    <div id="to-hotel">
 
 
 
                        <a href="{url}/api.php" class="new-button green-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelname} Hotel</b><i></i></a>
 
 
 
                    </div>
 
 
 
                </div>
 
 
 
                <ul id="navi">
 
 
 
            <a href="/me"><img src="/app/tpl/skins/habbo/;D/home1.gif" onmouseover="this.src='/app/tpl/skins/habbo/;D/home2.gif'" onmouseout="this.src='/app/tpl/skins/habbo/;D/home1.gif'" /></a>


 <a href="/community"><img src="/app/tpl/skins/habbo/;D/community1.png" onmouseover="this.src='/app/tpl/skins/habbo/;D/community2.png'" onmouseout="this.src='/app/tpl/skins/habbo/;D/community1.png'" /></a>
  
  <a href="/shop"><img src="/app/tpl/skins/habbo/;D/shop1.png" onmouseover="this.src='/app/tpl/skins/habbo/;D/shop2.png'" onmouseout="this.src='/app/tpl/skins/habbo/;D/shop1.png'" /></a> 
 
   <a href="/staff"><img src="/app/tpl/skins/habbo/;D/rules1.png" onmouseover="this.src='/app/tpl/skins/habbo/;D/rules2.png'" onmouseout="this.src='/app/tpl/skins/habbo/;D/rules1.png'" /></a> 
 
        <a href="/rules"><img src="/app/tpl/skins/habbo/;D/values1.png" onmouseover="this.src='/app/tpl/skins/habbo/;D/values2.png'" onmouseout="this.src='/app/tpl/skins/habbo/;D/values1.png'" /></a>             
 
 <br><font color="white" font size="1">   Me      Community      Shop          Staff      Hotel Rules</font>
 <br><font color="#3399CC" font size="0">{hotelname}</font>
                                
 
 
 
 
 
 
                 
 
 
 
                </ul>
 
 
 
                <div id="habbos-online"><div class="rounded"><span>{online} members online</span></div></div>
 
 
 
            </div>
 
 
 
        </div>
 
 
 
        </div>
 
 
 
        <div id="content-container">
 
 
 
            <div id="navi2-container" class="pngbg">
 
 
 
                <div id="navi2" class="pngbg clearfix">
 
 
 
                    <ul>
 
 
 
                        
                                                  <li class="selected"><a href="{url}/shop">Donate!</a></li>


                                                <li><a href="{url}/vip">VIP</a></li>


                                                <li><a href="{url}/badgeshop/index.php">Badge Shop</a></li>


                                                
                                          
 
 
 
                    </ul>
 
 
 
                </div>
 
 
 
            </div>
 
 
 
            </div>
 
 










</div>
</div>
</div>
 
 
            <div id="container">
 
 
 
<div id="content" style="position: relative" class="clearfix">
 
 
 
<div id="column1" class="column">    <div class="habblet-container ">
 
 
 
<div class="cbb clearfix ">
 
 
 
<h2 class="title"><?php echo $username; ?>'s Stats
 
 
 
</h2>
 
 
 
<div id="habboclub-info" class="box-content">
 <hr noshade size=1 width="100%">
 <center><strong>Email:</strong><br><?php echo $email; ?>
 <br>
 <hr noshade size=1 width="100%">
  <img src='/images/credits_icon.png'> <strong>Credits:</strong>
  <br>
  <?php echo $credits; ?>
   <hr noshade size=1 width="100%">
   <img src='/images/pixelIcon.png'> <strong>Pixels:</strong>
   <br>
   <?php echo $pixels; ?>
      <hr noshade size=1 width="100%">
                              <ul>
 
 
 
 
 
 
 
                                </div>


 
 
                            </div>
 
  <div id="container">
 
 
 
<div id="content" style="position: relative" class="clearfix">
 
 
 
<div id="column1" class="column">    <div class="habblet-container ">
 
 
 
<div class="cbb clearfix gray ">
 
 
 
<h2 class="title"><?php echo $username; ?>'s Badges
 
 
 
</h2>
 <center><?php




$getmybadges = mysql_query("SELECT * FROM user_badges WHERE user_id='$id'");




while($rowing = mysql_fetch_assoc($getmybadges)){
$badge = $rowing['badge_id'];
echo '<img src="r63/c_images/album1584/'.$badge.'.gif" style="margin-right: 10px;" />';




}
?>
 </center>
 
 


                              <ul>
 
                        </div>
 
        </div>       </div>       </div>       </div>       </div>
 
 
 
 
 
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </div><div id="column2" class="column"><div class="habblet-container ">
 
 
 
<div id="column2" class="column1">
                        <div class="habblet-container ">
                            <div class="cbb clearfix blue ">
                                <h2 class="title">Meet <?php echo $username; ?></h2>
                                <div style="padding:0px">
                                                                <IMG SRC="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $looks; ?>&action=wlk&direction=2&head_direction=3&gesture=sml&size=1" ALT="picture of a pumpkin" ALIGN=LEFT>
                                                                <br>This is <strong><?php echo $username; ?></strong>, a member of {hotelname}.<br>
<br><?php echo $username; ?> is a <?php


$getUser = mysql_query("SELECT * FROM users WHERE id ='$id'");
$user = mysql_fetch_array($getUser);




$rankId = $user['rank'];
$getRank = mysql_query("SELECT * FROM ranks WHERE id ='$rankId'");
$rank = mysql_fetch_array($getRank);




echo "".$rank['name']." (".$rank['id'].")";
?>.
<br><br><i>Isn't <?php echo $username; ?> wonderful?</i> Ofcourse!<br><br>
<br><hr noshade size=1 width="80%"><center><strong>Motto:</strong>
<br><?php echo $motto; ?>
<br><hr noshade size=1 width="80%"<br>
<strong>Vip Points:</strong><br>
<?php echo $pvip; ?><br><hr noshade size=1 width="80%">
                                </div>
                            </div>
                        </div>
                    </div>


                                        <div id="column2" class="column">
                        <div class="habblet-container ">
                            <div class="cbb clearfix red ">
                                <h2 class="title"><?php echo $username; ?>'s Friends</h2>
                                <div style="padding:5px">
<?php
$query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '$id'");
$i = 0;
while($friends = mysql_fetch_array($query))
{
$getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' LIMIT 1");
if(mysql_num_rows($getfriend) > 0)
{
$i++;
if($i == 1)
{


echo '';
}
$friend = mysql_fetch_array($getfriend);
$friendname = $friend['username'];
echo "<a href='index.php?url=home&user=$friendname'>";
echo htmlspecialchars($friend['username']).'</a>, ';
}
}
if($i > 0)
echo '</br>'?>


</center>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
</div>
 
 
 
</div>
 
 
 
</div>
 
 
 
                        </div>
 
 
 
                    </div>
 
 
 
                </div>
 
 
 
            </div>
 
 
 
        </div>
 
 
 
        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
 
 
 
        <script type="text/javascript">
 
 
 
            HabboView.run();
 
 
 
        </script>
 
 
 
 
 
 
 
        <!--[if lt IE 7]>
 
 
 
            <script type="text/javascript">
 
 
 
                Pngfix.doPngImageFix();
 
 
 
            </script>
 
 
 
        <![endif]-->
 
 
 
     
 
 
 
            
       <div id="footer"><p>© Copyright 2012 <a href="http://habtunehotel.com/" target="_New"><b>{hotelName} Hotel</b></a>. All rights reserved.<br>


Powered by <b>NaumanCMS</b></a> by Nauman and <a href="http://www.**************.com/" target="_blank">Phoenix</a> 3.7.2 (Build 13843)<br>{hotelName} Hotel is owned and operated by Nauman.</p>      </div>
 
 
 
 
 
 
 
    </body>
 
 
 
</html>

The only thing that stayed the same as that of the code given was the boxes containing text.
 
Initiate Mage
Joined
Jan 19, 2013
Messages
86
Reaction score
37
Well you took some coding from my release, which was working fine btw. You did a good job editing it, but you need to give credits to others too.
 
Status
Not open for further replies.
Back
Top