Staff Page

Results 1 to 6 of 6
  1. #1
    Apprentice Chase is offline
    MemberRank
    May 2015 Join Date
    9Posts

    Staff Page

    I need a RevCMS Staff Page that works with Azure EMU.


  2. #2
    Enthusiast EmielJ is offline
    MemberRank
    Aug 2012 Join Date
    a HouseLocation
    44Posts

    Re: Staff Page

    Spoiler:
    <?php
    $GetRanks = mysql_query("SELECT username,rank FROM users WHERE rank = 10");
    while($Ranks = mysql_fetch_assoc($GetRanks))
    {
    echo "<div class="habblet-container "><div class="cbb clearfix blue "><h2 class="title">Hotel Manager</h2><div style="padding:5px"><p>";
    $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = 10");
    while($Users = mysql_fetch_assoc($GetUsers))
    {
    setlocale(LC_ALL, 'nld_nld') or setlocale(LC_ALL, 'NL_NL');
    if($Users['online'] == 1){ $OnlineStatus = "<font color="darkgreen"><b>Online!</b></font>"; } else { $OnlineStatus = "<font color="darkred"><b>Offline</b></font>"; }
    echo "<img style="position:absolute;" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure={$Users['look']}&direction=2&head_direction=2&gesture=smd&size=m">"
    ."<p style="margin-left:80px;margin-top:20px;">{hotelname}naam: <strong>{$Users['username']}</strong><br>Status: <strong>{$Users['motto']}</strong><br>Laatst ingelogd: <strong>". strftime(("%d-%b-%Y %H:%M"), $Users['last_online']) ."</p></strong>"
    ."<p style="float:right;margin-top:-30px;margin-right:5px;">{$OnlineStatus}</p><br><br><br>";
    }
    echo "</div></div></div>";
    }
    ?>

    Change to your desired rank where it says :
    SELECT username,rank FROM users WHERE rank = 10
    SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = 10
    also change : <h2 class="title">Hotel Manager</h2> to your desired title

  3. #3
    Account Upgraded | Title Enabled! UartigZone is offline
    MemberRank
    Dec 2013 Join Date
    LoserlandLocation
    441Posts

    Re: Staff Page

    Quote Originally Posted by EmielJ View Post
    Spoiler:
    <?php
    $GetRanks = mysql_query("SELECT username,rank FROM users WHERE rank = 10");
    while($Ranks = mysql_fetch_assoc($GetRanks))
    {
    echo "<div class="habblet-container "><div class="cbb clearfix blue "><h2 class="title">Hotel Manager</h2><div style="padding:5px"><p>";
    $GetUsers = mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = 10");
    while($Users = mysql_fetch_assoc($GetUsers))
    {
    setlocale(LC_ALL, 'nld_nld') or setlocale(LC_ALL, 'NL_NL');
    if($Users['online'] == 1){ $OnlineStatus = "<font color="darkgreen"><b>Online!</b></font>"; } else { $OnlineStatus = "<font color="darkred"><b>Offline</b></font>"; }
    echo "<img style="position:absolute;" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure={$Users['look']}&direction=2&head_direction=2&gesture=smd&size=m">"
    ."<p style="margin-left:80px;margin-top:20px;">{hotelname}naam: <strong>{$Users['username']}</strong><br>Status: <strong>{$Users['motto']}</strong><br>Laatst ingelogd: <strong>". strftime(("%d-%b-%Y %H:%M"), $Users['last_online']) ."</p></strong>"
    ."<p style="float:right;margin-top:-30px;margin-right:5px;">{$OnlineStatus}</p><br><br><br>";
    }
    echo "</div></div></div>";
    }
    ?>

    Change to your desired rank where it says :
    SELECT username,rank FROM users WHERE rank = 10
    SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = 10
    also change : <h2 class="title">Hotel Manager</h2> to your desired title
    Not working for me

  4. #4
    Enthusiast EmielJ is offline
    MemberRank
    Aug 2012 Join Date
    a HouseLocation
    44Posts

    Re: Staff Page

    Quote Originally Posted by UartigZone View Post
    Not working for me
    Ah,
    Ragezone deletes some slashes in the code. I've posted it on <?php $GetRanks = mysql_query("SELECT usernam - Pastebin.com
    This one should work. Do the same as before

  5. #5
    Account Upgraded | Title Enabled! UartigZone is offline
    MemberRank
    Dec 2013 Join Date
    LoserlandLocation
    441Posts

    Re: Staff Page

    Quote Originally Posted by EmielJ View Post
    Ah,
    Ragezone deletes some slashes in the code. I've posted it on <?php $GetRanks = mysql_query("SELECT usernam - Pastebin.com
    This one should work. Do the same as before
    Works but it show it two times on the page?

  6. #6
    Enthusiast EmielJ is offline
    MemberRank
    Aug 2012 Join Date
    a HouseLocation
    44Posts

    Re: Staff Page

    Quote Originally Posted by UartigZone View Post
    Works but it show it two times on the page?
    I had the same, I removed the code, saved the page, added the code again ( made sure there was no other code ), and then it worked



Advertisement