UberCMS New News ME Page

Results 1 to 12 of 12
  1. #1
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    UberCMS New News ME Page



    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 09:51 PM.


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

    Re: UberCMS New News ME Page

    Font looks ugly in my opinion

  3. #3
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    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
    I use to love it more! Jmandupree is offline
    MemberRank
    Oct 2009 Join Date
    /ragezone/homeLocation
    996Posts

    Re: UberCMS New News ME Page

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

  5. #5
    son, i am disappointed Squashing is offline
    MemberRank
    Apr 2011 Join Date
    CaliforniaLocation
    683Posts

    Re: UberCMS New News ME Page

    Its nice, but font :S

  6. #6
    Apprentice Coke Jsaca is offline
    MemberRank
    Jun 2012 Join Date
    AmsterdamLocation
    24Posts

    Re: UberCMS New News ME Page

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

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

    Re: UberCMS New News ME Page

    What's up with that ugly font.

  8. #8
    Eye Eye Capt'n Spheral is offline
    MemberRank
    May 2010 Join Date
    TumptonshireLocation
    2,488Posts

    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>

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

    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
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    Re: UberCMS New News ME Page

    Fixed the error

  11. #11
    Goin Goin Gone! LHaZze is offline
    MemberRank
    Mar 2011 Join Date
    VirginiaLocation
    695Posts

    Re: UberCMS New News ME Page

    Very good. but the font is kinda terrible. haha. But not too hard to change. :)

  12. #12
    Apprentice iJaySlick is offline
    MemberRank
    Jun 2012 Join Date
    20Posts

    Re: UberCMS New News ME Page

    Yeah.... Its Really Basic..



Advertisement