A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
2.4 KiB

<?php require_once('./templates/overall_header.tpl.php'); ?>
<script src="templates/scripts/nick.js" type="text/javascript"></script>
<div id="content">
<br>
<div class="forum_table">
<div class="row">
<div class="hc1"><?php echo $this->TPL['user_info']['nick']; ?></div>
<div class="hc4 hcpost f_hc4">
<?php if ($_GET['id'] == $this->TPL['logged_id']) {?>
<a href="index.php?mode=editprofile">Edit my profile &raquo;</a>
<?php } else { ?> &nbsp; <?php } ?>
</div>
</div>
<div class="row">
<div class="tc1 tc2">
<?php
if ($this->TPL['user_info']['avatar'] != null)
echo '<img src="'.$this->TPL['user_info']['avatar'].'" alt="user avatar">';
else
echo '<img src="templates/images/no_av.gif" alt="user avatar">';
?>
</div>
<div class="tc4 rc">
Joined: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['regdate']; ?></span><br>
Last visit: <span style="font-weight: bold"><?php echo (($this->TPL['user_info']['lastvisit']!= null) ? $this->TPL['user_info']['lastvisit'] : 'Never') ?></span><br>
Posts: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['post_count']; ?></span>; <span style="font-weight: bold"><?php echo $this->TPL['post_ratio']; ?>%</span> of total.<br>
Location: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['location']; ?></span><br>
</div>
</div>
<div class="row">
<div class="tc1 lc">
<a href="mailto:<?php echo $this->TPL['user_info']['email']; ?>" class="btn_small">Email</a>
</div>
<div class="tc4 rc">
Status: <img src="templates/images/<?php echo (($this->TPL['user_info']['user_IP']) ? 'online' : 'offline'); ?>.gif" alt="user status"><br>
Rank: <span style="font-weight: bold"><?php echo $this->getRankLevel($this->TPL['user_info']['rank']); ?>
</div>
</div>
</div>
<br>
<?php if ($this->TPL['user_info']['signature'] != null) { ?>
<div class="forum_table">
<div class="row">
<div class="hc1 hc4"><?php echo $this->TPL['user_info']['nick']; ?>'s signature</div>
</div>
<div class="row">
<div class="tc1 tc4" style="text-align: left; max-width: 870px">
<span class="fsmall"><?php echo BBCode($this->TPL['user_info']['signature']); ?></span>
</div>
</div>
</div>
<?php } ?>
</div>
<?php require_once('./templates/overall_footer.tpl.php'); ?>