UberCMS eXpert Page

Results 1 to 15 of 15
  1. #1
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    UberCMS eXpert Page

    I've looked around and this hasn't been released, I know this is simple but some people might find it useful so here goes.

    Download it here:
    expert.zip

    Screenshot:


    Add this to your HTACCESS:
    PHP Code:
    RewriteRule ^expert(|/)$ /expert.php 
    Here are codes if someone wants to see them:

    Expert.php
    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''http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/newcredits.css''stylesheet'));
    $tpl->AddIncludeFile(new IncludeFile('text/javascript''http://images.habbo.com/habboweb/%web_build%/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-expert');
    $tpl->Write('</div>');

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

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

    $tpl->Output();

    ?>
    Comp-Expert
    PHP Code:
    <?php

    function GetDescr($level)
    {
        

    }

    $get dbquery("SELECT id,name FROM ranks WHERE id = 3 ");

    while (
    $group mysql_fetch_assoc($get))
    {    
        echo 
    '<div class="habblet-container ">        
    <div class="cbb clearfix blue "> 
    <h2 class="title"><span style="float: left;">' 
    clean($group['name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;">' GetDescr($group['id']) . '</span></h2>';
        
        
    $getMembers dbquery("SELECT id,username,motto,look,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="100.3%" 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.com/habbo-imaging/avatarimage?figure=' 
    $member['look'] . '&action=crr=3&direction=2&head_direction=3&gesture=sml&size=2">
                        </td>
                        <td valign="top">
                            <b style="font-size: 110%;"><a href="%www%/home/' 
    clean($member['username']) . '">' clean($member['username']) . '</a></b><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 5");
                        
                        
                        {
                            echo 
    '<img src="%www%/c_images/album1584/XXX.gif" style="float: left;">&nbsp;';
                        }
                            
                        echo 
    '</td>
                        <td valign="top" style="float: right;">
                            ' 
    . (($member['online'] == "1") ? '<b style="color: black;">Online<</b>' '<b style="color: grey;">Offline</b>') . '
                        </td>
                    </tr>
                </tbody>
                </table>'
    ;
            }
        }
        else
        {
            echo 
    '<i>There are no eXperts on Desire Hotel.</i>';
        }
        
        echo 
    '</div>
        </div> 
    </div> 
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    }

    ?>
    Comp-Expert-About
    PHP Code:
    <?php
        
    echo '<div class="habblet-container ">        
    <div class="cbb clearfix blue "> 
    <h2 class="title"><span style="float: left;">Zap eXperts</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>'
    ;
        
        
    $getMembers dbquery("SELECT id,username,motto,look,online,last_online,rank FROM users WHERE expert = '1'");
        
        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.nl/habbo-imaging/avatarimage?figure=' 
    $member['look'] . '&size=b&direction=2&head_direction=3&gesture=sml&size=m">
                        </td>
                        <td valign="top">
                            <b style="font-size: 110%;"><a href="%www%/home/' 
    clean($member['username']) . '">' clean($member['username']) . '</a></b><br />
                            <i>' 
    clean($member['motto']) . '</i><br /> Last online: ' date('d F, Y'$member['last_online']) . '
                            <br />'
    ;
                                echo 
    '<img src="%www%/c_images/album1584/XXX.gif" style="float: left;">&nbsp;';
                        echo 
    '</td>
                        <td valign="top" style="float: right;">
                            ' 
    . (($member['online'] == "1") ? '<b style="color: darkgreen;">Online</b>' '<b style="color: darkred;">Offline</b>') . '
                        </td>
                    </tr>
                </tbody>
                </table>'
    ;
            }
        }
        else
        {
            echo 
    '<i>Click <a href="http://zapgaming.net/showthread.php?t=529" target="_new">here</a> to view the eXperts.</i>';
        }
        
        echo 
    '</div>
        </div> 
    </div> 
    <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '
    ;
    You might want to edit the content, I couldn't think of anything.

    This is a noob release, It was made for the noobs.

    Thanks,
    Seano2o6
    Last edited by Papercup; 24-08-11 at 05:31 PM.


  2. #2
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: UberCMS eXpert Page

    Nice :)

  3. #3
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: UberCMS eXpert Page

    Thanks George ;)

  4. #4
    Live Ocottish Sverlord Joopie is online now
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: UberCMS eXpert Page

    Better one Not tested

    PHP Code:
    <?php 
        $get 
    dbquery('SELECT `users`.`id`,`users`.`username`,`users`.`motto`,`users`.`look`,`users`.`online`,`ranks`.`id` AS `rank_id`,`ranks`.`name` AS `rank_name` FROM `users` INNER JOINT `ranks` ON `ranks`.`id` = `users`.`rank` WHERE `users`.`rank` = "3"'); 
        
        
    $i 0;
        
    $end mysql_num_rows($get);
        
        echo 
    '<div class="habblet-container ">         
                    <div class="cbb clearfix blue ">  
                    <h2 class="title"><span style="float: left;">' 
    clean($member['rank_name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>
                    <div class="box-content">'
    ;
        
        if (
    $end <= 0)
        {
            echo 
    '<i>There are no eXperts on Desire Hotel.</i>';
        }
        else
        {
            while (
    $member mysql_fetch_assoc($get)) 
            { 
                
    $i = ($i == 0) ? 0
                echo 
    '<table width="100.3%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 1) ? '#fff' '#E6E6E6') . ';"> 
              <tbody> 
              <tr> 
              <td valign="middle" width="25"> 
              <img style="margin-top: -10px;" src="http://www.habbo.com/habbo-imaging/avatarimage?figure=' 
    $member['look'] . '&action=crr=3&direction=2&head_direction=3&gesture=sml&size=2"> 
              </td> 
              <td valign="top"> 
              <b style="font-size: 110%;"><a href="%www%/home/' 
    clean($member['username']) . '">' clean($member['username']) . '</a></b><br /> 
              <i>' 
    clean($member['motto']) . '</i><br /> 
              <br />   
              </td> 
              <td valign="top" style="float: right;"> 
              ' 
    . (($member['online'] == "1") ? '<b style="color: black;">Online<</b>' '<b style="color: grey;">Offline</b>') . 
              </td> 
              </tr> 
              </tbody> 
              </table>'
    ;  
            }
        } 
             
        echo 
    '</div> 
        </div>  
        </div>  
        <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '

    ?>

  5. #5
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: UberCMS eXpert Page

    Quote Originally Posted by joopie View Post
    Better one Not tested

    PHP Code:
    <?php 
        $get 
    dbquery('SELECT `users`.`id`,`users`.`username`,`users`.`motto`,`users`.`look`,`users`.`online`,`ranks`.`id` AS `rank_id`,`ranks`.`name` AS `rank_name` FROM `users` INNER JOINT `ranks` ON `ranks`.`id` = `users`.`rank` WHERE `users`.`rank` = "3"'); 
        
        
    $i 0;
        
    $end mysql_num_rows($get);
        
        echo 
    '<div class="habblet-container ">         
                    <div class="cbb clearfix blue ">  
                    <h2 class="title"><span style="float: left;">' 
    clean($member['rank_name']) . 's</span> <span style="float: right; font-weight: normal; font-size: 75%;"></span></h2>
                    <div class="box-content">'
    ;
        
        if (
    $end <= 0)
        {
            echo 
    '<i>There are no eXperts on Desire Hotel.</i>';
        }
        else
        {
            while (
    $member mysql_fetch_assoc($get)) 
            { 
                
    $i = ($i == 0) ? 0
                echo 
    '<table width="100.3%" style="padding: 5px; margin-left: -15px; background-color: ' . (($oe == 1) ? '#fff' '#E6E6E6') . ';"> 
              <tbody> 
              <tr> 
              <td valign="middle" width="25"> 
              <img style="margin-top: -10px;" src="http://www.habbo.com/habbo-imaging/avatarimage?figure=' 
    $member['look'] . '&action=crr=3&direction=2&head_direction=3&gesture=sml&size=2"> 
              </td> 
              <td valign="top"> 
              <b style="font-size: 110%;"><a href="%www%/home/' 
    clean($member['username']) . '">' clean($member['username']) . '</a></b><br /> 
              <i>' 
    clean($member['motto']) . '</i><br /> 
              <br />   
              </td> 
              <td valign="top" style="float: right;"> 
              ' 
    . (($member['online'] == "1") ? '<b style="color: black;">Online<</b>' '<b style="color: grey;">Offline</b>') . 
              </td> 
              </tr> 
              </tbody> 
              </table>'
    ;  
            }
        } 
             
        echo 
    '</div> 
        </div>  
        </div>  
        <script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script> '

    ?>
    Doesn't work.

  6. #6
    Live Ocottish Sverlord Joopie is online now
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: UberCMS eXpert Page

    Quote Originally Posted by Seano2o6 View Post
    Doesn't work.
    Oeps

    Change the query into:

    Code:
    SELECT `users`.`id`,`users`.`username`,`users`.`motto`,`users`.`look`,`users`.`online`,`ranks`.`id` AS `rank_id`,`ranks`.`name` AS `rank_name` FROM `users` INNER JOIN `ranks` ON `ranks`.`id` = `users`.`rank` WHERE `users`.`rank` = "3"

  7. #7
    Old Habbo Developer AresCJ is offline
    MemberRank
    Jan 2009 Join Date
    USALocation
    1,183Posts

    Re: UberCMS eXpert Page

    Nice, but I do see Zap Hotel linking, might want to remove that to be on the safe side.

  8. #8
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: UberCMS eXpert Page

    Yeah, It was just the badge image. Now its linked to %www%/c_images/album1584/XXX.gif

  9. #9
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: UberCMS eXpert Page

    This is just the standard UberCMS staff page with the rank edited.. nothing special?

  10. #10
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: UberCMS eXpert Page

    Quote Originally Posted by Matthew View Post
    This is just the standard UberCMS staff page with the rank edited.. nothing special?
    What have you released for the community?

  11. #11
    8-bit Bitch Slapper Alpha Ducky is offline
    MemberRank
    Mar 2007 Join Date
    In My HouseLocation
    2,436Posts

    Re: UberCMS eXpert Page

    Quote Originally Posted by Seano2o6 View Post
    What have you released for the community?
    But he does have a point...
    just a few lines changed/removed and your done.
    Nothing really special.
    Just saves time for lazy people.

  12. #12
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: UberCMS eXpert Page

    Quote Originally Posted by Seano2o6 View Post
    What have you released for the community?
    Tell me why I should release any of my work, time or effort into a sect pool community like this? This community is basically dead anyways.

    Until the rippers and claimers vanish into the night, I and many others will never release any of our work. Your very own thread is a pure example as to why I do not contribute anything.

  13. #13
    Apprentice HabboSWFMaker is offline
    MemberRank
    Jul 2011 Join Date
    20Posts

    Re: UberCMS eXpert Page

    I didn't know it was that hard to edit the staff page, eh?

  14. #14
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: UberCMS eXpert Page

    Quote Originally Posted by Matthew View Post
    Tell me why I should release any of my work, time or effort into a sect pool community like this? This community is basically dead anyways.

    Until the rippers and claimers vanish into the night, I and many others will never release any of our work. Your very own thread is a pure example as to why I do not contribute anything.
    +1 good sir.

  15. #15
    Enthusiast FreakDevHotel is offline
    MemberRank
    Jun 2011 Join Date
    38Posts

    Re: UberCMS eXpert Page

    thanks :)



Advertisement