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 not working
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="Focusing" data-source="post: 316296" data-attributes="member: 54714"><p>For some odd reason, my staff pages aren't working.. The pages pick up the usergroup id (such as owners, admins, mod titles) <a href="http://playbobba.net/staff" target="_blank">http://playbobba.net/staff</a></p><p></p><p>A screenshot and coding of the /staff page</p><p></p><p><img src="http://i.imgur.com/8foRVlb.gif" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[CODE]<div class="box blue"></p><p></p><p><?php</p><p></p><p></p><p> $GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 11 ORDER BY id DESC");</p><p> while($Ranks = mysql_fetch_assoc($GetRanks))</p><p> {</p><p> echo "<h1 class=\"header\">{$Ranks['name']}</h1><div class=\"habblet-container \"><div class=\"cbb clearfix error \"><h2 class=\"title\"></span><span style=\"float: right; font-weight: normal; font-size: 75%\">" . "</span></h2><div style=\"padding:5px\"><p>";</p><p> $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look,country,role,age FROM users WHERE rank = {$Ranks['id']} ORDER by id");</p><p> $amount = mysql_num_rows($GetUsers);</p><p> while($Users = mysql_fetch_assoc($GetUsers))</p><p> {</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 "<div style='width: 64px; height: 120px; margin-top:-22px; margin-left:-10px; float: left; background: url(https://www.habbo.it/habbo-imaging/avatarimage?figure={$Users['look']}&action=crr=42&direction=&gesture=sml&size=m&img_format=gif);'><img style=\"position:absolute;margin-left:500px;margin-top:10px;\" src=\"{url}/country/{$Users['country']}.png\"><img src=\"{url}/swfs/c_images/album1584/ADM.gif\" style=\"position:absolute;margin-left:515px;margin-top:70px;\"></div>"</p><p> ."<p style=\"margin-left:80px;\">{$OnlineStatus}<a href='#'><strong>{$Users['username']}</strong></a><font color='grey'> - <i>Owner & Founder</i></font><br><br><small>Motto: {$Users['motto']}</font><br>Role: {$Users['role']} <br /> Age: {$Users['age']}<br /><br /><b>Last Online: ". date('D, d M Y', $Users['last_online']) ."</b> </small></p><p> </p><p>";if($amount > 0)</p><p>{</p><p>echo "<br><img src='{url}/app/tpl/skins/Habbo/images/staffspace.png' style='width:520px;height:13px;'/>";</p><p>}</p><p> }</p><p> echo "</div></div></div>";</p><p> }</p><p> ?></p><p></div></p><p></p><p><div class="box green"></p><p></p><p><?php</p><p></p><p></p><p> $GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 10 ORDER BY id DESC");</p><p> while($Ranks = mysql_fetch_assoc($GetRanks))</p><p> {</p><p> echo "<h1 class=\"header\">{$Ranks['name']}</h1><div class=\"habblet-container \"><div class=\"cbb clearfix error \"><h2 class=\"title\"></span><span style=\"float: right; font-weight: normal; font-size: 75%\">" . "</span></h2><div style=\"padding:5px\"><p>";</p><p> $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look,country,role,age FROM users WHERE rank = {$Ranks['id']} ORDER by id");</p><p> $amount = mysql_num_rows($GetUsers);</p><p> while($Users = mysql_fetch_assoc($GetUsers))</p><p> {</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 "<div style='width: 64px; height: 120px; margin-top:-22px; margin-left:-10px; float: left; background: url(https://www.habbo.it/habbo-imaging/avatarimage?figure={$Users['look']}&action=crr=42&direction=&gesture=sml&size=m&img_format=gif);'><img style=\"position:absolute;margin-left:500px;margin-top:10px;\" src=\"{url}/country/{$Users['country']}.png\"><img src=\"{url}/swfs/c_images/album1584/ADM.gif\" style=\"position:absolute;margin-left:515px;margin-top:70px;\"></div>"</p><p> ."<p style=\"margin-left:80px;\">{$OnlineStatus}<a href='#'><strong>{$Users['username']}</strong></a><font color='grey'> - <i>Hotel Manager</i></font><br><br><small>Motto: {$Users['motto']}</font><br>Role: {$Users['role']} <br /> Age: {$Users['age']}<br /><br /><b>Last Online: ". date('D, d M Y', $Users['last_online']) ."</b> </small></p><p> </p><p>";if($amount > 0)</p><p>{</p><p>echo "<br><img src='{url}/app/tpl/skins/Habbo/images/staffspace.png' style='width:520px;height:13px;'/>";</p><p>}</p><p> }</p><p> echo "</div></div></div>";</p><p> }</p><p> ?></p><p></div><input type="hidden" id="page-title" value="Home"> </div></p><p></p><p> </div></p><p> </p><p> <div class="clear"></div></p><p> </div></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Focusing, post: 316296, member: 54714"] For some odd reason, my staff pages aren't working.. The pages pick up the usergroup id (such as owners, admins, mod titles) [url]http://playbobba.net/staff[/url] A screenshot and coding of the /staff page [IMG]http://i.imgur.com/8foRVlb.gif[/IMG] [CODE]<div class="box blue"> <?php $GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 11 ORDER BY id DESC"); while($Ranks = mysql_fetch_assoc($GetRanks)) { echo "<h1 class=\"header\">{$Ranks['name']}</h1><div class=\"habblet-container \"><div class=\"cbb clearfix error \"><h2 class=\"title\"></span><span style=\"float: right; font-weight: normal; font-size: 75%\">" . "</span></h2><div style=\"padding:5px\"><p>"; $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look,country,role,age FROM users WHERE rank = {$Ranks['id']} ORDER by id"); $amount = mysql_num_rows($GetUsers); while($Users = mysql_fetch_assoc($GetUsers)) { 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 "<div style='width: 64px; height: 120px; margin-top:-22px; margin-left:-10px; float: left; background: url(https://www.habbo.it/habbo-imaging/avatarimage?figure={$Users['look']}&action=crr=42&direction=&gesture=sml&size=m&img_format=gif);'><img style=\"position:absolute;margin-left:500px;margin-top:10px;\" src=\"{url}/country/{$Users['country']}.png\"><img src=\"{url}/swfs/c_images/album1584/ADM.gif\" style=\"position:absolute;margin-left:515px;margin-top:70px;\"></div>" ."<p style=\"margin-left:80px;\">{$OnlineStatus}<a href='#'><strong>{$Users['username']}</strong></a><font color='grey'> - <i>Owner & Founder</i></font><br><br><small>Motto: {$Users['motto']}</font><br>Role: {$Users['role']} <br /> Age: {$Users['age']}<br /><br /><b>Last Online: ". date('D, d M Y', $Users['last_online']) ."</b> </small> ";if($amount > 0) { echo "<br><img src='{url}/app/tpl/skins/Habbo/images/staffspace.png' style='width:520px;height:13px;'/>"; } } echo "</div></div></div>"; } ?> </div> <div class="box green"> <?php $GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 10 ORDER BY id DESC"); while($Ranks = mysql_fetch_assoc($GetRanks)) { echo "<h1 class=\"header\">{$Ranks['name']}</h1><div class=\"habblet-container \"><div class=\"cbb clearfix error \"><h2 class=\"title\"></span><span style=\"float: right; font-weight: normal; font-size: 75%\">" . "</span></h2><div style=\"padding:5px\"><p>"; $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look,country,role,age FROM users WHERE rank = {$Ranks['id']} ORDER by id"); $amount = mysql_num_rows($GetUsers); while($Users = mysql_fetch_assoc($GetUsers)) { 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 "<div style='width: 64px; height: 120px; margin-top:-22px; margin-left:-10px; float: left; background: url(https://www.habbo.it/habbo-imaging/avatarimage?figure={$Users['look']}&action=crr=42&direction=&gesture=sml&size=m&img_format=gif);'><img style=\"position:absolute;margin-left:500px;margin-top:10px;\" src=\"{url}/country/{$Users['country']}.png\"><img src=\"{url}/swfs/c_images/album1584/ADM.gif\" style=\"position:absolute;margin-left:515px;margin-top:70px;\"></div>" ."<p style=\"margin-left:80px;\">{$OnlineStatus}<a href='#'><strong>{$Users['username']}</strong></a><font color='grey'> - <i>Hotel Manager</i></font><br><br><small>Motto: {$Users['motto']}</font><br>Role: {$Users['role']} <br /> Age: {$Users['age']}<br /><br /><b>Last Online: ". date('D, d M Y', $Users['last_online']) ."</b> </small> ";if($amount > 0) { echo "<br><img src='{url}/app/tpl/skins/Habbo/images/staffspace.png' style='width:520px;height:13px;'/>"; } } echo "</div></div></div>"; } ?> </div><input type="hidden" id="page-title" value="Home"> </div> </div> <div class="clear"></div> </div> [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Staff Page not working
Top