Junior Spellweaver
- Joined
- Mar 19, 2008
- Messages
- 143
- Reaction score
- 13
Hello,
I got Tired of looking at the original Me.php for Phpretro
so i decided to make this me.php
I got Tired of looking at the original Me.php for Phpretro
so i decided to make this me.php
Screen:
Ignore the Login button this is caused cause im using my netbook to take the image.
![vistadosentwork - [PhpRetro][Addon] New Me.php - RaGEZONE Forums vistadosentwork - [PhpRetro][Addon] New Me.php - RaGEZONE Forums](https://forum.ragezone.com/images/404_image.png)
Ignore the Login button this is caused cause im using my netbook to take the image.
Code:
PHP:
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
|| # Me.php Made by VistadosentWork On Ragezone.com
\+================================================================*/
require_once('./includes/core.php');
require_once('./includes/session.php');
$data = new me_sql;
$lang->addLocale("home.me");
$page['id'] = "me";
$page['name'] = $lang->loc['pagename.me'];
$page['bodyid'] = "home";
$page['cat'] = "home";
require_once('./templates/community_header.php');
?>
<div id="container">
<div id="content">
<div style="float: right; font-weight: normal;"></div>
<br><img src="./BGH.png" width="764"/>
<style type="text/css">
.infront
{
position:absolute;
left:600px;
top:140px;
z-index:1
}
</style>
<div class="infront">
<div class="enter-hotel-btn">
<div style="background-image: url('http://upit.co/images/enter_hotel.gif'); float: right; width: 100px; height: 31px; margin: 34px; font-weight: bold; padding-top: 18px; color: #FFFFFF; text-align: center;"><a style="color: #FFFFFF;" href="/client" target="uberClientWnd" onclick="HabboClient.openOrFocus(this); return false;">Enter <?php echo SHORTNAME; ?></a>
</div>
</div>
</div></div></div></div><br>
<div id="container">
<div id="content">
<div id="column1" class="column">
<div class="pixels-info-text clearfix">
<div class="cbb clearfix clear ">
<a href="<?php echo PATH; ?>/profile">
<img alt="<?php echo $user->name; ?>" src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $user->figure; ?>&direction=3&head_direction=3&action=wav,crr=5" width="64" height="110" align="left" />
<DIV ALIGN=CENTER> </a><strong> Your Account </strong>
</DIV>
<p><DIV ALIGN=center>
<ul id="link-bar" class="clearfix">
<li class="credits"> <img src="http://upit.co/images/credits.gif" /<a href="<?php echo PATH; ?>/credits"><?php echo $user->user("credits"); ?></a> <?php echo $lang->loc['credits']; ?></li>
<br> <li class="club"> <img src="http://habboemotion.com/images/usergroup/hc.gif" /> <a href="<?php echo PATH; ?>/club"><?php if( !$user->IsHCMember("self") ){ echo $lang->loc['join.club']." »</a>"; } else { echo $user->HCDaysLeft("self") . " </a>".$lang->loc['hc.days']; }?>
</li>
<br> <li class="activitypoints">
<i> </i> <img src="http://upit.co/images/pixels.gif" /> <a href="<?php echo PATH; ?>/credits/pixels"><?php echo $user->user("pixels"); ?></a> <?php echo $lang->loc['pixels']; ?>
</center> </li><br>
</ul></DIV>
<DIV ALIGN=LEFT><li class="change-looks"> <img src="http://www.tkd.net/images/white.jpg" width="10" height="10" /><a href="<?php echo PATH; ?>/profile"><?php echo $lang->loc['change.looks']; ?> »</a></li>
</DIV></div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php $lang->addLocale("widget.minimail"); ?>
<div class="habblet-container minimail" id="mail">
<div class="cbb clearfix blue ">
<h2 class="title"><?php echo $lang->loc['my.messages']; ?>
</h2>
<div id="minimail">
<div class="minimail-contents">
<?php
$page['bypass'] = true;
$label = "inbox";
require('./habblet/minimail_loadMessages.php');
?>
</div>
<div id="message-compose-wait"></div>
<form style="display: none" id="message-compose">
<div><?php echo $lang->loc['to']; ?></div>
<div id="message-recipients-container" class="input-text" style="width: 426px; margin-bottom: 1em">
<input type="text" value="" id="message-recipients" />
<div class="autocomplete" id="message-recipients-auto">
<div class="default" style="display: none;"><?php echo $lang->loc['type.name']; ?></div>
<ul class="feed" style="display: none;"></ul>
</div>
</div>
<div><?php echo $lang->loc['subject']; ?><br/>
<input type="text" style="margin: 5px 0" id="message-subject" class="message-text" maxlength="100" tabindex="2" />
</div>
<div><?php echo $lang->loc['message']; ?><br/>
<textarea style="margin: 5px 0" rows="5" cols="10" id="message-body" class="message-text" tabindex="3"></textarea>
</div>
<div class="new-buttons clearfix">
<a href="#" class="new-button preview"><b><?php echo $lang->loc['preview']; ?></b><i></i></a>
<a href="#" class="new-button send"><b><?php echo $lang->loc['send']; ?></b><i></i></a>
</div>
</form>
</div>
<?php
$sql = $db->query("SELECT COUNT(*) FROM ".PREFIX."minimail WHERE to_id = '".$user->id."'");
?>
<script type="text/javascript">
L10N.put("minimail.compose", "<?php echo $lang->loc['compose']; ?>").put("minimail.cancel", "<?php echo $lang->loc['cancel']; ?>")
.put("bbcode.colors.red", "<?php echo $lang->loc['red']; ?>").put("bbcode.colors.orange", "<?php echo $lang->loc['orange']; ?>")
.put("bbcode.colors.yellow", "<?php echo $lang->loc['yellow']; ?>").put("bbcode.colors.green", "<?php echo $lang->loc['green']; ?>")
.put("bbcode.colors.cyan", "<?php echo $lang->loc['cyan']; ?>").put("bbcode.colors.blue", "<?php echo $lang->loc['blue']; ?>")
.put("bbcode.colors.gray", "<?php echo $lang->loc['gray']; ?>").put("bbcode.colors.black", "<?php echo $lang->loc['black']; ?>")
.put("minimail.empty_body.confirm", "<?php echo $lang->loc['empty.message']; ?>")
.put("bbcode.colors.label", "<?php echo $lang->loc['color']; ?>").put("linktool.find.label", " ")
.put("linktool.scope.habbos", "<?php echo $lang->loc['habbos']; ?>").put("linktool.scope.rooms", "<?php echo $lang->loc['rooms']; ?>")
.put("linktool.scope.groups", "<?php echo $lang->loc['groups']; ?>").put("minimail.report.title", "<?php echo $lang->loc['report']; ?>");
L10N.put("date.pretty.just_now", "<?php echo $lang->loc['just.now']; ?>");
L10N.put("date.pretty.one_minute_ago", "1 <?php echo $lang->loc['minute']." ".$lang->loc['ago']; ?>");
L10N.put("date.pretty.minutes_ago", "{0} <?php echo $lang->loc['minutes']." ".$lang->loc['ago']; ?>");
L10N.put("date.pretty.one_hour_ago", "1 <?php echo $lang->loc['hour']." ".$lang->loc['ago']; ?>");
L10N.put("date.pretty.hours_ago", "{0} <?php echo $lang->loc['hours']." ".$lang->loc['ago']; ?>");
L10N.put("date.pretty.yesterday", "<?php echo $lang->loc['yesterday']; ?>");
L10N.put("date.pretty.days_ago", "{0} <?php echo $lang->loc['days']." ".$lang->loc['ago']; ?>");
L10N.put("date.pretty.one_week_ago", "1 <?php echo $lang->loc['week']." ".$lang->loc['ago']; ?>");
L10N.put("date.pretty.weeks_ago", "{0} <?php echo $lang->loc['weeks']." ".$lang->loc['ago']; ?>");
new MiniMail({ pageSize: 10,
total: <?php echo $db->result($sql); ?>,
friendCount: <?php echo $serverdb->result($data->select5($user->id), 0); ?>,
maxRecipients: 50,
messageMaxLength: 20,
bodyMaxLength: 4096,
secondLevel: <?php if($serverdb->result($data->select5($user->id), 0) == 0){ echo "true"; }else{ echo "false"; } ?>});
</script>
</div></div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php $lang->addLocale("widget.events"); ?>
<?php $categories = explode("|", $lang->loc['events.categories']); ?>
<div class="habblet-container ">
<div class="cbb clearfix darkred ">
<h2 class="title"><?php echo $lang->loc['events']; ?>
</h2>
<div id="current-events">
<div class="category-selector">
<p><?php echo $lang->loc['browse.events']; ?></p>
<select id="event-category">
<option value="1"><?php echo $categories[0]; ?></option>
<option value="2"><?php echo $categories[1]; ?></option>
<option value="3"><?php echo $categories[2]; ?></option>
<option value="4"><?php echo $categories[3]; ?></option>
<option value="5"><?php echo $categories[4]; ?></option>
<option value="6"><?php echo $categories[5]; ?></option>
<option value="7"><?php echo $categories[6]; ?></option>
<option value="8"><?php echo $categories[7]; ?></option>
<option value="9"><?php echo $categories[8]; ?></option>
<option value="10"><?php echo $categories[9]; ?></option>
<option value="11"><?php echo $categories[10]; ?></option>
</select>
</div>
<div id="event-list">
<?php $page['bypass'] = true; require_once('./habblet/ajax_load_events.php'); ?>
</div>
</div>
<script type="text/javascript">
document.observe('dom:loaded', function() {
CurrentRoomEvents.init();
});
</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<!lol !>
</div>
</div>
</div>
</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column">
<?php $lang->addLocale("widget.news"); ?>
<div class="habblet-container news-promo">
<div class="cbb clearfix notitle ">
<?php $sql = $db->query("SELECT * FROM ".PREFIX."news ORDER BY time DESC LIMIT 5");
$i = 0;
while($row = $db->fetch_assoc($sql)){
$row['summary'] = nl2br($input->HoloText($row['summary'], true));
$row['title'] = $input->HoloText($row['title'], true);
$row['title_safe'] = $input->stringToURL($input->HoloText($row['title'],true),true,true);
$row['date'] = date('M j, Y', $row['time']);
$news[$i] = $row;
$i++;
}
?>
<div id="newspromo">
<div id="topstories">
<div class="topstory" style="background-image: url(<?php echo $news[0]['header_image']; ?>)">
<h4><?php echo $lang->loc['latest.news']; ?></a></h4>
<h3><a href="<?php echo PATH."/articles/".$news[0]['id']."-".$news[0]['title_safe']; ?>"><?php echo $news[0]['title']; ?></a></h3>
<p class="summary">
<?php echo $news[0]['summary']; ?>
</p>
<p>
<a href="<?php echo PATH."/articles/".$news[0]['id']."-".$news[0]['title_safe']; ?>"><?php echo $lang->loc['read.more']; ?></a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news[1]['header_image']; ?>); display: none">
<h4><?php echo $lang->loc['latest.news']; ?></a></h4>
<h3><a href="<?php echo PATH."/articles/".$news[1]['id']."-".$news[1]['title_safe']; ?>"><?php echo $news[1]['title']; ?></a></h3>
<p class="summary">
<?php echo $news[1]['summary']; ?>
</p>
<p>
<a href="<?php echo PATH."/articles/".$news[1]['id']."-".$news[1]['title_safe']; ?>"><?php echo $lang->loc['read.more']; ?></a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news[2]['header_image']; ?>); display: none">
<h4><?php echo $lang->loc['latest.news']; ?></a></h4>
<h3><a href="<?php echo PATH."/articles/".$news[2]['id']."-".$news[2]['title_safe']; ?>"><?php echo $news[2]['title']; ?></a></h3>
<p class="summary">
<?php echo $news[2]['summary']; ?>
</p>
<p>
<a href="<?php echo PATH."/articles/".$news[2]['id']."-".$news[2]['title_safe']; ?>"><?php echo $lang->loc['read.more']; ?></a>
</p>
</div>
<div id="topstories-nav" style="display: none"><a href="#" class="prev"><?php echo $lang->loc['news.previous']; ?></a><span>1</span> / 3<a href="#" class="next"><?php echo $lang->loc['news.next']; ?></a></div>
</div>
<ul class="widelist">
<li class="even">
<a href="<?php echo PATH."/articles/".$news[3]['id']."-".$news[3]['title_safe']; ?>"><?php echo $news[3]['title']; ?></a><div class="newsitem-date"><?php echo $news[3]['date']; ?></div>
</li>
<li class="odd">
<a href="<?php echo PATH."/articles/".$news[4]['id']."-".$news[4]['title_safe']; ?>"><?php echo $news[4]['title']; ?></a><div class="newsitem-date"><?php echo $news[3]['date']; ?></div>
</li>
<li class="last"><a href="<?php echo PATH; ?>/articles"><?php echo $lang->loc['news.more']; ?></a></li>
</ul>
</div>
<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
</div>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php
require('./templates/community_footer.php');
?>
Remember TO back-up you're me.php , if you decide you dont like the style.
Clicking the THANKS button Dosent hurt..
Last edited: