Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
RevCMS Richest User Page
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Brandon" data-source="post: 405100" data-attributes="member: 28869"><p>Hello Habbotards,</p><p></p><p>I haven't done much in the retro community as far as releases go, so I decided to share something that I couldn't find when I first started my retro. The following script was modified by [USER=9520]@Ichabod[/USER] for efficiency so really you should be thanking him!</p><p></p><p>[SPOILER="Screenshot"]<img src="https://s28.postimg.org/b2nyv8yql/Capture.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> [/SPOILER]</p><p></p><p><strong>Copy this code and create a new page in your \wwwroot\app\tpl\skins\(yourskinfolder)</strong> Example: richest.php</p><p>[PHP]<!DOCTYPE html></p><p><html lang="en"></p><p> <head></p><p> <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p> <title>{hotelName}: Richest Players</title></p><p> <style type="text/css">hr{border-top:1px solid #e3e3db;border-left:none;border-bottom:none;bottom-right:none;width:90%;}</style></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css"></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/headern.css" type="text/css" /></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js"></script></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js"></script></p><p> </p><p> <script type="text/javascript"></p><p> document.habboLoggedIn = true;</p><p> var habboName = "{username}";</p><p> var habboId = {userid};</p><p> var habboReqPath = "";</p><p> var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";</p><p> var habboImagerUrl = "https://www.habbo.com/habbo-imaging/";</p><p> var habboPartner = "";</p><p> var habboDefaultClientPopupUrl = "{url}/client";</p><p> window.name = "habboMain";</p><p> if (typeof HabboClient != "undefined") {</p><p> HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";</p><p> HabboClient.maximizeWindow = true;</p><p> }</p><p> </script></p><p> </p><p> <!--[if IE 8]></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css"></p><p> <![endif]--></p><p> <!--[if lt IE 8]></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" /></p><p> <![endif]--></p><p> <!--[if lt IE 7]></p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" /></p><p> <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script></p><p> <script type="text/javascript"></p><p> try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</p><p> </script></p><p> <style type="text/css"></p><p> body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }</p><p> </style></p><p> <![endif]--></p><p> </head></p><p> </p><p> <body id="home"></p><p> </p><p> <div id="overlay"></div></p><p> <?php include ("includes/header.php"); ?></p><p> <ul id="navi"></p><p> <li class="metab"><a href="{url}/me">{username}</a><span></span></li></p><p> <li class="selected"><strong>Community</strong><span></span></li></p><p> <li id="tab-register-now"><a href="https://forums.hobba.me">Forums</a><span></span></li></p><p> <li id="tab-register-now"><a href="https://values.hobba.me">Values</a><span></span></li></p><p> <li id="tab-register-now"><a href="https://store.hobba.me">Store</a><span></span></li></p><p> </ul></p><p> <div id="habbos-online"><div id="content"><div class="cbb "><span><b>{online}</b><br>{hotelName}(s)<br>online</span></div></div></div></p><p> </div></p><p> </div></p><p> <div id="content-container"></p><p> <div class="pngbg" id="navi2-container"></p><p> <div class="pngbg clearfix" id="navi2"></p><p> <ul></p><p> <li class=""><a href="{url}/community">Community</a></li></p><p> <li class=""><a href="{url}/news">News</a></li></p><p> <li class=""><a href="{url}/staff">{hotelname} Staff</a></li></p><p> <li class=""><a href="{url}/topstats">Top Player Stats</a></li></p><p> <li class="selected">Richest Players</li></p><p> <li class="last"><a href="{url}/stats">{hotelname} Statistics</a></li></p><p> </ul></p><p> </div></p><p> </div></p><p> </p><p> <div id="container"></p><p> <div id="content" style="position: relative" class="clearfix"></p><p> <?php</p><p> $getRares = mysql_query("SELECT `public_name`, `id` FROM `furniture` WHERE `is_rare` > '0' ORDER BY `is_rare` DESC");</p><p> </p><p> while ($rares = mysql_fetch_assoc($getRares))</p><p> {</p><p> ?></p><p> <div id="column" class="column" style="width:192px;"></p><p> <div class="habblet-container "></p><p> <div class="cbb clearfix orange "></p><p> <h2 class="title"><?= $rares['public_name'] ?></span></h2></p><p> </p><p> <div align='left'></p><p> <?php </p><p> $getUsers = mysql_query("SELECT *, COUNT(i.id) furnicount FROM users u INNER JOIN items i ON i.base_item = '" . $rares['id'] . "' AND i.user_id = u.id WHERE u.rank < 2 GROUP BY u.id ORDER BY furnicount DESC LIMIT 5");</p><p> </p><p> while ($users = mysql_fetch_assoc($getUsers))</p><p> { </p><p> ?></p><p> <div style="float:left"></p><p> <img src="https://www.habbo.com/habbo-imaging/avatarimage?figure=<?= $users['look'] ?>&size=b&direction=2&head_direction=2&headonly=1&gesture=sml&size=2"></p><p> </div></p><p> </p><p> <p style="font-size: 95%; padding: 10px;"><a href="{url}/home/<?= $users['username'] ?>"/><strong><?= $users['username'] ?></strong></a></p> <?= $OnlineStatus ?></p><p> <p style="font-size: 95%; padding: 0px;">Amount: <b><?= $users['furnicount'] ?></b></p><hr></p><p></p><p> <?php</p><p> } </p><p> ?></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </p><p> <?php</p><p> }</p><p> ?></p><p></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> <script type="text/javascript"></p><p> HabboView.run();</p><p> </script></p><p> </p><p> </p><p> </p><p> <!--[if lt IE 7]></p><p> <script type="text/javascript"></p><p> Pngfix.doPngImageFix();</p><p> </script></p><p> <![endif]--></p><p> </p><p> </p><p> <?php include('includes/footer.php'); ?></p><p> <?php include('includes/checktheban.php'); ?></p><p> </p><p> </p><p> </body></p><p></html>[/PHP]</p><p></p><p><strong>What you need to know to use this script:</strong></p><ul> <li data-xf-list-type="ul">This script uses the field "is_rare" in the furniture table on PlusEMU. I'm not sure if it's similar on other emulators but I'm sure it can easily be incorporated or modified for other emulators.</li> <li data-xf-list-type="ul">In order to add a rare to the page, you need to set the "is_rare" column to 1 in the furniture table.<br /> </li> <li data-xf-list-type="ul">You can modify the amount of users shown by searching for the line "BY furnicount DESC LIMIT 5" and change 5 to whatever you'd like. I wouldn't suggest too many users as it will delay the page load time.</li> </ul><p>I'll gladly answer any questions in this thread.</p></blockquote><p></p>
[QUOTE="Brandon, post: 405100, member: 28869"] Hello Habbotards, I haven't done much in the retro community as far as releases go, so I decided to share something that I couldn't find when I first started my retro. The following script was modified by [USER=9520]@Ichabod[/USER] for efficiency so really you should be thanking him! [SPOILER="Screenshot"][IMG]https://s28.postimg.org/b2nyv8yql/Capture.png[/IMG] [/SPOILER] [B]Copy this code and create a new page in your \wwwroot\app\tpl\skins\(yourskinfolder)[/B] Example: richest.php [PHP]<!DOCTYPE html> <html lang="en"> <head> <link rel="shortcut icon" href="{url}/app/tpl/skins/{skin}/images/favicon.ico" type="image/vnd.microsoft.icon"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>{hotelName}: Richest Players</title> <style type="text/css">hr{border-top:1px solid #e3e3db;border-left:none;border-bottom:none;bottom-right:none;width:90%;}</style> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css"> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/headern.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> <script type="text/javascript"> document.habboLoggedIn = true; var habboName = "{username}"; var habboId = {userid}; var habboReqPath = ""; var habboStaticFilePath = "{url}/app/tpl/skins/Habbo"; var habboImagerUrl = "https://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> <?php include ("includes/header.php"); ?> <ul id="navi"> <li class="metab"><a href="{url}/me">{username}</a><span></span></li> <li class="selected"><strong>Community</strong><span></span></li> <li id="tab-register-now"><a href="https://forums.hobba.me">Forums</a><span></span></li> <li id="tab-register-now"><a href="https://values.hobba.me">Values</a><span></span></li> <li id="tab-register-now"><a href="https://store.hobba.me">Store</a><span></span></li> </ul> <div id="habbos-online"><div id="content"><div class="cbb "><span><b>{online}</b><br>{hotelName}(s)<br>online</span></div></div></div> </div> </div> <div id="content-container"> <div class="pngbg" id="navi2-container"> <div class="pngbg clearfix" id="navi2"> <ul> <li class=""><a href="{url}/community">Community</a></li> <li class=""><a href="{url}/news">News</a></li> <li class=""><a href="{url}/staff">{hotelname} Staff</a></li> <li class=""><a href="{url}/topstats">Top Player Stats</a></li> <li class="selected">Richest Players</li> <li class="last"><a href="{url}/stats">{hotelname} Statistics</a></li> </ul> </div> </div> <div id="container"> <div id="content" style="position: relative" class="clearfix"> <?php $getRares = mysql_query("SELECT `public_name`, `id` FROM `furniture` WHERE `is_rare` > '0' ORDER BY `is_rare` DESC"); while ($rares = mysql_fetch_assoc($getRares)) { ?> <div id="column" class="column" style="width:192px;"> <div class="habblet-container "> <div class="cbb clearfix orange "> <h2 class="title"><?= $rares['public_name'] ?></span></h2> <div align='left'> <?php $getUsers = mysql_query("SELECT *, COUNT(i.id) furnicount FROM users u INNER JOIN items i ON i.base_item = '" . $rares['id'] . "' AND i.user_id = u.id WHERE u.rank < 2 GROUP BY u.id ORDER BY furnicount DESC LIMIT 5"); while ($users = mysql_fetch_assoc($getUsers)) { ?> <div style="float:left"> <img src="https://www.habbo.com/habbo-imaging/avatarimage?figure=<?= $users['look'] ?>&size=b&direction=2&head_direction=2&headonly=1&gesture=sml&size=2"> </div> <p style="font-size: 95%; padding: 10px;"><a href="{url}/home/<?= $users['username'] ?>"/><strong><?= $users['username'] ?></strong></a></p> <?= $OnlineStatus ?> <p style="font-size: 95%; padding: 0px;">Amount: <b><?= $users['furnicount'] ?></b></p><hr> <?php } ?> </div> </div> </div> </div> <?php } ?> <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]--> <?php include('includes/footer.php'); ?> <?php include('includes/checktheban.php'); ?> </body> </html>[/PHP] [B]What you need to know to use this script:[/B] [LIST] [*]This script uses the field "is_rare" in the furniture table on PlusEMU. I'm not sure if it's similar on other emulators but I'm sure it can easily be incorporated or modified for other emulators. [*]In order to add a rare to the page, you need to set the "is_rare" column to 1 in the furniture table. [*]You can modify the amount of users shown by searching for the line "BY furnicount DESC LIMIT 5" and change 5 to whatever you'd like. I wouldn't suggest too many users as it will delay the page load time. [/LIST] I'll gladly answer any questions in this thread. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
RevCMS Richest User Page
Top