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 Q&A
{Request} Trusted Dealers 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="Weasel" data-source="post: 168451" data-attributes="member: 9520"><p>First, run this query:</p><p>[CODE]ALTER TABLE `users` ADD `trusted_dealer` enum('0','1') NOT NULL DEFAULT '0'[/CODE]</p><p> </p><p>Then in your tpl (assuming you are using RevCMS with Habbo template) add trusteddealers.php with the following content:</p><p>[PHP]<!DOCTYPE html></p><p><html lang="en"></p><p> <head></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p> <title>{hotelName} - Community</title></p><p> </p><p> <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.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 = "http://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> <div id="header-container"></p><p> <div id="header" class="clearfix"></p><p> <h1><a href="{url}/"></a></h1></p><p> <div id="subnavi"></p><p> <div id="subnavi-user"></p><p> Top-nav</p><p> </div></p><p> <div id="subnavi-search"></p><p> <div id="subnavi-search-upper"></p><p> <ul id="subnavi-search-links"></p><p> <li><a href="{url}/logout" style="color:#000">Sign Out</a></li></p><p> </ul></p><p> </div></p><p> </div></p><p> <div id="to-hotel"></p><p> <a href="{url}/client" class="new-button green-button" target="eac955c8dbc88172421193892a3e98fc7402021a" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {hotelName} Hotel</b><i></i></a></p><p> </div></p><p> </div></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> </ul></p><p> <div id="habbos-online"><div class="rounded"><span>{online} members online</span></div></div></p><p> </div></p><p> </div></p><p> <div id="content-container"></p><p> <div id="navi2-container" class="pngbg"></p><p> <div id="navi2" class="pngbg clearfix"></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=" selected last">Staff</li></p><p><li class=" last"><a href="{url}/rules">Rules</a></li></p><p> </ul></p><p> </div></p><p> </div></p><p> <div id="container"></p><p> <div id="content" style="position: relative" class="clearfix"></p><p> <div id="column1" class="column"></p><p> <?php</p><p> $GetTrusted = mysql_query("SELECT * FROM users WHERE trusted_dealer = 1 ORDER BY id DESC");</p><p> echo "<div class=\"habblet-container \"><div class=\"cbb clearfix blue \"><h2 class=\"title\">Trusted Dealers</h2><div style=\"padding:5px\"><p>";</p><p> while($Dealers = mysql_fetch_assoc($GetTrusted))</p><p> {</p><p> if($Dealers['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>Online</b></font>"; } else { $OnlineStatus = "<font color=\"darkred\"><b>Offline</b></font>"; }</p><p> echo "<img style=\"position:absolute;\" src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure={$Dealers['look']}&action=wav&direction=2&head_direction=3&gesture=srp&size=l\">"</p><p> ."<p style=\"margin-left:80px;margin-top:20px;\">Username: <strong>{$Dealers['username']}</strong><br>Motto: <strong>{$Dealers['motto']}</strong><br>Function: <strong>{$Dealers['function']}</strong><br><small>Last Online: ". date("D, d F Y H:i (P)", $Dealers['last_online']) ."</small></p>"</p><p> ."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>";</p><p> }</p><p> echo "</div></div></div>";</p><p> ?></p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></p><p> </div></p><p> <div id="column2" class="column"></p><p> <div class="habblet-container "></p><p> <div class="cbb clearfix blue "></p><p> <h2 class="title">Who are these people?</h2></p><p> <div style="padding:5px"></p><p> This people are the trusted dealers from {hotelName}.</p><p> </center></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </div></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> <!--[if lt IE 7]></p><p> <script type="text/javascript"></p><p> Pngfix.doPngImageFix();</p><p> </script></p><p> <![endif]--></p><p> </p><p> <div id="footer" ></p><p> Made by GeenStijl from <a href="http://www.devbest.com/" target="_blank">DevBest.com</a></p><p> </div></p><p> </p><p> </body></p><p></html>[/PHP]</p><p> </p><p>If someone is a trusted dealer, just set the trusted_dealer column in the users table to 1. If they aren't a trusted dealer anymore, set it back to 0.</p></blockquote><p></p>
[QUOTE="Weasel, post: 168451, member: 9520"] First, run this query: [CODE]ALTER TABLE `users` ADD `trusted_dealer` enum('0','1') NOT NULL DEFAULT '0'[/CODE] Then in your tpl (assuming you are using RevCMS with Habbo template) add trusteddealers.php with the following content: [PHP]<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>{hotelName} - Community</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> <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"> Top-nav </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}/client" 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"> <li class="metab"><a href="{url}/me">{username}</a><span></span></li> <li class="selected"><strong>Community</strong><span></span></li> </ul> <div id="habbos-online"><div class="rounded"><span>{online} members online</span></div></div> </div> </div> <div id="content-container"> <div id="navi2-container" class="pngbg"> <div id="navi2" class="pngbg clearfix"> <ul> <li class=""><a href="{url}/community">Community</a></li> <li class=""><a href="{url}/news">News</a></li> <li class=" selected last">Staff</li> <li class=" last"><a href="{url}/rules">Rules</a></li> </ul> </div> </div> <div id="container"> <div id="content" style="position: relative" class="clearfix"> <div id="column1" class="column"> <?php $GetTrusted = mysql_query("SELECT * FROM users WHERE trusted_dealer = 1 ORDER BY id DESC"); echo "<div class=\"habblet-container \"><div class=\"cbb clearfix blue \"><h2 class=\"title\">Trusted Dealers</h2><div style=\"padding:5px\"><p>"; while($Dealers = mysql_fetch_assoc($GetTrusted)) { if($Dealers['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>Online</b></font>"; } else { $OnlineStatus = "<font color=\"darkred\"><b>Offline</b></font>"; } echo "<img style=\"position:absolute;\" src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure={$Dealers['look']}&action=wav&direction=2&head_direction=3&gesture=srp&size=l\">" ."<p style=\"margin-left:80px;margin-top:20px;\">Username: <strong>{$Dealers['username']}</strong><br>Motto: <strong>{$Dealers['motto']}</strong><br>Function: <strong>{$Dealers['function']}</strong><br><small>Last Online: ". date("D, d F Y H:i (P)", $Dealers['last_online']) ."</small></p>" ."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>"; } echo "</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 class="cbb clearfix blue "> <h2 class="title">Who are these people?</h2> <div style="padding:5px"> This people are the trusted dealers from {hotelName}. </center> </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" > Made by GeenStijl from <a href="http://www.devbest.com/" target="_blank">DevBest.com</a> </div> </body> </html>[/PHP] If someone is a trusted dealer, just set the trusted_dealer column in the users table to 1. If they aren't a trusted dealer anymore, set it back to 0. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
{Request} Trusted Dealers page.
Top