Not really, some hotels do but others don't, for example i have it on my hotel's website but not in-game.Im pretty sure that they have ingame flag badge
Not really, some hotels do but others don't, for example i have it on my hotel's website but not in-game.
"<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p>"
echo "<p style=\margin-left:80px;margin-top:20px;\"><img src=\"LINK TO YOUR FLAGS FOLDER/{$Users['country']}.COUNTRY FLAG PIC EXTENSION\" />";
$GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']}");
$GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look,country FROM users WHERE rank = {$Ranks['id']}");
Didnt even know you owned one.
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName}: Staff</title>
<?php include_once('header.php'); ?>
<li class="metab"><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/{skin}/images/id.png" style="vertical-align: middle;"></a><span></span></li>
<li class="selected"><strong>Commmunity <img src="{url}/app/tpl/skins/{skin}/images/forum_2.gif" style="vertical-align: middle;"></strong><span></span></li>
<li><a href="{url}/shop">Shop <img src="{url}/app/tpl/skins/{skin}/images/new_11.gif" style="vertical-align: middle;"></a><span></span></li>
<?php if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 6)
{ ?>
<li id="tab-register-now" class="tab-register-now"><a href="{url}/stafflogin/index.php?url=login">HouseKeeping</a><span></span></li>
<?php
} ?>
</ul>
<div id="ibxs-online"><div class="rounded">
<div style="padding-top:7px;">
<a href="api.php" class="new-button green-button" style="float:left;" target="ClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter {HotelName}</b><i></i></a></div>
<span style="margin-top:-2px">
{online} User(s) 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">Staff</a></li>
<li class=""><a href="{url}/events">Events</a></li>
<li class=" last"><a href="{url}/logout" class="userlink" id="signout">Sign Out</a>
</ul>
</div>
</div>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<?php
function GetDescr($level)
{
switch ($level)
{
case 10:
return 'Hotel Owners';
case 9:
return 'Manager';
case 8:
return 'Developer';
case 7:
return 'Administrators';
case 6:
return 'Moderators';
case 5:
return 'Trial Moderators';
case 4:
return 'Events Staff';
default:
return '';
}
}
$getRanks = mysql_query("SELECT * FROM `ranks` WHERE id > 4 AND id < 11 ORDER BY id DESC");
while ($Ranks = mysql_fetch_assoc($getRanks))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><span style="float: left;">' . $Ranks['name'] . '</span> <span style="float: right; font-weight: normal; font-size: 75%;">' . GetDescr($Ranks['id']) . '</span></h2>';
$getMembers = mysql_query("SELECT id,username,motto,look,online,last_online FROM users WHERE rank = '" . $Ranks['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="{url}/avatar.php?figure=' .$member['look'] . '&size=m">
</td>
<td valign="top">
<p style="font-size: 90%;">Username: <strong>' .$member['username'] . '</strong><br>Motto: <strong>' . $member['motto'] . '</strong><br><i>Last Online: '. date("D, d F Y H:i (P)", $member['last_online']) .'</i></p>
<br />';
$getBadges = mysql_query("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="{swf_folder}/c_images/album1584/' . $b['badge_id'] . '.gif" style="float: left;"> ';
}
echo '</td>
<td valign="top" style="float: right;">
' . (($member['online'] == "1") ? '<img src="{url}/app/tpl/skins/{skin}/images/online.gif"/>': '<img src="{url}/app/tpl/skins/{skin}/images/offline.gif"/>') . '
</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> ';
}
?>
<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 red ">
<h2 class="title">{HotelName} Staff</h2>
<div class="box-content">
<img src="{swf_folder}/c_images/album1584/STAFF.gif" align="right">
<p>
{HotelName} Staff develop, manage, and moderate the hotel. They make sure everything
is working smoothly and the users are safe. All {HotelName} Staff are listed on this page,
and you can always recognize them by their staff badge in the hotel. Staff members
are always there to help you, but please do not beg or harass these users.
</p>
</div>
</div>
<div id="column2" class="column">
<?php
$getRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 12 ORDER BY id DESC");
while ($Ranks = mysql_fetch_assoc($getRanks))
{
echo '<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title"><span style="float: left;">' . $Ranks['name'] . '</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>';
$getMembers = mysql_query("SELECT id,username,motto,look,online,last_online FROM users WHERE rank = '" . $Ranks['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%" height="50px" 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="{url}/avatar.php?figure=' .$member['look'] . '&action=wlk&direction=2&head_direction=3&gesture=sml&size=l">
</td>
<td valign="top">
</br><p style="margin-top: -10px;" style="font-size: 100%;"><strong><a><u>' .$member['username'] . '</a></u></strong><br>Motto: ' . $member['motto'] . '<td valign="top" style="float: right;">' . (($member['online'] == "1") ? '<img src="{url}/app/tpl/skins/{skin}/images/online.gif"/>': '<img src="{url}/app/tpl/skins/{skin}/images/offline.gif"/>') . '</p></p><p style="margin-top: -8px;"></p>
';
echo '</td>
</td>
</tr>
</tbody>
</table>';
}
}
else
{
echo '<i>No information available.</i';
}
echo '</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> ';
}
?>
<?php include_once('bottom.php'); ?>
First Download a flag pack search google then upload it to a folder like if u use filezilla, app/tpl/skins/habbo/images then the code you should use in the File would be <img src=url/app/tpl/skins/habbo/images/''picturename''(flag) align=rightHello,
I use RevCMS With Habbo Theme. I was wondering how can I add nationality flags into the staff page. For example like this:
Took Image From (Hepix Hotel)
Like the UK Flag for example.
Thanks,
iFresh
He already got it working, and you only replied with the way to display a certain flag, not the staff's country flag.First Download a flag pack search google then upload it to a folder like if u use filezilla, app/tpl/skins/habbo/images then the code you should use in the File would be <img src=url/app/tpl/skins/habbo/images/''picturename''(flag) align=right