UberCMS Staff page edit

Results 1 to 19 of 19
  1. #1
    Account Upgraded | Title Enabled! SubZ is offline
    MemberRank
    Feb 2012 Join Date
    in a boatLocation
    455Posts

    UberCMS Staff page edit

    Hello everybody, Jay here. Had nothing to do, so I decided to 'pimp up' the staff page. Just a tiny edit, but it does look nice.

    Screenshot:

    If you like it, replace your staff.php with this:

    PHP Code:
    <?php
    /*=======================================================================
    | UberCMS - Advanced Website and Content Management System for uberEmu
    | #######################################################################
    | Copyright (c) 2010, Roy 'Meth0d'
    | http://www.meth0d.org
    | #######################################################################
    | This program is free software: you can redistribute it and/or modify
    | it under the terms of the GNU General Public License as published by
    | the Free Software Foundation, either version 3 of the License, or
    | (at your option) any later version.
    | #######################################################################
    | This program is distributed in the hope that it will be useful,
    | but WITHOUT ANY WARRANTY; without even the implied warranty of
    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    | GNU General Public License for more details.
    \======================================================================*/

    define('TAB_ID'5);
    define('PAGE_ID'16);

    require_once 
    "global.php";

    $tpl->Init();

    $tpl->AddGeneric('head-init');

    $tpl->AddIncludeSet('generic');
    $tpl->AddIncludeFile(new IncludeFile('text/css''%www%/web-gallery/v2/styles/newcredits.css''stylesheet'));
    $tpl->AddIncludeFile(new IncludeFile('text/javascript''%www%/web-gallery/static/js/newcredits.js'));
    $tpl->WriteIncludeFiles();

    $tpl->AddGeneric('head-overrides-generic');
    $tpl->AddGeneric('head-bottom');
    $tpl->AddGeneric('generic-top');

    $tpl->Write('<div id="column1" class="column">');
    $tpl->AddGeneric('comp-staff');
    $tpl->Write('</div>');

    $tpl->Write('<div id="column2" class="column">');
    $tpl->AddGeneric('comp-staff-about');
    $tpl->Write('</div>');




    $tpl->SetParam('page_title''Staff');
    $tpl->SetParam('body_id''home');

    $tpl->Output();

    ?>
    And your comp-staff.tpl:

    PHP Code:
    <div id="container">
    <div id="content" style="position: relative" class="clearfix"><div id="column1" class="column"><div class="habblet-container ">        
    <div class="cbb clearfix pixellightblue ">
    <h2 class="title"><span style="float: left";>What do the Phaze staff do?</h2>
    <div class="box-content">
        <p>
    Phaze staff are people behind the curtain who manage, moderate and maintain the hotel to ensure we remain online and afloat on a daily basis. Members of upper management ensure Phaze runs like clockwork 24/7 to give our users the best Habbo private server experience possible.    
        </p>
    </div>    
    </div>
    </div>
    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
    <div class="habblet-container ">        
    <div class="cbb clearfix pixellightblue ">

    <h2 class="title"><span style="float: left";>How do I become a Phaze staff member?</span></h2>
    <div class="box-content">
    <p>If you are looking to join the Phaze team, then you're at the right place! If we require a new staff member or someone to furfill a certain job position then we will list it on this page below, so be sure to keep checking back!</p>
    <table width="450px" style="background: #E6E6E6; padding:8px 13px; margin-left: -15px; margin-top: 7px;">

        <tbody>
            <tr>
            <td>
                <b style="font-size: 130%;">No open positions right now</b><br><br>
                <img src="http://phazehotel.com/images/ADM.gif" border="0" align="right" alt="" style="margin-left: 10px;">Sorry, there are no open positions at this time. Please check back soon.<br><br>

    As soon as we require or need a new staff member this page will be updated.
                    <br><br><b style="font-size: 120%;"><a href="http://phazehotel.com/community/staff" target="_blank">To apply, click here &raquo;</a></b>
                    <br>
            </td>
            </tr>
        </tbody>
    </table>
    </div>
    </div>
    </div>

    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></div><div id="column2" class="column"><div class="habblet-container ">        

                        <td valign="top" style="float: right;">
                        </td>
                    </tr>
                </tbody>
                </table></div>
                
                
                
                
                
                



    <?php

    function GetDescr($level)
    {
        switch (
    $level)
        {

                    case 
    8:

                            return 
    '';

            case 
    7:

                return 
    '';

            case 
    6:

                return 
    '';

            case 
    5:

                return 
    '';

            case 
    4:

                return 
    '';

            case 
    3:

                return 
    '';

            default:

                return 
    '';
        }
    }

    $getGroups dbquery("SELECT id,name FROM ranks WHERE id >= 4 ORDER BY id DESC");

    while (
    $group mysql_fetch_assoc($getGroups))
    {
        echo 
    '<div class="habblet-container ">
    <div class="cbb clearfix pixeldarkblue ">
    <h2 class="title"><span style="float: left;">' 
    clean($group['name']) . '</span> <span style="float: right; font-weight: normal; font-size: 75%;">' GetDescr($group['id']) . '</span></h2>';

        
    $getMembers dbquery("SELECT id,username,motto,look,online, last_online FROM users WHERE rank = '" $group['id'] . "'");
        

        echo 
    '<div class="box-content">';

        if (
    mysql_num_rows($getMembers) > 0)
        {
            
    $oe 1;

            while (
    $member mysql_fetch_assoc($getMembers))
            {
                if (
    $oe == 2)
                {
                    
    $oe 1;
                }
                else
                {
                    
    $oe 2;
                }

                echo 
    '<table width="107%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 2) ? '#fff' '#E6E6E6') . ';">
                <tbody>
                    <tr>
                        <td valign="middle" width="25">
                            <img style="margin-top: -10px;" src="http://www.habbo.es/habbo-imaging/avatarimage?figure=' 
    $member['look'] . '&size=b&direction=4&head_direction=3&action=wlk&gesture=sml&size=s"">
                        </td>
                        <td valign="top">
                            <b style="font-size: 110%;"><a href="%www%/home/' 
    clean($member['username']) . '">' clean($member['username']) . '</a></b> ' . (($member['online'] == "1") ? '<img src="%www%/web-gallery/v2/images/online.gif" style="float: right;">
    '<img src="%www%/web-gallery/v2/images/offline.gif" style="float: right;">') . '<br />
                            <i>' 
    clean($member['motto']) . '</i><br />
                            <br />'
    ;
                            
                        
                            
                        
    $getBadges dbquery("SELECT * FROM user_badges WHERE user_id = '" $member['id'] . "' AND badge_slot >= 1 ORDER BY badge_slot DESC LIMIT 1");
                        
                        while (
    $b mysql_fetch_assoc($getBadges))
                        {
                            echo 
    "<b>Badges:</b> $date<br><br>&nbsp;";
                            echo 
    '<img src="http://images.habbo.com/c_images/album1584/' $b['badge_id'] . '.gif" style="float: left;">';
                        }
                            
                        echo 
    '</td>
                        <td valign="top" style="float: right;">
                            
                        </td>
                    </tr>
                </tbody>
                </table>'
    ;
            }
        }
        
        else
        {
            echo 
    '<i>There are no users in this staff group yet.</i>';
        }

        echo 
    '</div>
        </div>
    </div>
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    }

    ?>
    70% Credits to BobbaLodge for the design.
    30% Me for releasing

    Please like! =]
    Last edited by SubZ; 29-06-12 at 09:46 PM.


  2. #2
    Account Upgraded | Title Enabled! NathStanley is offline
    MemberRank
    Apr 2012 Join Date
    302Posts

    Re: UberCMS Staff page edit

    Screenshot isn't loading, could you fix the link please?

    Doesn't matter, loads now.

  3. #3
    Novice Radius is offline
    MemberRank
    May 2012 Join Date
    Manchester, UKLocation
    2Posts

    Re: UberCMS Staff page edit

    Very nice edit, love the release. Great work 9/10

  4. #4
    Zephyr Studios PRIZM is offline
    MemberRank
    Feb 2012 Join Date
    DenmarkLocation
    2,291Posts

    Re: UberCMS Staff page edit

    Well done, i like this! I wish i could marry me with this staff page :-)

  5. #5
    Enthusiast Sh3ld0s is offline
    MemberRank
    Apr 2012 Join Date
    29Posts

    Re: UberCMS Staff page edit

    Nice,Keep Up The Good Working...x)

  6. #6
    Account Upgraded | Title Enabled! sidney023 is offline
    MemberRank
    Feb 2012 Join Date
    NetherlandsLocation
    251Posts

    Re: UberCMS Staff page edit

    Nice! I'm think of going to code for revcms to, its verry nice (and I use RevCms).

  7. #7
    Apprentice DunD is offline
    MemberRank
    May 2012 Join Date
    14Posts

    Re: UberCMS Staff page edit

    does it work at all with revcms?

  8. #8
    Account Upgraded | Title Enabled! SubZ is offline
    MemberRank
    Feb 2012 Join Date
    in a boatLocation
    455Posts

    Re: UberCMS Staff page edit

    Quote Originally Posted by DunD View Post
    does it work at all with revcms?
    No, I'm afraid if you want this for RevCMS, you'll have to convert it.

  9. #9
    Account Upgraded | Title Enabled! ηєwв is offline
    MemberRank
    Jun 2007 Join Date
    United KingdomLocation
    258Posts

    Re: UberCMS Staff page edit

    All you did was swap the sides over? amazing release /sarcasm

  10. #10
    Enthusiast Dylannn is offline
    MemberRank
    Jan 2012 Join Date
    39Posts

    Re: UberCMS Staff page edit

    Nice release!

  11. #11
    Account Upgraded | Title Enabled! SubZ is offline
    MemberRank
    Feb 2012 Join Date
    in a boatLocation
    455Posts

    Re: UberCMS Staff page edit

    Quote Originally Posted by ηєwв View Post
    All you did was swap the sides over? amazing release /sarcasm
    Atleast it's something..

  12. #12
    Hi. Wouto is offline
    MemberRank
    Feb 2011 Join Date
    London, UKLocation
    236Posts

    Re: UberCMS Staff page edit

    From all I can see, you just ripped it from Rocket Hoteland change the colours.

    0/10.


    Credits should go to Rocket .
    Last edited by Wouto; 24-06-12 at 04:04 PM.

  13. #13
    Grenafukindear Grenadier is offline
    MemberRank
    Feb 2010 Join Date
    127.0.0.1Location
    1,299Posts

    Re: UberCMS Staff page edit

    Nice i like i would use it but i dont use Uber im sure it will be useful

  14. #14
    Account Upgraded | Title Enabled! ELSD is offline
    MemberRank
    Sep 2011 Join Date
    Chi-TownLocation
    1,213Posts

    Re: UberCMS Staff page edit

    Quote Originally Posted by TheJack View Post
    From all I can see, you just ripped it from Rocket Hoteland change the colours.

    0/10.


    Credits should go to Rocket .
    ahha your arguing over the credits of a simple edit?

  15. #15
    Account Upgraded | Title Enabled! Flurrie is offline
    MemberRank
    Jun 2010 Join Date
    281Posts

    Re: UberCMS Staff page edit

    Quote Originally Posted by TheJack View Post
    From all I can see, you just ripped it from Rocket Hoteland change the colours.

    0/10.


    Credits should go to Rocket .
    Don't get hard. It originally came from BobbaLodge.

  16. #16
    Account Upgraded | Title Enabled! SubZ is offline
    MemberRank
    Feb 2012 Join Date
    in a boatLocation
    455Posts

    Re: UberCMS Staff page edit

    Quote Originally Posted by TheJack View Post
    From all I can see, you just ripped it from Rocket Hoteland change the colours.

    0/10.


    Credits should go to Rocket .
    Actually, this is from bobbalodge, and now you want credits?

  17. #17
    hoi ik ben cool Merijn is offline
    MemberRank
    Dec 2009 Join Date
    The NetherlandsLocation
    492Posts

    Re: UberCMS Staff page edit

    Quote Originally Posted by SubZ View Post
    Actually, this is from bobbalodge, and now you want credits?
    Credits for just a "simple edit" is not needed in my opinion. It's just a fact you made something custom, and i like it.

  18. #18
    Web & Interaction Design Gangnam is offline
    MemberRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    Re: UberCMS Staff page edit

    Nothing that can't be done with a spare two minutes. The grey/white part in the Founders box looks odd considering it only pads out on the right side. :S

  19. #19
    Apprentice B0bStatue is offline
    MemberRank
    Jun 2012 Join Date
    WentzvilleLocation
    17Posts

    Re: UberCMS Staff page edit

    Nice! I really like it. (:



Advertisement