vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > vBulletin Style Info Center

vBulletin Style Info Center - Posted By Ross (admin) on 11th Feb 08 at 8:32pm
This will make the info center look somewhat similar to that used by vBulletin.

Code: HTML
 
  1. <script type="text/javascript">
  2. var staff_on = parseInt("{staff_on}".replace(/,/, ''));
  3. var member_on = parseInt("{member_on}".replace(/,/, ''));
  4. var members_online = staff_on + member_on;
  5. </script>
  6. <table class="border" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
  7. <thead>
  8. <tr>
  9. <td class="title1" colspan="2">What's Going On?</td>
  10. </tr>
  11. </thead>
  12.  
  13. <!-- logged-in users -->
  14. <tbody>
  15. <tr>
  16. <td class="title2" colspan="2">
  17. <a style="float:right" href="#top">UP</a>
  18. Currently Active Users: {online_total} (<script type="text/javascript">document.write(members_online);</script> members and {guest_on} guests)
  19. </td>
  20. </tr>
  21. </tbody>
  22. <tbody>
  23. <tr>
  24. <td class="window2"><img src="http://virtualforums.co.uk/images/addons/vb/whos_online.gif" alt="Who's Online" border="0" /></td>
  25. <td class="window1" width="100%">
  26. <font size="1">
  27. <div>{online_str}</div>
  28. </div>
  29. </td>
  30. </tr>
  31. </tbody>
  32. <!-- end logged-in users -->
  33.  
  34. <tbody>
  35. <tr>
  36. <td class="title2" colspan="2">
  37. <a style="float:right" href="#top">UP</a>
  38. Forum Statistics
  39. </td>
  40. </tr>
  41. </tbody>
  42. <tbody>
  43. <tr>
  44. <td class="window2"><img src="http://virtualforums.co.uk/images/addons/vb/stats.gif" alt="Forum Statistics" border="0" /></td>
  45. <td class="window1" width="100%">
  46. <font size="1">
  47. <div>
  48. Threads: {total_topics},
  49. Posts: {total_posts},
  50. Members: {total_members},
  51. <span title="Within the Last 24 Hours">Active Members: {today_total}</span>
  52.  
  53. </div>
  54. <div>Welcome to our newest member, {newest_members:1}</div>
  55. </font>
  56. </td>
  57. </tr>
  58. </tbody>
  59. {if:birthdays}
  60. <!-- today's birthdays -->
  61. <tbody>
  62. <tr>
  63. <td class="title2" colspan="2">
  64. <a style="float:right" href="#top">UP</a>
  65. Today's Birthdays
  66. </td>
  67. </tr>
  68. </tbody>
  69. <tbody>
  70. <tr>
  71. <td class="window2"><img src="http://virtualforums.co.uk/images/addons/vb/birthday.gif" alt="Todays Birthdays" border="0" /></td>
  72. <td class="window1" width="100%"><font size="1">{birthdays}</font></td>
  73. </tr>
  74. </tbody>
  75. {/if:birthdays}
  76. </table>
 

Re: vBulletin Style Info Center - Posted By Tyson (fithad) on 30th Apr 08 at 10:36pm
Is there a way to find the actual most users ever online?