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
Staff page badges are not showing up.
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="WanknessHD" data-source="post: 395492" data-attributes="member: 3511"><p>I am trying to display badges on my staff page, and I am able to see them but the badge id is not linking correctly.</p><p></p><p>so this:</p><p>[PHP]<?php</p><p> $GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id < 8 AND id > 2 ORDER BY id DESC");</p><p> while($Ranks = mysql_fetch_assoc($GetRanks))</p><p> {</p><p> echo "<div class=\"habblet-container \"><div class=\"cbb clearfix blue \"><font size=1><h2 class=\"title\">{$Ranks['name']}s</h2></font><div style=\"padding:5px\"><p>";</p><p> $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look,country FROM users WHERE rank = {$Ranks['id']}");</p><p> while($Users = mysql_fetch_assoc($GetUsers))</p><p> {</p><p> $Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $Users['username'] . "'");</p><p> $BanCount = mysql_num_rows($Bans);</p><p> $Tickets = mysql_query("SELECT * FROM `moderation_tickets` WHERE `moderator_id` = '" . $Users['id'] . "'");</p><p> $TicketsCount = mysql_num_rows($Tickets);</p><p> $getBadges = mysql_query("SELECT * FROM `user_badges` WHERE `user_id` = '".$Users['username']."' ORDER LIMIT 6");</p><p> $badges = mysql_fetch_array($getBadges);</p><p> if($Users['online'] == 1){ $OnlineStatus = "<img src=\"{url}/app/tpl/skins/Habbo/images/online.gif\">"; } else { $OnlineStatus = "<img src=\"{url}/app/tpl/skins/Habbo/images/offline.gif\">"; }</p><p> echo "<img style=\"position:absolute;\" src=\"http://www.habbo.nl/habbo-imaging/avatarimage?figure={$Users['look']}&action=wav&direction=2&head_direction=3&gesture=srp\">"</p><p> ."<p style=\"margin-left:80px;margin-top:20px;\"><strong><span style=\"color:green;\"><a style=\"text-decoration:none\" href= \"{url}/home/{$Users['username']}\">{$Users['username']}</a> - {$OnlineStatus}</span></strong><br><b>Motto:</b> {$Users['motto']}<br><small><b>Last Online:</b> ". date("l jS \of F \a\t h:i:s A", $Users['last_online']) ."</small><br><b>CFH's:</b> {$TicketsCount} | <b>Bans:</b> {$BanCount}<br><img src=\"{url}/swf/c_images/album1584/{$badges['badge_id']}.gif\" style=\"display:inline;\" draggable=\"false\"></p>"</p><p> ."<div style='width: 48px; display: inline;height: 48px;margin-top: -60px;margin-right: 20px;float: right; background: url({url}/app/tpl/skins/Habbo/images/flags_small/{$Users['country']}.png); background-position:center; background-repeat:no-repeat;'></div><br><br><br>";</p><p> }</p><p> echo "</div></div></div>";</p><p> }</p><p> </p><p> ?>[/PHP]</p><p></p><p>Which gives me this:</p><p><img src="http://image.prntscr.com/image/e9eee4ba4c844af097625d5353786dc6.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>and when I right click view image its this: http:/link/swf/c_images/album1584/.gif</p><p></p><p>Could anyone point to what I am doing wrong? Im kinda confused and frustrated why it's not.</p></blockquote><p></p>
[QUOTE="WanknessHD, post: 395492, member: 3511"] I am trying to display badges on my staff page, and I am able to see them but the badge id is not linking correctly. so this: [PHP]<?php $GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id < 8 AND id > 2 ORDER BY id DESC"); while($Ranks = mysql_fetch_assoc($GetRanks)) { echo "<div class=\"habblet-container \"><div class=\"cbb clearfix blue \"><font size=1><h2 class=\"title\">{$Ranks['name']}s</h2></font><div style=\"padding:5px\"><p>"; $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look,country FROM users WHERE rank = {$Ranks['id']}"); while($Users = mysql_fetch_assoc($GetUsers)) { $Bans = mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $Users['username'] . "'"); $BanCount = mysql_num_rows($Bans); $Tickets = mysql_query("SELECT * FROM `moderation_tickets` WHERE `moderator_id` = '" . $Users['id'] . "'"); $TicketsCount = mysql_num_rows($Tickets); $getBadges = mysql_query("SELECT * FROM `user_badges` WHERE `user_id` = '".$Users['username']."' ORDER LIMIT 6"); $badges = mysql_fetch_array($getBadges); if($Users['online'] == 1){ $OnlineStatus = "<img src=\"{url}/app/tpl/skins/Habbo/images/online.gif\">"; } else { $OnlineStatus = "<img src=\"{url}/app/tpl/skins/Habbo/images/offline.gif\">"; } echo "<img style=\"position:absolute;\" src=\"http://www.habbo.nl/habbo-imaging/avatarimage?figure={$Users['look']}&action=wav&direction=2&head_direction=3&gesture=srp\">" ."<p style=\"margin-left:80px;margin-top:20px;\"><strong><span style=\"color:green;\"><a style=\"text-decoration:none\" href= \"{url}/home/{$Users['username']}\">{$Users['username']}</a> - {$OnlineStatus}</span></strong><br><b>Motto:</b> {$Users['motto']}<br><small><b>Last Online:</b> ". date("l jS \of F \a\t h:i:s A", $Users['last_online']) ."</small><br><b>CFH's:</b> {$TicketsCount} | <b>Bans:</b> {$BanCount}<br><img src=\"{url}/swf/c_images/album1584/{$badges['badge_id']}.gif\" style=\"display:inline;\" draggable=\"false\"></p>" ."<div style='width: 48px; display: inline;height: 48px;margin-top: -60px;margin-right: 20px;float: right; background: url({url}/app/tpl/skins/Habbo/images/flags_small/{$Users['country']}.png); background-position:center; background-repeat:no-repeat;'></div><br><br><br>"; } echo "</div></div></div>"; } ?>[/PHP] Which gives me this: [IMG]http://image.prntscr.com/image/e9eee4ba4c844af097625d5353786dc6.png[/IMG] and when I right click view image its this: http:/link/swf/c_images/album1584/.gif Could anyone point to what I am doing wrong? Im kinda confused and frustrated why it's not. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Staff page badges are not showing up.
Top