[RELEASE] UberCMS New me page edit
Hello ragezone, I saw that somebody released the new habbo me page, but everyone was having trouble with the news.. so, I just made it so the news actually shows up.
NOTE: This is a small release, not very hard to do, but o well.
Printscreen: http://i45.tinypic.com/2v9zpky.png
Replace this with your me.php (c:/inetpub/wwwroot/me.php or c:/xampp/htdocs/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 »</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();
?>
And replace this with your comp-me.tpl (c:/inetpub/wwwroot/inc/tpl/comp-me.tpl or c:/xampp/htdocs/inc/tpl/comp-me.tpl)
PHP 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: 18px;
}
#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://localhost/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 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">« Previous</a><span>1</span> / ' . $c . '<a href="#" class="next">Next »</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";
}
echo '<li class="' . $oddEven . '">
<a href="' . WWW . '/articles/' . $n['id'] . '-' . $n['seo_link'] . '">' . clean($n['title']) . ' »</a><div class="newsitem-date">' . clean($n['datestr']) . '</div>
</li>';
}
?>
<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div>
</div>
</div></div>
<div class="topnewscont" id="topnews1" style="background-image:url(http://localhost/images/image2.png)">
<div class="topnewstitle"><h3><a href="http://localhost/purchase"><font color="white">Something here.</a></h3></div>
<div class="topnewsdesc">Help us by purchasing Diamond VIP!</div>
</div>
<div class="topnewscont" id="topnews1" style="background-image:url(http://localhost/images/image1.gif)">
<div class="topnewstitle"><h3><a href="http://facebook.com"><font color="white">Something here.</a></h3></div>
<div class="topnewsdesc">Like our Facebook page to hep us get popular!</div>
</div>
<div class="topnewscont" id="topnews1" style="background-image:url(http://localhost/images/image3.gif)">
<div class="topnewstitle"><h3><a href="articles/9-the-rulebook"><font color="white">Something here.</a></h3></div>
<div class="topnewsdesc">There are some rules you must follow at all times within the hotel!</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 © 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>
<!-- uberCMS: Took 0.013730049133301 to output this page -->
50% credits to Habbo
40% to guy who released it
10% to me for making news work
If you don't like it, that's fine but don't hate =]
Re: [RELEASE] UberCMS New me page edit
Woow the best i have ever see? (sarcasme) Dude its not good coded
Look on cokehotel.nl! thats a me.php
Re: [RELEASE] UberCMS New me page edit
Re: [RELEASE] UberCMS New me page edit
Sorry dont like it.
Try to align that 'Something here' boxes more to the left.
(The 3) Because they are now not in same line as other boxes.
But good try. Keep it on. And you will learn to do it.
Greetz,
Re: [RELEASE] UberCMS New me page edit
Re: [RELEASE] UberCMS New me page edit
No big changes... But it look's fine (-;
Re: [RELEASE] UberCMS New me page edit
Its uber and looks terrible... however good attempt and you will get better with more edits