Welcome to the RaGEZONE - MMORPG development forums.

UberCMS new me page

This is a discussion on UberCMS new me page within the Habbo Releases forums, part of the Habbo Hotel category; Here you go, used this on my old cms. This is the new habbo.com me page me.php - PHP Code: ...

Page 1 of 4 1234 LastLast
Results 1 to 15 of 48
  1. #1
    Infraction Banned
    Rank
    Subscriber
    Join Date
    Feb 2012
    Location
    Alberta
    Posts
    1,067
    Liked
    271

    UberCMS new me page

    Click
    Here you go, used this on my old cms.
    This is the new habbo.com me page
    me.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'1);
    define('PAGE_ID'2);

    require_once 
    "global.php";

    if (!
    LOGGED_IN)
    {
        
    header("Location: " WWW "/");
        exit;
    }
    else if (
    $users->GetUserVar(USER_ID'newbie_status') == "0")
    {
        
    header("Location: " WWW "/register/welcome");
        exit;
    }

    // Initialize template system
    $tpl->Init();

    // Initial variables
    $tpl->SetParam('page_title''Home');

    // Generate page header
    $tpl->AddGeneric('head-init');
    $tpl->AddIncludeSet('generic');
    $tpl->AddIncludeFile(new IncludeFile('text/css''http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/personal.css''stylesheet'));
    $tpl->AddIncludeFile(new IncludeFile('text/javascript''http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/habboclub.js'));
    $tpl->AddIncludeFile(new IncludeFile('text/css''http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/minimail.css''stylesheet'));
    $tpl->AddIncludeFile(new IncludeFile('text/css''http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/control.textarea.css''stylesheet'));
    $tpl->AddIncludeFile(new IncludeFile('text/javascript''http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/minimail.js'));
    $tpl->WriteIncludeFiles();
    $tpl->AddGeneric('head-overrides-generic');
    $tpl->AddGeneric('head-bottom');

    // Generate generic top/navigation/login box
    $tpl->AddGeneric('generic-top');

    // Column 1
    $tpl->Write('<div id="column1" class="column">');

    // Me/infofeed widget
    $compMe = new Template('comp-me');
    $compMe->SetParam('look'$users->GetUserVar(USER_ID'look'));
    $compMe->SetParam('motto'$users->GetUserVar(USER_ID'motto'));
    $compMe->SetParam('creditsBalance'intval($users->GetUserVar(USER_ID'credits')));
    $compMe->SetParam('pixelsBalance'intval($users->GetUserVar(USER_ID'activity_points')));
    $compMe->SetParam('lastSignedIn'$users->GetUserVar(USER_ID'last_online'));
    $compMe->SetParam('clubStatus', ($users->HasClub(USER_ID)) ? '<a href="%www%/credits/uberclub">' $users->GetClubDays(USER_ID) . '</a> Days' '<a href="%www%/credits/uberclub">Join Uber Club &raquo;</a>');
    //$compMe->SetParam('clubStatus', '');
    $tpl->AddTemplate($compMe);


    $tpl->Write('</div>');

    // Column 2


    // Column 3
    $tpl->AddGeneric('generic-column3');

    // Footer
    $tpl->AddGeneric('footer');

    // Output the page
    $tpl->Output();

    ?>
    Now go to inc/tpl open comp-me.tpl and replace it with so
    PHP Code:
        <link rel="stylesheet" href="http://images.habbo.com/habboweb/%web_build%/web-gallery/static/styles/lightweightmepage.css" type="text/css" />


     <
    div id="wide-personal-info">

        <
    div id="habbo-plate">
                <
    a href="http://www.habbzo.net/profile">
                <
    img alt="%habboName%" src="http://www.habbo.co.uk/habbo-imaging/avatarimage?figure=%look%">
            </
    a>
        </
    div>

        <
    div id="name-box" class="info-box">
            <
    div class="label">Username:</div>
            <
    div class="content">%habboName%</div>
        </
    div>
        <
    div id="motto-box" class="info-box">
            <
    div class="label">Motto:</div>
            <
    div class="content">
            %
    motto% - <a href="/profile">Change</a>
            </
    div>
        </
    div>
        <
    div id="last-logged-in-box" class="info-box">
            <
    div class="label">Credits:</div>
            <
    div class="content">%creditsBalance%</div>
        </
    div>

    <
    div class="enter-hotel-btn">
        <
    div class="open enter-btn">
                <
    a href="%www%/client" target="e61a1d2f6d9ba2b022fd840a0645cff02431f253" onclick="HabboClient.openOrFocus(this); return false;">Enter Habbzo Hotel<i></i></a>
            <
    b></b>
        </
    div>
    </
    div>
    </
    div>



    <
    div id="promo-box">



        <
    div id="promo-bullets"></div>



            <
    div class="promo-container" style="background-image: url(http://habbo.hs.llnwd.net/c_images/web_promo/web_promo_01.png)">

                <
    div class="promo-content-container">

                    <
    div class="promo-content">

                        <
    div class="title">Horses on there way! </div>

                        <
    div class="body">YesYet again we are going to have horses ride there way into our clientThis timealot less bugs. </div>

                    </
    div>

                </
    div>

                <
    div class="promo-link-container">

                        <
    div class="enter-hotel-btn">

                            <
    div class="open enter-btn">

                                <
    a style="padding: 0 8px 0 19px;" href="%www%/client">Go to room</a><b></b>

                            </
    div>

                        </
    div>

                </
    div>
    </
    div>
            </
    div

  2. #2
    I'm out.
    Rank
    Alpha Member
    Join Date
    May 2010
    Location
    Heaven
    Posts
    2,037
    Liked
    705
    Gamertag: Bee5ting

    Re: UberCMS new me page

    Good shit Jay. Can a brother get a screenie?

    (Im talking in the voice of Black Mithex)
    Fuck this I'm out. <3 and miss you guys.

    Special Thanks to:
    Muscab
    Makarov
    Jonteh
    Mickey
    DeAndre
    Bill
    Sojobo
    vLife
    Facebook
    Sean/DJ Remix
    PEjump
    Resource
    Crawl
    MentaL
    Subway
    Tha Matrix
    zuc0001
    Zak

  3. #3
    Infraction Banned
    Rank
    Subscriber
    Join Date
    Feb 2012
    Location
    Alberta
    Posts
    1,067
    Liked
    271

    Re: UberCMS new me page

    Quote Originally Posted by Mithex View Post
    Good shit Jay. Can a brother get a screenie?

    (Im talking in the voice of Black Mithex)
    Thanks

  4. #4
    Newbie
    Rank
    Member
    Join Date
    Apr 2012
    Posts
    1
    Liked
    0

    Re: UberCMS new me page

    Thank you, You can do without UberCMS and db? For if I find not work.
    Posted via Mobile Device

  5. #5
    Red like a Tomato!
    Rank
    Member +
    Join Date
    Nov 2007
    Location
    Netherlands
    Posts
    339
    Liked
    20

    Re: UberCMS new me page

    Is there a release for phoenix?

  6. #6
    Learning C# - Developer
    Rank
    Member +
    Join Date
    Nov 2010
    Location
    :O You PERVERT!
    Posts
    1,141
    Liked
    82
    Gamertag: Fingerbunz XFIRE ID: wy479

    Re: UberCMS new me page

    is there any good ubercms out atm to use this on?
    Respect points annoy me.
    Awesomeness can only be earnt by trust.
    Post Count:
    1 100 200 300 400 500 600 700 800 900 1000 1100 1100 1200 1300 1400 1500---->
    Save my rep from sojobo! He eats it for breakfast with likes. Made in five minutes btw.
    [SIGPIC][/SIGPIC]

  7. #7
    Brand spanking new!
    Rank
    Banned
    Join Date
    Dec 2011
    Location
    Ń”Ī±ŃŃ‚Š½
    Posts
    2,492
    Liked
    480
    Gamertag: Nova Streak

    Re: UberCMS new me page

    This is a sexy release, but I hate the new 'News' widget >:(

  8. #8
    Hardcore Member
    Rank
    Member
    Join Date
    Jul 2009
    Posts
    109
    Liked
    47

    Re: UberCMS new me page

    Have you got any ubercms for phoenix? :S

  9. #9
    Cuz it can?
    Rank
    Member +
    Join Date
    Mar 2007
    Location
    netherland
    Posts
    742
    Liked
    121
    Gamertag: maartenvink

    Re: UberCMS new me page

    if someone can finish the news widget?

  10. #10
    Zon Hotel closed.
    Rank
    Subscriber
    Join Date
    May 2010
    Location
    Whitbury
    Posts
    2,418
    Liked
    599

    Re: UberCMS new me page

    you have to convert this to Uber:
    PHP Code:
    <?php 
        $query_display 
    mysql_query("SELECT * FROM cms_news WHERE super_fader ='1'");
        
    $row_news mysql_num_rows($query_display);
        
    ?>
    <div id="promo-box" style="display:<?php if ($row_news == 0) { echo'none'; }else{ echo'block'; } ?>;margin-left:-1px;margin-bottom:10px;">

        <div style="margin-top:10px;" id="promo-bullets"></div>

    <?php
        $query 
    mysql_query("SELECT * FROM cms_news WHERE super_fader ='1' ORDER BY published DESC LIMIT 4");
        
    $c 0;
        
        while(
    $row mysql_fetch_assoc($query)) { 
                    
    $display 'block';
                
                if (
    $c 0)
                {
                    
    $display 'none';
                }
        echo 
    '    
        
        <div class="promo-container" style="display: '
    .$display.'; background-image: url('.$row["super_fader_image"].');">
            <div class="promo-content">
                <div class="title"><a style="color: white;" href="articles.php?story='
    .$row["id"].'">'.stripslashes($row["title"]).'</a></div>
                <div class="body">'
    .strip_tags($row["shortstory"]).'</div>
            </div>
            <a href="'
    .$facebook.'" target="_blank" class="facebook-link"></a>
            <a href="http://twitter.com/#!/'
    .$twitter.'" target="_blank" class="twitter-link"></a>
    <div class="enter-hotel-btn">
        <div class="open enter-btn">
                <a href="/client" target="ClientWndw">'
    .$lang['enter_hotel'].'<i></i></a>
            <b></b>
        </div>
    </div>
        </div>
        '

        
    $c++;
        
        }
        
    ?>

    </div>
    <script type="text/javascript">
        document.observe("dom:loaded", function() { PromoSlideShow.init(); });
    </script>

            </div>
    '' Knowledge is built block by block, just like Minecraft ''
    Zon Hotel | MineHosts | ZonCraft YT

  11. #11
    Overruled !
    Rank
    Member +
    Join Date
    Dec 2011
    Posts
    324
    Liked
    39
    PSN ID: x_MicroWing_x

    Re: UberCMS new me page

    Quote Originally Posted by wy479 View Post
    is there any good ubercms out atm to use this on?
    ModelMe's Uber.


    ONT: Thanks Jay we will be using this on MMH

  12. #12
    In the Habbo Section
    Rank
    Member +
    Join Date
    Sep 2011
    Location
    Liverpool, UK
    Posts
    464
    Liked
    45
    Gamertag: ToXiiCz v

    Re: UberCMS new me page

    Quote Originally Posted by JohnHearfield View Post
    you have to convert this to Uber:
    PHP Code:
    <?php 
        $query_display 
    mysql_query("SELECT * FROM cms_news WHERE super_fader ='1'");
        
    $row_news mysql_num_rows($query_display);
        
    ?>
    <div id="promo-box" style="display:<?php if ($row_news == 0) { echo'none'; }else{ echo'block'; } ?>;margin-left:-1px;margin-bottom:10px;">

        <div style="margin-top:10px;" id="promo-bullets"></div>

    <?php
        $query 
    mysql_query("SELECT * FROM cms_news WHERE super_fader ='1' ORDER BY published DESC LIMIT 4");
        
    $c 0;
        
        while(
    $row mysql_fetch_assoc($query)) { 
                    
    $display 'block';
                
                if (
    $c 0)
                {
                    
    $display 'none';
                }
        echo 
    '    
        
        <div class="promo-container" style="display: '
    .$display.'; background-image: url('.$row["super_fader_image"].');">
            <div class="promo-content">
                <div class="title"><a style="color: white;" href="articles.php?story='
    .$row["id"].'">'.stripslashes($row["title"]).'</a></div>
                <div class="body">'
    .strip_tags($row["shortstory"]).'</div>
            </div>
            <a href="'
    .$facebook.'" target="_blank" class="facebook-link"></a>
            <a href="http://twitter.com/#!/'
    .$twitter.'" target="_blank" class="twitter-link"></a>
    <div class="enter-hotel-btn">
        <div class="open enter-btn">
                <a href="/client" target="ClientWndw">'
    .$lang['enter_hotel'].'<i></i></a>
            <b></b>
        </div>
    </div>
        </div>
        '

        
    $c++;
        
        }
        
    ?>

    </div>
    <script type="text/javascript">
        document.observe("dom:loaded", function() { PromoSlideShow.init(); });
    </script>

            </div>
    How can I bend this to work with my site_news table?

  13. #13
    GreenMaX
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    The Netherlands
    Posts
    269
    Liked
    16
    Nice release, thought I saw this one before for ubercms

    Sent from my GT-S5660 using Tapatalk
    Sorry for my english if it isn't good, I am from The Netherlands.

    My website:
    http://officialgreenmax.co.cc/

  14. #14
    Infraction Banned
    Rank
    Subscriber
    Join Date
    Feb 2012
    Location
    Alberta
    Posts
    1,067
    Liked
    271

    Re: UberCMS new me page

    All you have to do is the steps I provided, There is nothing more to it.
    If you enjoy the release, simply click like.

  15. #15
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Oct 2011
    Location
    New York
    Posts
    2,126
    Liked
    489
    Gamertag: DannyRunsNYC

    Re: UberCMS new me page

    Thanks, moved a few things around and come up with this:


    What you think
    Mithex and SubZ like this.
    Thanks, Facebook


    Rest In Peace, To my dog Sparky. Never forgotten <3

    Skype: Danny.runsnyc

    msn: dannyrunsnyc@hotmail.com

 

 
Page 1 of 4 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •