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.

64 lines
2.4 KiB

  1. <?php require_once('./templates/overall_header.tpl.php'); ?>
  2. <script src="templates/scripts/nick.js" type="text/javascript"></script>
  3. <div id="content">
  4. <br>
  5. <div class="forum_table">
  6. <div class="row">
  7. <div class="hc1"><?php echo $this->TPL['user_info']['nick']; ?></div>
  8. <div class="hc4 hcpost f_hc4">
  9. <?php if ($_GET['id'] == $this->TPL['logged_id']) {?>
  10. <a href="index.php?mode=editprofile">Edit my profile &raquo;</a>
  11. <?php } else { ?> &nbsp; <?php } ?>
  12. </div>
  13. </div>
  14. <div class="row">
  15. <div class="tc1 tc2">
  16. <?php
  17. if ($this->TPL['user_info']['avatar'] != null)
  18. echo '<img src="'.$this->TPL['user_info']['avatar'].'" alt="user avatar">';
  19. else
  20. echo '<img src="templates/images/no_av.gif" alt="user avatar">';
  21. ?>
  22. </div>
  23. <div class="tc4 rc">
  24. Joined: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['regdate']; ?></span><br>
  25. Last visit: <span style="font-weight: bold"><?php echo (($this->TPL['user_info']['lastvisit']!= null) ? $this->TPL['user_info']['lastvisit'] : 'Never') ?></span><br>
  26. 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>
  27. Location: <span style="font-weight: bold"><?php echo $this->TPL['user_info']['location']; ?></span><br>
  28. </div>
  29. </div>
  30. <div class="row">
  31. <div class="tc1 lc">
  32. <a href="mailto:<?php echo $this->TPL['user_info']['email']; ?>" class="btn_small">Email</a>
  33. </div>
  34. <div class="tc4 rc">
  35. Status: <img src="templates/images/<?php echo (($this->TPL['user_info']['user_IP']) ? 'online' : 'offline'); ?>.gif" alt="user status"><br>
  36. Rank: <span style="font-weight: bold"><?php echo $this->getRankLevel($this->TPL['user_info']['rank']); ?>
  37. </div>
  38. </div>
  39. </div>
  40. <br>
  41. <?php if ($this->TPL['user_info']['signature'] != null) { ?>
  42. <div class="forum_table">
  43. <div class="row">
  44. <div class="hc1 hc4"><?php echo $this->TPL['user_info']['nick']; ?>'s signature</div>
  45. </div>
  46. <div class="row">
  47. <div class="tc1 tc4" style="text-align: left; max-width: 870px">
  48. <span class="fsmall"><?php echo BBCode($this->TPL['user_info']['signature']); ?></span>
  49. </div>
  50. </div>
  51. </div>
  52. <?php } ?>
  53. </div>
  54. <?php require_once('./templates/overall_footer.tpl.php'); ?>