Welcome to the RaGEZONE - MMORPG development forums.

UberCMS New News ME Page

This is a discussion on UberCMS New News ME Page within the Habbo Releases forums, part of the Habbo Hotel category; Wanna have that for your hotel? Then just follow this easy release and I will show you how :) Open ...

Results 1 to 12 of 12
  1. #1
    I'm out.
    Rank
    Alpha Member
    Join Date
    May 2010
    Location
    Heaven
    Posts
    2,034
    Liked
    705
    Gamertag: Bee5ting

    UberCMS New News ME Page

    Click


    Wanna have that for your hotel?
    Then just follow this easy release and I will show you how :)

    Open your Me.php and replace it all with this:
    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 
    
    
    // Footer 
    $tpl->AddGeneric('footer'); 
    
    // Output the page 
    $tpl->Output(); 
    
    ?>
    Now open up your comp-me.tpl page and edit it so it has this:
    Code:
     <link rel="stylesheet" href="http://images.habbo.com/habboweb/%web_build%/web-gallery/static/styles/lightweightmepage.css" type="text/css" /> 
    </script> 
    
    
    
    
    
    
    
    
    <!-- Uber style overrides --> 
                
    <style type="text/css">
    
    
    
    
    .title {
    
    
    
    
         color: white; text-shadow: black 0.1em 0.1em 0.2em
    
    
    
    
        }
    
    
    
    
    
    
    
    
    
    
    
    
    .body {
    
    
    
    
         color: white; text-shadow: black 0.1em 0.1em 0.2em
    
    
    
    
        }
    
    
    
    
        
    
    
    
    
        
    
    
    
    
        #newspromo #topstories {
    
    
    
    
        position: relative;
    
    
    
    
        height: 310px;
    
    
    
    
        
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    .topnewscont{
    
    
    
    
    display:inline-block;
    
    
    
    
    width:206px;
    
    
    
    
    height:266px;
    
    
    
    
    background-color:white;
    
    
    
    
    border-radius: 5px;
    
    
    
    
    margin-left: 28px;
    
    
    
    
    margin-right: 10px;
    
    
    
    
    margin-bottom: 10px;
    
    
    
    
    background-position: center;
    
    
    
    
    }
    
    
    
    
    .topnewstitle{
    
    
    
    
    font-size:16px;
    
    
    
    
    font-weight:bold;
    
    
    
    
    text-align:center;
    
    
    
    
    padding-top:1px;
    
    
    
    
    width:206px;
    
    
    
    
    color: #fff;
    
    
    
    
    text-shadow: 2px 2px 2px #000;
    
    
    
    
    background-position: bottom;
    
    
    
    
    padding-bottom: 0.1em;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    .topnewsimg{
    
    
    
    
    text-align:center;
    
    
    
    
    margin:10px auto;
    
    
    
    
    width:160px;
    
    
    
    
    height:160px;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    .topnewsdesc{
    
    
    
    
    text-align:center;
    
    
    
    
    padding:10px 0;
    
    
    
    
    width:206px;
    
    
    
    
    margin-top: 153px;
    
    
    
    
    color: #fff;
    
    
    
    
    text-shadow: black 0.1em 0.1em 0.2em;
    
    
    
    
    background-image: url('http://localhost/web-gallery/v2/images/blackbit2.png');
    
    
    
    
    border-bottom-left-radius:5px;
    
    
    
    
    border-bottom-right-radius:5px;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo #topstories #topstories-nav {
    
    
    
    
        position: absolute;
    
    
    
    
        top: 0;
    
    
    
    
        left: 0;
    
    
    
    
        height: 21px;
    
    
    
    
        width: 100%;
    
    
    
    
        background: transparent url(http://localhost/web-gallery/v2/images/topstories_nav_bg2.png) no-repeat top left;
    
    
    
    
        color: #fff;
    
    
    
    
        text-align: center;
    
    
    
    
        line-height: 21px;
    
    
    
    
        z-index:99;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo #topstories #topstories-nav2 {
    
    
    
    
        position: bottom;
    
    
    
    
        top: 0;
    
    
    
    
        left: 0;
    
    
    
    
        height: 59px;
    
    
    
    
        width: 100%;
    
    
    
    
        background: transparent url(../v2/images/blackbit.png) no-repeat bottom left;
    
    
    
    
        color: #fff;
    
    
    
    
        text-align: center;
    
    
    
    
        line-height: 21px;
    
    
    
    
        z-index:99;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo #topstories #topstories-nav a.prev {
    
    
    
    
        left: 10px;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo #topstories #topstories-nav a.next {
    
    
    
    
        right: 175px;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo #topstories #topstories-nav a {
    
    
    
    
        top: 0px;
    
    
    
    
        color: #fff;
    
    
    
    
        text-decoration: none;
    
    
    
    
        position: absolute;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #blackbit {
    
    
    
    
    width:760px;
    
    
    
    
    height:80px;
    
    
    
    
    position:absolute;
    
    
    
    
    bottom:10px;
    
    
    
    
    background-color:rgba(0,0,0,0.4);
    
    
    
    
    z-index:99;
    
    
    
    
    
    
    
    
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    p,h3, h4, 46{
    
    
    
    
    z-index:100;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory {
    
    
    
    
        background: #222222;
    
    
    
    
        background-color: #222222;
    
    
    
    
        color: #fff;
    
    
    
    
        text-shadow: 2px 2px 2px #000;
    
    
    
    
        position: absolute;
    
    
    
    
        top: 0;
    
    
    
    
        left: 0;
    
    
    
    
        width: 731px;
    
    
    
    
        height: 290px;
    
    
    
    
        padding: 5px 14px;
    
    
    
    
        border-radius:5px;
    
    
    
    
        font-size: 26px;
    
    
    
    
        background-position: center;}
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory a {
    
    
    
    
        color: #fff;
    
    
    
    
        text-shadow: 1px 1px 1px #000;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory h4 {
    
    
    
    
        margin: 0 0 3px 0;
    
    
    
    
        padding: 0;
    
    
    
    
        font-weight: normal;
    
    
    
    
        text-transform: uppercase;
    
    
    
    
        font-size: 11px;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory h3 {
    
    
    
    
        margin: 215px 0 0px 0;
    
    
    
    
        padding: 0;
    
    
    
    
        font-size: 18px;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory h3 a {
    
    
    
    
        text-decoration: none;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory h3 a:hover {
    
    
    
    
        text-decoration: underline;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory h6 {
    
    
    
    
        margin: -75px 10px 10px 0;
    
    
    
    
        padding: 0;
    
    
    
    
        font-size: 16px;
    
    
    
    
        text-align: right;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory h6 a {
    
    
    
    
        text-decoration: none;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .topstory p.summary {
    
    
    
    
        width: 65%;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo .newsitem-date {
    
    
    
    
        color: #888;
    
    
    
    
        font-size: 10px;
    
    
    
    
        margin-top: 2px;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo li.odd a, #newspromo li.even a {
    
    
    
    
        color: #333;
    
    
    
    
        text-decoration: none;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo li.odd a:hover, #newspromo li.even a:hover {
    
    
    
    
        text-decoration: underline;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    #newspromo li.last {
    
    
    
    
        text-align: right;
    
    
    
    
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    </style>
    
    
    
    
    
    
    
    
     <div id="wide-personal-info"> 
    
    
    
    
        <div id="habbo-plate"> 
                <a href="http://thrusthotel.com/profile"> 
                <img alt="%habboName%" src="http://www.habbo.com/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 Hotel<i></i></a> 
            <b></b>
        </div> 
    </div> 
    </div> 
    
    
    
    
    
    
    
    
    
    
    
    
    </div></div>
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="habblet-container news-promo">        
    
    
    
    
    
    
    
    
    
    
    
    
        <div class="clearfix notitle "> 
    
    
    
    
    
    
    
    
    
    
    
    
            <div id="newspromo"> 
    
    
    
    
    
    
    
    
    
    
    
    
            
    
    
    
    
    
    
    
    
    
    
    
    
            <div id="topstories"> 
            
    
    
    
    
    
    
    
    
    
    
    
    
            
    
    
    
    
        <?php
            
            $getNews = dbquery("SELECT * FROM site_news ORDER BY timestamp DESC LIMIT 3");
            $c = 0;
            
            while ($n = mysql_fetch_assoc($getNews))
            {
                $disp = 'block';
                
                if ($c > 0)
                {
                    $disp = 'none';
                }
            
                echo '<div class="topstory" style="background-image: url(' . clean($n['topstory_image']) . '); display: ' . $disp . ';"> 
                    <h4>Latest news</h4> 
                    <h3><a href="' . WWW . '/articles/' . $n['id'] . '-' . $n['seo_link'] . '">' . clean($n['title']) . '</a></h3> 
                    <p class="summary"> 
                    ' . clean($n['snippet']) . '
                  
                </div>';
                
                $c++;
            }
                
            echo '<div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Previous</a><span>1</span> / ' . $c . '<a href="#" class="next">Next &raquo;</a></div>';
            
            ?>            
            </div>
            
            <ul class="widelist">         
            <?php
            
            $getNews = dbquery("SELECT * FROM site_news ORDER BY timestamp DESC LIMIT 3,2");
            $oddEven = "odd";
            
            while ($n = mysql_fetch_assoc($getNews))
            {        
                if ($oddEven == "odd")
                {
                    $oddEven = "even";
                }
                else
                {
                    $oddEven = "odd";
                }
    
    
    
    
    }        
            ?>
    
    
    
    
    
    
    
    
            
    
    
    
    
            
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <script type="text/javascript"> 
    
    
    
    
        document.observe("dom:loaded", function() { NewsPromo.init(); });
    
    
    
    
    </script> 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    </div>
    
    
    
    
    
    
    
    
    
    
    
    
    </div>
    </div></div>
    </div><div id="column2" class="column"> </div>
    <!--[if lt IE 7]>
    <script type="text/javascript">
    Pngfix.doPngImageFix();
    </script>
    <![endif]--> 
    <div id="footer"> 
        <p class="copyright">Powered by uberCMS | Copyright &copy;  2012 - 2013 | All Material Belongs To Their Respected Owner | All Rights Reserved<br>
        <br>
    <div style="clear: both;"></div>
    </div></div> 
    </div></div>
    
    <script type="text/javascript"> 
    HabboView.run();
    </script> 
    
    </body> 
    </html>
    Sorry for all the ridiculous spaces and stuff in the comp-me, that code was edited from its original creator Subz

    Credits:
    80% Me
    20% Subz
    Last edited by Mithex; 26-06-12 at 08:51 PM.
    PRIZM likes this.

  2. #2
    Working in private usage.
    Rank
    Member +
    Join Date
    Jul 2011
    Location
    The Netherlands
    Posts
    1,162
    Liked
    230

    Re: UberCMS New News ME Page

    Font looks ugly in my opinion

    Yes. It's true, I am scared of vaginas.

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

    Re: UberCMS New News ME Page

    Quote Originally Posted by George2000 View Post
    Font looks ugly in my opinion
    I coded it for Jmandupree so I dont really care :) as long as he said its fine.

  4. #4
    Habblah Coming Soon!
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Mullins, South
    Posts
    472
    Liked
    27
    Gamertag: xXxJmandoxXx

    Re: UberCMS New News ME Page

    Soo BOOM :D Nah, Jk lool something told me you were gonna release it..
    Jmandupree is back !!!

  5. #5
    Dajjal is our master
    Rank
    Member +
    Join Date
    Apr 2011
    Location
    USA
    Posts
    514
    Liked
    73

    Re: UberCMS New News ME Page

    Its nice, but font :S

  6. #6
    Registered
    Rank
    Member
    Join Date
    Jun 2012
    Location
    Amsterdam
    Posts
    24
    Liked
    2

    Re: UberCMS New News ME Page

    It is a good release, you've need to change the font.

  7. #7
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jun 2010
    Posts
    281
    Liked
    22

    Re: UberCMS New News ME Page

    What's up with that ugly font.

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

    Re: UberCMS New News ME Page

    spotted an error

    <div id="footer">
    <p class="copyright">Powered by uberCMS | Copyright &copy; 2012 - 2013 | All Material Belongs To Their Respected Owner | All Rights Reserved<br
    <br>
    '' Knowledge is built block by block, just like Minecraft ''
    Zon Hotel | MineHosts | ZonCraft YT

  9. #9
    @_Prizm
    Rank
    Subscriber
    Join Date
    Feb 2012
    Location
    Denmark
    Posts
    2,144
    Liked
    521
    PSN ID: InfraRedDude Steam ID: lehprizm

    Re: UberCMS New News ME Page

    Quote Originally Posted by JohnHearfield View Post
    spotted an error

    <div id="footer">
    <p class="copyright">Powered by uberCMS | Copyright © 2012 - 2013 | All Material Belongs To Their Respected Owner | All Rights Reserved<br
    <br>
    Good find, also hard to find that little error. :-p I couldn't.
    By the way.. Good release, going to use UberCMS in the summer holiday and with this ME page.

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

    Re: UberCMS New News ME Page

    Fixed the error

  11. #11
    Goin Goin Gone!
    Rank
    Member +
    Join Date
    Mar 2011
    Location
    Virginia
    Posts
    702
    Liked
    56
    Gamertag: LHaZze HD

    Re: UberCMS New News ME Page

    Very good. but the font is kinda terrible. haha. But not too hard to change. :)
    Did i help you? Say Thanks!
    Search before Posting new Threads!
    Read Before you fucking Flame!!


  12. #12
    Registered
    Rank
    Member
    Join Date
    Jun 2012
    Posts
    20
    Liked
    1

    Re: UberCMS New News ME Page

    Yeah.... Its Really Basic..

 

 

Posting Permissions

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