RevCMS staff page problem.

Results 1 to 3 of 3
  1. #1
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    RevCMS staff page problem.

    PHP Code:
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta http-equiv="content-type" content="text/html; charset=utf-8">
            <title>{hotelName} - Staff</title>
            
            <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/common.css" type="text/css">
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs2.js"></script>
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/visual.js"></script>
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/libs.js"></script>
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/common.js"></script>
            <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/fullcontent.js"></script>
            
            <script type="text/javascript">
                document.habboLoggedIn = true;
                var habboName = "{username}";
                var habboId = {userid};
                var habboReqPath = "";
                var habboStaticFilePath = "{url}/app/tpl/skins/Habbo";
                var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";
                var habboPartner = "";
                var habboDefaultClientPopupUrl = "{url}/client";
                window.name = "habboMain";
                if (typeof HabboClient != "undefined") {
                    HabboClient.windowName = "eac955c8dbc88172421193892a3e98fc7402021a";
                    HabboClient.maximizeWindow = true;
                }
            </script>
            
            <!--[if IE 8]>
                <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie8.css" type="text/css">
            <![endif]-->
            <!--[if lt IE 8]>
                <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie.css" type="text/css" />
            <![endif]-->
            <!--[if lt IE 7]>
                <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/ie6.css" type="text/css" />
                <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/pngfix.js"></script>
                <script type="text/javascript">
                    try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
                </script>
                <style type="text/css">
                    body { behavior: url({url}/app/tpl/skins/Habbo/js/csshover.htc); }
                </style>
            <![endif]-->
            <style type="text/css">#navi2-container{background-image:url(https://images.cheerhotel.com/web-gallery/v2/images/navi2-bottom-wide.png);}#navi2{background-image:url(https://images.cheerhotel.com/web-gallery/v2/images/navi2-borders-wide.png);}#navi2 ul{margin:0 12px;}.staffBox{border-bottom:1px dashed #cccccc;min-height:60px;}.staffBox:last-child{border-bottom:none;}</style>
        </head>
        
        <body id="home">
        
            <div id="overlay"></div>
                 <?php include ("includes/header.php"); ?>
                    <ul id="navi">
                    <?php
                            
    if(isset($_SESSION['user']['id']))
                                echo 
    '<li><a href="{url}/me">{username}</a><span></span></li>';
                                  else
                                   {
                                      echo 
    '<li><a href="{url}/register">Register Today!</a><span></span></li>';
                                   }
                    
    ?>
                        <li class="selected"><strong>Community</strong><span></span></li>
                        <li><a href="{url}/shop">Shop</a><span></span></li>
                    </ul>
                    <div id="habbos-online">
                        <div class="rounded"><span>{online} {online_text}</span></div>
                    </div>
                </div>
            </div>
            <div id="content-container">
                <div class="pngbg" id="navi2-container">
                    <div class="pngbg clearfix" id="navi2">
                        <ul>
                            <li class=""><a href="{url}/community">Community</a></li>
                            <li class=""><a href="{url}/news">News</a></li>
                            <li class=" selected ">Staff</li>
                        </ul>
                    </div>
                </div>

    <div id="container">
    <div id="content" style="position: relative" class="clearfix">
    <div style="margin-bottom:5px;margin-top:5px;margin-left:20px;" align="center">
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-5602546026435487" data-ad-slot="8865148626"></ins>
    <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
    </div>
    <div id="column1" class="column" style="width: 33.33%;">
    <?php 
    $getRanks 
    mysql_query("SELECT id,name FROM ranks WHERE id = 10 ORDER BY 1 DESC");
    while (
    $Ranks mysql_fetch_assoc($getRanks))
    {
    echo 
    '<div class="habblet-container ">   
    <div class="staffBox">     
    <div class="cbb clearfix red ">
    <h2 class="title">' 
    $Ranks['name'] . '</h2>';
    $getMembers mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by username");
    if (
    mysql_num_rows($getMembers) > 0)
    {
    $oe 1;
    while (
    $member mysql_fetch_assoc($getMembers))
    {
    if (
    $oe == 2)
    {
    $oe 1;
    }
    else
    {
    $oe 2;
    }
    echo 
    '
    <img style="margin-bottom: 4px; margin-left: 4px; position: absolute;" src="https://game.cheerhotel.com.com/habbo-imaging/avatarimage.php?figure=hr-828-1403.ca-3292-1408.sh-3027-78-110.ch-3279-1408.he-1610-1408.hd-180-2.lg-280-1408&size=s&direction=2&head_direction=3&gesture=sml&action=wav"/>
    . (($member['online'] == "1") ? '
    <span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_online.gif"/></span>'
    '<span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com.com/web-gallery/images/myhabbo/profile/habbo_offline.gif"/></span>') . '
    <table style="margin-left: 35px; padding-top: 6px;">
    <tr style="padding: 0;">
    <td>
    <strong>' 
    .$member['username'] . '</strong><br />
    Motto: ' 
    $member['motto'] . '<br />
    <p style="padding-top: 6px;"></p>'
    ;
    echo 
    '
    </td>
    </tr>
    </table>
    '
    ;
    }
    }
    else
    {
    echo 
    '<i>There is no staff in this rank yet.</i>';
    }
    echo 
    '
    </div>
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    }
    ?> 
    </div>
    </div>
    <?php 
    $getRanks 
    mysql_query("SELECT id,name FROM ranks WHERE id = 9 ORDER BY 1 DESC");
    while (
    $Ranks mysql_fetch_assoc($getRanks))
    {
    echo 
    '<div class="habblet-container ">        
    <div class="cbb clearfix settings ">
    <h2 class="title">' 
    $Ranks['name'] . '</h2>
    <div class="staffBox">'
    ;
    $getMembers mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by username");
    if (
    mysql_num_rows($getMembers) > 0)
    {
    $oe 1;
    while (
    $member mysql_fetch_assoc($getMembers))
    {
    if (
    $oe == 2)
    {
    $oe 1;
    }
    else
    {
    $oe 2;
    }
    echo 
    '
    <img style="margin-bottom: 4px; margin-left: 4px; position: absolute;" src="https://game.cheerhotel.com/habbo-imaging/avatarimage.php?figure=hr-828-1403.ca-3292-1408.sh-3027-78-110.ch-3279-1408.he-1610-1408.hd-180-2.lg-280-1408&size=s&direction=2&head_direction=3&gesture=sml&action=wav"/>
    . (($member['online'] == "1") ? '
    <span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_online.gif"/></span>'
    '<span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_offline.gif"/></span>') . '
    <table style="margin-left: 35px; padding-top: 6px;">
    <tr style="padding: 0;">
    <td>
    <strong>' 
    .$member['username'] . '</strong><br />
    Motto: ' 
    $member['motto'] . '<br />
    <p style="padding-top: 6px;"></p>'
    ;
    echo 
    '
    </td>
    </tr>
    </table>
    '
    ;
    }
    }
    else
    {
    echo 
    '<i><center>There is no staff in this rank yet.</center></i>';
    }
    echo 
    '
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    }
    ?> 
    </div>
    </div>
    <?php 
    $getRanks 
    mysql_query("SELECT id,name FROM ranks WHERE id = 8 ORDER BY 1 DESC");
    while (
    $Ranks mysql_fetch_assoc($getRanks))
    {
    echo 
    '<div class="habblet-container ">        
    <div class="cbb clearfix green">
    <h2 class="title">' 
    $Ranks['name'] . '</h2>
    <div class="staffBox">'
    ;
    $getMembers mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by username");
    if (
    mysql_num_rows($getMembers) > 0)
    {
    $oe 1;
    while (
    $member mysql_fetch_assoc($getMembers))
    {
    if (
    $oe == 2)
    {
    $oe 1;
    }
    else
    {
    $oe 2;
    }
    echo 
    '
    <img style="margin-bottom: 4px; margin-left: 4px; position: absolute;" src="https://game.cheerhotel.com/habbo-imaging/avatarimage.php?figure=hr-828-1403.ca-3292-1408.sh-3027-78-110.ch-3279-1408.he-1610-1408.hd-180-2.lg-280-1408&size=s&direction=2&head_direction=3&gesture=sml&action=wav"/>
    . (($member['online'] == "1") ? '
    <span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_online.gif"/></span>'
    '<span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_offline.gif"/></span>') . '
    <table style="margin-left: 35px; padding-top: 6px;">
    <tr style="padding: 0;">
    <td>
    <strong>' 
    .$member['username'] . '</strong><br />
    Motto: ' 
    $member['motto'] . '<br />
    <p style="padding-top: 6px;"></p>'
    ;
    echo 
    '
    </td>
    </tr>
    </table>
    '
    ;
    }
    }
    else
    {
    echo 
    '<i><center>There is no staff in this rank yet.</center></i>';
    }
    echo 
    '
    </div>
    </div>
    </div>
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script>'
    ;
    }
    ?> 
    </div>
    <div id="column2" class="column" style="width: 33.33%;">
    <?php
    $getRanks 
    mysql_query("SELECT id,name FROM ranks WHERE id = 7 ORDER BY 1 DESC");
    while (
    $Ranks mysql_fetch_assoc($getRanks))
    {
    echo 
    '<div class="habblet-container ">        
    <div class="cbb clearfix pixeldarkblue">
    <h2 class="title">' 
    $Ranks['name'] . '</h2>
    <div class="staffBox">'
    ;
    $getMembers mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by username");
    if (
    mysql_num_rows($getMembers) > 0)
    {
    $oe 1;
    while (
    $member mysql_fetch_assoc($getMembers))
    {
    if (
    $oe == 2)
    {
    $oe 1;
    }
    else
    {
    $oe 2;
    }
    echo 
    '
    <img style="margin-bottom: 4px; margin-left: 4px; position: absolute;" src="https://game.cheerhotel.com/habbo-imaging/avatarimage.php?figure=hr-828-1403.ca-3292-1408.sh-3027-78-110.ch-3279-1408.he-1610-1408.hd-180-2.lg-280-1408&size=s&direction=2&head_direction=3&gesture=sml&action=wav"/>
    . (($member['online'] == "1") ? '
    <span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_online.gif"/></span>'
    '<span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_offline.gif"/></span>') . '
    <table style="margin-left: 35px; padding-top: 6px;">
    <tr style="padding: 0;">
    <td>
    <strong>' 
    .$member['username'] . '</strong><br />
    Motto: ' 
    $member['motto'] . '<br />
    <p style="padding-top: 6px;"></p>'
    ;
    echo 
    '
    </td>
    </tr>
    </table>
    '
    ;
    }
    }
    else
    {
    echo 
    '<i><center>There is no staff in this rank yet.</center></i>';
    }
    echo 
    '
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    }
    ?> 
    </div>
    </div>
    <?php 
    $getRanks 
    mysql_query("SELECT id,name FROM ranks WHERE id = 6 ORDER BY 1 DESC");
    while (
    $Ranks mysql_fetch_assoc($getRanks))
    {
    echo 
    '<div class="habblet-container ">        
    <div class="cbb clearfix orange ">
    <h2 class="title">' 
    $Ranks['name'] . '</h2>
    <div class="staffBox">'
    ;
    $getMembers mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by username");
    if (
    mysql_num_rows($getMembers) > 0)
    {
    $oe 1;
    while (
    $member mysql_fetch_assoc($getMembers))
    {
    if (
    $oe == 2)
    {
    $oe 1;
    }
    else
    {
    $oe 2;
    }
    echo 
    '
    <img style="margin-bottom: 4px; margin-left: 4px; position: absolute;" src="https://game.cheerhotel.com/habbo-imaging/avatarimage.php?figure=hr-828-1403.ca-3292-1408.sh-3027-78-110.ch-3279-1408.he-1610-1408.hd-180-2.lg-280-1408&size=s&direction=2&head_direction=3&gesture=sml&action=wav"/>
    . (($member['online'] == "1") ? '
    <span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_online.gif"/></span>'
    '<span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_offline.gif"/></span>') . '
    <table style="margin-left: 35px; padding-top: 6px;">
    <tr style="padding: 0;">
    <td>
    <strong>' 
    .$member['username'] . '</strong><br />
    Motto: ' 
    $member['motto'] . '<br />
    <p style="padding-top: 6px;"></p>'
    ;
    echo 
    '
    </td>
    </tr>
    </table>
    '
    ;
    }
    }
    else
    {
    echo 
    '<i><center>There is no staff in this rank yet.</center></i>';
    }
    echo 
    '
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    }
    ?>  
    </div>
    </div>
    </div>
    <div id="column3" class="column" style="width: 33.33%;">
    <?php 
    $getRanks 
    mysql_query("SELECT id,name FROM ranks WHERE id = 5 ORDER BY 1 DESC");
    while (
    $Ranks mysql_fetch_assoc($getRanks))
    {
    echo 
    '<div class="habblet-container ">        
    <div class="cbb clearfix red ">
    <h2 class="title">' 
    $Ranks['name'] . '</h2>
    <div class="staffBox">'
    ;
    $getMembers mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by username");
    if (
    mysql_num_rows($getMembers) > 0)
    {
    $oe 1;
    while (
    $member mysql_fetch_assoc($getMembers))
    {
    if (
    $oe == 2)
    {
    $oe 1;
    }
    else
    {
    $oe 2;
    }
    echo 
    '

    <img style="margin-bottom: 4px; margin-left: 4px; position: absolute;" src="https://game.cheerhotel.com/habbo-imaging/avatarimage.php?figure=hr-828-1403.ca-3292-1408.sh-3027-78-110.ch-3279-1408.he-1610-1408.hd-180-2.lg-280-1408&size=s&direction=2&head_direction=3&gesture=sml&action=wav"/>
    . (($member['online'] == "1") ? '
    <span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_online.gif"/></span>'
    '<span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_offline.gif"/></span>') . '
    <table style="margin-left: 35px; padding-top: 6px;">
    <tr style="padding: 0;">
    <td>
    <strong>' 
    .$member['username'] . '</strong><br />
    Motto: ' 
    $member['motto'] . '<br />
    <p style="padding-top: 6px;"></p>'
    ;
    echo 
    '
    </td>
    </tr>
    </table>
    '
    ;
    }
    }
    else
    {
    echo 
    '<i><center>There is no staff in this rank yet.</center></i>';
    }
    echo 
    '
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    }
    ?> 
    </div>
    </div>
    <?php 
    $getRanks 
    mysql_query("SELECT id,name FROM ranks WHERE id = 4 ORDER BY 1 DESC");
    while (
    $Ranks mysql_fetch_assoc($getRanks))
    {
    echo 
    '<div class="habblet-container ">        
    <div class="cbb clearfix red ">
    <h2 class="title">' 
    $Ranks['name'] . '</h2>
    <div class="staffBox">'
    ;
    $getMembers mysql_query("SELECT username,motto,rank,last_online,online,look FROM users WHERE rank = {$Ranks['id']} ORDER by username");
    if (
    mysql_num_rows($getMembers) > 0)
    {
    $oe 1;
    while (
    $member mysql_fetch_assoc($getMembers))
    {
    if (
    $oe == 2)
    {
    $oe 1;
    }
    else
    {
    $oe 2;
    }
    echo 
    '
    <img style="margin-bottom: 4px; margin-left: 4px; position: absolute;" src="https://game.cheerhotel.com/habbo-imaging/avatarimage.php?figure=hr-828-1403.ca-3292-1408.sh-3027-78-110.ch-3279-1408.he-1610-1408.hd-180-2.lg-280-1408&size=s&direction=2&head_direction=3&gesture=sml&action=wav"/>
    . (($member['online'] == "1") ? '
    <span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_online.gif"/></span>'
    '<span style="float: right; margin-right: 4px; margin-top: 12px;"><img src="https://images.cheerhotel.com/web-gallery/images/myhabbo/profile/habbo_offline.gif"/></span>') . '
    <table style="margin-left: 35px; padding-top: 6px;">
    <tr style="padding: 0;">
    <td>
    <strong>' 
    .$member['username'] . '</strong><br />
    Motto: ' 
    $member['motto'] . '<br />
    <p style="padding-top: 6px;"></p>'
    ;
    echo 
    '
    </td>
    </tr>
    </table>
    '
    ;
    }
    }
    else
    {
    echo 
    '<i><center>There is no staff in this rank yet.</center></i>';
    }
    echo 
    '
    </div>
    </div>
    </div>
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script>'
    ;
    }
    ?>
    </div>
    <script type="text/javascript">
                HabboView.run();
            </script>
    <!--[if lt IE 7]>
            <script type="text/javascript">
            Pngfix.doPngImageFix();
            </script>
            <![endif]-->
    </div>
    <div id="footer" style="margin-top:-20px;">
    <p class="footer-links"><a href="https://cheerhotel.com/client">Launch Client</a> l <a href="https://drive.google.com/file/d/0B4QExpz9Pr06RXJvNFpRY1lKcjg/edit?usp=sharing" target="_blank">Terms of Service</a> l <a href="http://boonboards.com/">Forums</a> l <a href="https://cheerhotel.com/store">Store</a></p>
    <p class="copyright">Copyright &copy; Cheer Hotel 2014. All rights reserved to their respective owner(s). Credits to <strong>Kryptos</strong> for <strong>RevCMS</strong.</p>
                

                    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                    <!-- St4tic ad -->
                    <ins class="adsbygoogle"
                         style="display:inline-block;width:728px;height:90px"
                         data-ad-client="ca-pub-5602546026435487"
                         data-ad-slot="8865148626"></ins>
                    <script>
                    (adsbygoogle = window.adsbygoogle || []).push({});
                    </script>
            
                </div>
            </div>
        </div>
    </div>


    </body>
    </html>
    So every time I promote someone this happens.



  2. #2
    R.I.P Millercent FatalLulz is offline
    MemberRank
    Nov 2012 Join Date
    AustraliaLocation
    2,248Posts

    Re: RevCMS staff page problem.

    Why not instead of running like 6 queries to grab from different ranks, make one query? It works the same, and works fine for me?

    I can provide you with the code.

  3. #3
    Alpha Member Glee is offline
    MemberRank
    Jun 2009 Join Date
    Niagara Falls,Location
    2,225Posts

    Re: RevCMS staff page problem.

    Quote Originally Posted by FatalLulz View Post
    Why not instead of running like 6 queries to grab from different ranks, make one query? It works the same, and works fine for me?

    I can provide you with the code.
    Please do! :D



Advertisement