UberCMS Online Page EDIT!

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    UberCMS Online Page EDIT!

    Hi,

    I recently worked for Obbo hotel, and they had an online users page so i decided to edit it, and added it as a main page!!

    Screen shot is below :')

    Right,

    Online Page PHP:
    Save this as online.php
    PHP Code:
    <?php
    /*=======================================================================
    | UberCMS - Advanced Website and Content Management System for uberEmu
    | #######################################################################
    | Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'
    | http://www.meth0d.org & http://www.sulake.biz
    | #######################################################################
    | 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'20);

    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-online');
    $tpl->Write('</div>');

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

    $tpl->AddGeneric('generic-column3');
    $tpl->AddGeneric('footer');

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

    $tpl->Output();

    ?>
    Comp-online.tpl
    Save this as comp-online.tpl
    PHP Code:

    <div class="habblet-container ">        
    <div class="cbb clearfix blue "> 
    <h2 class="title"><span style="float: left;">Online Users:</span> </h2>
    <div align="left">
        <?php

    require_once "global.php";

    if (!
    LOGGED_IN)
    {
        
    header("Location: ./index.html");
        exit;
    }

    $getUsers dbquery("SELECT id FROM users WHERE online = '1' ORDER BY ID");

    if (
    mysql_num_rows($getUsers) > 0)
    {
        echo 
    '<ul style="margin: 0;">';
        
        while (
    $u mysql_fetch_assoc($getUsers))
        {
            echo 
    '<li style="margin-left: 20px;">';
            echo 
    $users->formatUsername($u['id']);
            echo 
    '</li>';
        }
        
        echo 
    '</ul>';
    }
    else
    {
        echo 
    '<br /><br /><i>There are currently no users online.</i>';
    }

    ?>

        </div>
    </div>
        </div>
    Comp-online-info.tpl
    Save this as comp-online.tpl
    PHP Code:
    <div class="habblet-container ">        
    <
    div class="cbb clearfix lightbrown "
        
    <
    h2 class="title">What does this mean?</h2

    <
    div id="habboclub-info" class="box-content"

    All this page isit's to show you who is online, so like if they're no on your friend list then you can get their name from here and add them!<br /><br />

    </
    div>

    </
    div>
    </
    div>
    <
    script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
    Or just download and replace the files from the ZIP below,
    Also, remember to add the page into the navigation on the database! but add it as online.php !! Or it will not work!

    Cheers.

    Download link;
    comp-online-info.zip

    Image Link;
    http://img88.imageshack.us/img88/4397/onlineix.png

    - Remember if this helps - Please do thank my post :'). -
    Last edited by Sledmore; 21-06-10 at 07:27 PM.


  2. #2
    Enthusiast iDesign is offline
    MemberRank
    Oct 2009 Join Date
    DisneyLandLocation
    37Posts

    Re: UberCMS Online Page EDIT!

    Wow this is awsome, and really useful, Good job..

  3. #3
    Don't buff my pylon! Admiral-Speedy is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,292Posts

    Re: UberCMS Online Page EDIT!

    Very useful, great release Sledmore.

  4. #4
    C# & Javascript obrienray1 is offline
    MemberRank
    Nov 2009 Join Date
    MiamiLocation
    305Posts

    Re: UberCMS Online Page EDIT!

    another good release Sledmore awesome

  5. #5
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: UberCMS Online Page EDIT!

    Cheers guys :') ^^

    Appreciated! :')

  6. #6
    C# & Javascript obrienray1 is offline
    MemberRank
    Nov 2009 Join Date
    MiamiLocation
    305Posts

    Re: UberCMS Online Page EDIT!

    you must love to code now lol

  7. #7
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: UberCMS Online Page EDIT!

    Good release i suppose. Well done!

  8. #8
    Account Upgraded | Title Enabled! iJakey is offline
    MemberRank
    May 2010 Join Date
    355Posts

    Re: UberCMS Online Page EDIT!

    I thought it was kind of a stupid idea, but nice I suppose.

  9. #9
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: UberCMS Online Page EDIT!

    it is stupid ^^ But then again, if you don't have the person on your list, and you see tyhem guys on there, you can add them and stalk them!

  10. #10
    Account Upgraded | Title Enabled! iJakey is offline
    MemberRank
    May 2010 Join Date
    355Posts

    Re: UberCMS Online Page EDIT!

    True, but thats what :whosonline is for

  11. #11
    Enthusiast KingStupid is offline
    MemberRank
    Jun 2010 Join Date
    45Posts

    Re: UberCMS Online Page EDIT!

    Quote Originally Posted by iJakey View Post
    True, but thats what :whosonline is for
    But that doesnt work in flash... right?..

    Offtopic: iJakey look at the custom newsheaders topic

  12. #12
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: UberCMS Online Page EDIT!

    Quote Originally Posted by iJakey View Post
    True, but thats what :whosonline is for
    Smart guy, forgot about that LOL, but yeah it was already in the ubercms by meth0d, all i did was made it to a propper page instead of an boring list. :P

  13. #13
    Bierlust kstor1234 is offline
    MemberRank
    Apr 2006 Join Date
    BedLocation
    820Posts

    Re: UberCMS Online Page EDIT!

    Thanks, good work, will edit a bit if I get anything new I'll post it...

  14. #14
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: UberCMS Online Page EDIT!

    Quote Originally Posted by kstor1234 View Post
    Thanks, good work, will edit a bit if I get anything new I'll post it...
    Cheers :')

  15. #15
    Account Upgraded | Title Enabled! Noris is offline
    MemberRank
    Mar 2009 Join Date
    rootLocation
    218Posts

    Re: UberCMS Online Page EDIT!

    useful useful great fix.
    I will add just one mirror
    http://ul.to/wxvlef



Page 1 of 2 12 LastLast

Advertisement