vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: Code Submissions :: > iCodes Info Center

iCodes Info Center - Posted By Nick (nickb) on 12th Sep 09 at 3:31am
Info: Just add this to the Forum Templates Info center.
Editing: The only thing you need to edit is this part: "Welcome to Forum Name!" The forum name is of your forums name.
Preview: [-|Members | Guests |-]
Forum: http://icodes.vforums.co.uk | http://icodes.vforums.co.uk/board/templatecodes/topic/291/action/view_topic/icodes-custom-info-center#291


Code:
 
  1. <table align="center" cellpadding="3" cellspacing="1" class="border" width=100% id="info_center">
  2. <tr>
  3. <td align="center" class="title1" colspan="2"><font size=2>
  4. <b>Information Center</b></font>
  5. </td>
  6. </tr>
  7. <tr>
  8. <td align="center" class="window1"><font size="2">
  9. [-| <b>Total PMs:</b> <a href="/action/pm">{total_pms}</a> |
  10. <b>New PM:</b> <a href="/action/pm">{new_pms}</a> |
  11. <b>Total Users Online:</b> {online_total} |-]
  12. </font>
  13. </td>
  14. </tr>
  15. <tr>
  16. <td align="left" class="window1"><font size="2">
  17. <b>Last Post:</b> {last_post}<br/>
  18. <b>Made By:</b> {last_post_user}<br/>
  19. <b>Made on:</b> {last_post_date}<br/>
  20. <b>Newest Member:</b> {foreach:newest_members:1}{number}: {member} ({user_name})<br />{/foreach}
  21. </font>
  22. </td>
  23. </tr>
  24. <tr>
  25. <td align="Center" class="window1"><font size="2">
  26. [-| <b>Topics:</b> {total_topics} | <b>Posts:</b> {total_posts} | <b>Categories:</b> {total_categories} | <b>Boards:</b> {total_boards} |-]
  27. </font>
  28. </td>
  29. </tr>
  30. <tr>
  31. <td align="center" class="title1" colspan="2">
  32. <font size="2"><b>Users Online</b></font>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td align="center" class="window1"><font size="2">
  37. [-| <b>Staff:</b> {staff_on} |
  38. <b>Members:</b> {member_on} |
  39. <b>Guests:</b> {guest_on} |-]
  40. </font>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td align="left" class="window1"><font size="2">
  45. {if:guest}Welcome to Forum Name! Please <a href="/action/login">Login</a> or <a href="/action/register">Register</a>.{/if}
  46. {if:member}Most users ever online was {today_total}.{/if}<br/>
  47. <hr>
  48. {if:guest}There are currently no members online.{/if}
  49. {foreach:all_online}{user}{if:invisible} (invisible){/if}{ifnot:foreach_last}, {/if}{/foreach}
  50. </td>
  51. </tr>
  52. </table>
  53.