How to add a branch on the staff page

GangnamStyle

HTML Advanced Coder
Jan 8, 2012
121
8
Go to your HTDOCS/wwwrooter or whatever you keep your hotel files. Open up App-->tpl-->Skin-->(SKIN Your using)
Then open up the staff page You should find near to the bottom depending what SKIN Your using a code like:
PHP:
<div class="cbb clearfix red ">
                                    <h2 class="title">{Hotelname} Moderators</h2>
      <?php
                            $GetRanks = mysql_query("SELECT id,name FROM ranks WHERE id = 5");
                            while($Ranks = mysql_fetch_assoc($GetRanks))
                            {
                                echo "<div class=\"habblet-container \"><div class=\"cbb clearfix blue \"><div style=\"padding:5px\"><p>";
                                $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']}");
                                while($Users = mysql_fetch_assoc($GetUsers))
                                {
                                    if($Users['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>On Duty</b></font>"; } else { $OnlineStatus = "<font color=\"blue\"><b>Off Duty</b></font>"; }
                                    echo "<img style=\"position:absolute;margin:-20px 0 0 0;\" src=\"http://www.habbo.fr/habbo-imaging/avatarimage?figure={$Users['look']}&direction=2&head_direction=2&gesture=smd&size=l\">"
                                        ."<p style=\"margin-left:65px;margin-top:10px;\"><strong>{$Users['username']}</strong></br><i>{$Users['motto']}</i><br><br>"
                                        ."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>";
                                }
                                echo "</div></div></div>";
                            }
                        ?>

Or something similar, Underneath Add another code but add changes to them so they have no errors E.G Changing ranks from 5 to 6

hope it helped!
 

Users who are viewing this thread

Top