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
How do I make staff like this?
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="Cronus" data-source="post: 221610" data-attributes="member: 35689"><p>Hey i wanna make my staff page like this:</p><p> </p><p><img src="http://d.pr/i/p5k5.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p> </p><p>I want it on the right all I really need is the mysql code then I can do it </p><p> </p><p> </p><p>and I also wanna have hidden ranks how do it is slecet ranks 5 thur 12...</p><p> </p><p> </p><p>here ubercms staff code:</p><p> </p><p>[spoiler]</p><p>[CODE]<?php</p><p> </p><p>function GetDescr($level)</p><p>{</p><p> switch ($level)</p><p> {</p><p> case 10:</p><p> </p><p> return 'Hotel Management & Developers';</p><p> </p><p> case 9:</p><p> </p><p> return 'Habzon Management Team';</p><p> </p><p> case 8:</p><p> </p><p> return 'Senior Administrative Staff';</p><p> </p><p> case 7:</p><p> </p><p> return 'Administrative Staff';</p><p> </p><p> case 6:</p><p> </p><p> return 'Moderator Coordinators/Leaders';</p><p> </p><p> case 5:</p><p> </p><p> return 'Moderation in training!';</p><p> </p><p> case 4:</p><p> </p><p> return 'HabZon Event staff!';</p><p> </p><p> default:</p><p> </p><p> return '';</p><p> }</p><p>}</p><p> </p><p>$getGroups = dbquery("SELECT id,name FROM ranks WHERE id >= 4 ORDER BY id DESC");</p><p> </p><p>while ($group = mysql_fetch_assoc($getGroups))</p><p>{ </p><p> echo '<div class="habblet-container "> </p><p><div class="cbb clearfix blue "></p><p><h2 class="title"><span style="float: left;">' . clean($group['name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($group['id']) . '</span></h2>';</p><p> </p><p> $getMembers = dbquery("SELECT id,username,motto,look,online FROM users WHERE rank = '" . $group['id'] . "'");</p><p> </p><p> echo '<div class="box-content">';</p><p> </p><p> if (mysql_num_rows($getMembers) > 0)</p><p> {</p><p> $oe = 1;</p><p> </p><p> while ($member = mysql_fetch_assoc($getMembers))</p><p> {</p><p> if ($oe == 2)</p><p> {</p><p> $oe = 1;</p><p> }</p><p> else</p><p> {</p><p> $oe = 2;</p><p> }</p><p> </p><p> echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';"></p><p> <tbody></p><p> <tr></p><p> <td valign="middle" width="25"></p><p> <img style="margin-top: -10px;" src="%www%/includes/imager.php?figure=' . $member['look'] . '&size=m"></p><p> </td></p><p> <td valign="top"></p><p> <b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br /></p><p> <i>' . clean($member['motto']) . '</i><br /></p><p> <br />';</p><p> </p><p> $getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5");</p><p> </p><p> while ($b = mysql_fetch_assoc($getBadges))</p><p> {</p><p> echo '<img src="http://habzon.net/r63/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;">&nbsp;';</p><p> }</p><p> </p><p> echo '</td></p><p> <td valign="top" style="float: right;"></p><p> ' . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' : '<b style="color: darkred;">Offline</b>') . '</p><p> </td></p><p> </tr></p><p> </tbody></p><p> </table>';</p><p> }</p><p> }</p><p> else</p><p> {</p><p> echo '<i>There are no users in this staff group yet.</i>';</p><p> }</p><p> </p><p> echo '</div></p><p> </div></p><p></div></p><p><script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';</p><p>}</p><p> </p><p>?>[/CODE]</p><p>[/spoiler]</p></blockquote><p></p>
[QUOTE="Cronus, post: 221610, member: 35689"] Hey i wanna make my staff page like this: [IMG]http://d.pr/i/p5k5.png[/IMG] I want it on the right all I really need is the mysql code then I can do it and I also wanna have hidden ranks how do it is slecet ranks 5 thur 12... here ubercms staff code: [spoiler] [CODE]<?php function GetDescr($level) { switch ($level) { case 10: return 'Hotel Management & Developers'; case 9: return 'Habzon Management Team'; case 8: return 'Senior Administrative Staff'; case 7: return 'Administrative Staff'; case 6: return 'Moderator Coordinators/Leaders'; case 5: return 'Moderation in training!'; case 4: return 'HabZon Event staff!'; default: return ''; } } $getGroups = dbquery("SELECT id,name FROM ranks WHERE id >= 4 ORDER BY id DESC"); while ($group = mysql_fetch_assoc($getGroups)) { echo '<div class="habblet-container "> <div class="cbb clearfix blue "> <h2 class="title"><span style="float: left;">' . clean($group['name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($group['id']) . '</span></h2>'; $getMembers = dbquery("SELECT id,username,motto,look,online FROM users WHERE rank = '" . $group['id'] . "'"); echo '<div class="box-content">'; if (mysql_num_rows($getMembers) > 0) { $oe = 1; while ($member = mysql_fetch_assoc($getMembers)) { if ($oe == 2) { $oe = 1; } else { $oe = 2; } echo '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' : '#E6E6E6') . ';"> <tbody> <tr> <td valign="middle" width="25"> <img style="margin-top: -10px;" src="%www%/includes/imager.php?figure=' . $member['look'] . '&size=m"> </td> <td valign="top"> <b style="font-size: 110%;"><a href="%www%/home/' . clean($member['username']) . '">' . clean($member['username']) . '</a></b><br /> <i>' . clean($member['motto']) . '</i><br /> <br />'; $getBadges = dbquery("SELECT * FROM user_badges WHERE user_id = '" . $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 5"); while ($b = mysql_fetch_assoc($getBadges)) { echo '<img src="http://habzon.net/r63/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;"> '; } echo '</td> <td valign="top" style="float: right;"> ' . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' : '<b style="color: darkred;">Offline</b>') . ' </td> </tr> </tbody> </table>'; } } else { echo '<i>There are no users in this staff group yet.</i>'; } echo '</div> </div> </div> <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '; } ?>[/CODE] [/spoiler] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
How do I make staff like this?
Top