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
[HELP] Ubercms rank adding
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="Wayne_1998" data-source="post: 221862" data-attributes="member: 36460"><p><?php</p><p> </p><p>function GetDescr($level)</p><p>{</p><p>switch ($level)</p><p>{</p><p>case 7:</p><p> </p><p>return 'Hotel Management & Developers';</p><p> </p><p>case 6:</p><p> </p><p>return 'Administrator Coordinators/Leaders';</p><p> </p><p>case 5:</p><p> </p><p>return 'Administrator Staff';</p><p> </p><p>case 4:</p><p> </p><p>return 'Moderation & Safety Staff';</p><p> </p><p> </p><p>case 3:</p><p> </p><p>return 'Trainee Moderators';</p><p> </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="<a href="http://images.habbo.com/c_images/album1584/" target="_blank">http://images.habbo.com/c_images/album1584/</a>' . $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>?></p></blockquote><p></p>
[QUOTE="Wayne_1998, post: 221862, member: 36460"] <?php function GetDescr($level) { switch ($level) { case 7: return 'Hotel Management & Developers'; case 6: return 'Administrator Coordinators/Leaders'; case 5: return 'Administrator Staff'; case 4: return 'Moderation & Safety Staff'; case 3: return 'Trainee Moderators'; 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="[url]http://images.habbo.com/c_images/album1584/[/url]' . $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> '; } ?> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[HELP] Ubercms rank adding
Top