public function PrintAsHTML($style_addition = '') { global $parser, $_loggedin, $domain, $_loginaccount, $__server_time; $parser->parse($this->content); $username = $this->account->GetUsername(); $own_post = $_loggedin && ($this->account_id == $_loginaccount->GetID() || $_loginaccount->IsRankOrHigher(RANK_MODERATOR)); $reply_info = $this->reply_to == NULL ? NULL : $this->GetReplyInfo($this->reply_to); $object_id = GetUniqueID(); if (strpos($this->character, ':') === false) { $this->character = 'gms:' . $this->character; } $tmp = explode(':', $this->character); $main_char = $tmp[1]; $locale = $tmp[0]; $account_rank = $this->account->GetAccountRank(); ?> <div class="status<?php echo $this->override == 1 ? ' notification' : ''; echo $style_addition; ?> " status-id="<?php echo $this->id; ?> " unique-id="<?php echo $object_id; ?> "> <div class="header"> <?php MakePlayerAvatar($main_char, $locale, array('face' => $this->using_face)); ?> <br /> <p> <a href="//<?php echo $username; ?> .mapler.me/"><?php echo $this->nickname; ?> </a> <span class="faded">(@<?php echo $username; ?> )</span> <?php if ($account_rank >= RANK_MODERATOR) { ?> <span class="ct-label"><i class="icon-star"></i> <?php echo GetRankTitle($account_rank); ?> </span> <?php } if ($this->blog !== 0) { ?> <span class="ct-label"><i class="icon-bullhorn"></i> Blog Post</span> <?php } ?> </p> </div> <br /> <div class="status-contents"> <?php echo $parser->getAsHtml(); ?> </div> <div class="status-extra" style="clear:both;"> <?php if ($reply_info != NULL) { ?> <a href="//mapler.me/stream/status/<?php echo $reply_info['id']; ?> " style="float: left;" class="reply-to">Replied to <?php echo $reply_info['nickname']; ?> <i class="icon-chevron-right"></i></a> <?php } if ($_loggedin) { ?> <a href="#post" role="button" data-toggle="modal" class="mention" status-id="<?php echo $this->id; ?> " poster="<?php echo $username; ?> " mentions="<?php echo implode(';', $this->mention_list); ?> "><i class="icon-share-alt"></i> Reply (<span class="status-reply-count"><?php echo $this->reply_count; ?> </span>)</a> <?php } ?> <a href="//<?php echo $domain; ?> /stream/status/<?php echo $this->id; ?> " status-post-time="<?php echo $__server_time - $this->seconds_since; ?> " class="status-time"><?php echo time_elapsed_string($this->seconds_since); ?> ago</a> <?php if ($_loggedin) { if ($own_post) { ?> <a href="#" class="deletestatus" onclick="return false;"><i class="icon-remove"></i></a> <?php } ?> <a href="//<?php echo $domain; ?> /report/status/<?php echo $this->id; ?> " class="reportstatus"><i class="icon-flag"></i></a> <?php } ?> </div> <div class="reply-list" status-id="<?php echo $this->id; ?> " unique-id="<?php echo $object_id; ?> "></div> </div> <?php }
?> </span> <span class="top-col lb"><?php echo GetJobname($character_info['job']); ?> </span> <span class="top-col rt"><?php echo $character_info['guildname']; ?> </span> <span class="top-col rb"><?php echo $character_info['fame']; ?> </span> <div class="avatar-container" style="background-image: url('<?php MakePlayerAvatar($character_info['name'], CURRENT_LOCALE, array('size' => 'big', 'tamingmob' => 1932016, 'onlyurl' => true)); ?> ');"><span><?php echo $character_info['name']; ?> </span></div> <?php $inv_pos_offx = 18; $inv_pos_offy = 94; $inv_extra_offx = $inv_extra_offy = 0; RenderItems($normalequips['Mechanic'], 'mechanic'); ?> </div> <?php
If everything has gone perfectly, you will be presented with this notification (except with your character's name)! If you refresh your <a href="//<?php echo $_loginaccount->GetUsername(); ?> .<?php echo $domain; ?> /">profile</a> or <a href="//<?php echo $domain; ?> /settings/characters/">characters settings page</a> your character(s) will now be added to Mapler.me </div> <div class="status"> <h1>#5 <small>Exploring Mapler.me, <span class="muted">and you're on your way.</span></small></h1> <p><span class="pull-right" style="border-left:1px solid rgba(0,0,0,0.3);padding-left:10px;margin-left:10px;">You:<br/><?php MakePlayerAvatar($__login_main_character['name'], $__login_main_character['locale']); ?> </span> You've now gotten the basics of Mapler.me! There are many other features to the site such as social statuses, profiles, and friends, but you'll have to discover those yourself. If you've successfully added a character, you will see your character to the right!</p> <p>Good luck, and happy mapling!<br/> - Mapler.me Staff</p> </div> <div class="status"> Having trouble with the guide? Here's an alternative guide by Nexon Volunteer Maryse: <a href="http://imgur.com/a/zIqtV#AioUUDm">Mapler.me New Member Journey</a> </div> <?php } else { ?> <div class="featurette">
?> <?php // Check for expiring items... $query = "\nSELECT\n\tc.name,\n\tGROUP_CONCAT(i.itemid),\n\tGROUP_CONCAT(UNIX_TIMESTAMP(FROM_FILETIME(i.expires)))\nFROM\n\titems i\nLEFT JOIN\n\tcharacters c\n\tON\n\t\tc.internal_id = i.character_id\nWHERE\n\t`GetCharacterAccountID`(c.id) = " . $_loginaccount->GetID() . "\n\tAND\n\ti.expires <> 150842304000000000\n\tAND\n\tTO_FILETIME(NOW()) < i.expires\n\tAND\n\tTO_FILETIME(DATE_ADD(NOW(), INTERVAL 1 WEEK)) > i.expires\n\tAND\n\t(flags & 0x01) = 0 # Flag 0x01 = Item lock\nGROUP BY\n\tc.internal_id\n"; foreach ($_supported_locales as $locale) { $db = ConnectCharacterDatabase($locale); $q = $db->query($query); while ($row = $q->fetch_row()) { $itemids = explode(',', $row[1]); $times = explode(',', $row[2]); ?> <div class="stream-block"> <?php MakePlayerAvatar($row[0], $locale, array('face' => 'angry', 'styleappend' => 'float: right;')); ?> <strong>Expiring Items</strong><br /> <?php foreach ($itemids as $index => $itemid) { ?> <?php echo GetMapleStoryString('item', $itemid, 'name', $locale); ?> expires in <?php echo time_elapsed_string($times[$index] - $__server_time); ?> !<br /> <?php } ?>
?> <div id="post" class="modal hide fade draggable" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width: 480px;"> <form id="statusposter" method="post"> <div class="modal-header"> <button type="button" class="close btn btn-mini" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i></button> <h3 id="myModalLabel"><img src="//<?php echo $domain; ?> /inc/img/shadowlogo.png" width="30px" style="position:relative;top:5px;"/> Share something?</h3> </div> <div class="modal-body"> <?php MakePlayerAvatar($__login_main_character['name'], $__login_main_character['locale'], array('styleappend' => 'float: left; margin: 0;')); ?> <textarea name="content" id="post-status" style="width: 340px; max-width: 340px; clear:both;border:1 !important; margin-bottom: 0; margin-left: 10px; min-height: 62px;" placeholder="Type your status here!"></textarea> <input type="hidden" name="reply-to" value="-1" /> </div> <div class="modal-footer"> <select name="usingface" onchange="ChangePostAvatarFace(value)" style="float: left; padding: 2px"> <?php foreach ($avatar_faces as $faceid => $facename) { ?> <option value="<?php echo $faceid; ?> "><?php echo $facename; ?>
</td> </tr> <?php } ?> </table> </div> <div class="span5" style="height:100% !important; float: right;"> <p class="alert alert-info lead"><b><i class="icon-star"></i> Top 5</b></p> <small class="more" style="margin-top:10px;"> <?php while ($row = $q->fetch_assoc()) { ?> <div class="status"> <?php MakePlayerAvatar($row['name'], CURRENT_LOCALE); ?> <p class="lead"><img src="//<?php echo $domain; ?> /inc/img/worlds/<?php echo $row['world_name']; ?> .png" /> <?php echo $row['name']; ?> <br/> <span class="faded">Level <?php echo $row['level']; ?> <?php