Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | eR Info Center (2nd Apr 08 at 6:17pm UTC) | | Preview
Code: HTML - <!--Coded by Wrighty.
- Do not redistribute, RIP or claim.
- Concept By .System
- http://support.virtualforums.co.uk-->
-
- <script>
- var ranks = [
- ['Administrator','#928f5f'],
- ['Senior Mod','#149100'],
- ['Moderator','#02c1a8'],
- ['Designer','#ab00b1'],
- ['Resource Staff','#cf0404']
- ];
- </script>
- <table align="center" cellpadding="3" cellspacing="1" class="border" width="100%" id="info_center">
- <tr>
- <td class="title2">
- <table border=0 width=100%>
- <tr>
- <td width=70% colspan=2>
- <font size=3><b>Information Center</b></font>
- </td><td width=30% align='right'>
- <table border=0 cellspacing=1 cellpadding=2 class=border>
- <tr>
- <td class=window2>
- {if:guest}<a href=/action/login>Login</a> or <a href=/action/register>Register</a>{/if:guest}
- {if:member}<a href=/action/logout>Logout</a>{/if:member}
- </td>
- </tr>
- </table>
- </td></tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="window1">
- <table border=0 width=100%>
- <tr>
- <td width=60% valign=top>
- <u><font size=2>Members Currently Online</font></u>
- <table border=0 cellspacing=1 cellpadding=2 class=border align=center width=100%>
- <tr>
- <td class=window2 height=57px valign=top>
- {staff_on} Staff:
- <script>
- var a = '{online_str}';
- var b = a.split(/, /);
- staff = [];
- mem = [];
- for(i=0;i<b.length;i++){
- if(b[i].match(/group0/)){
- mem.push(b[i]);
- }else{
- staff.push(b[i]);
- }
- }
- document.write(staff.join(', '));
- </script>
- <br>
- {member_on} Members: <script>
- document.write(mem.join(', '));
- </script><br>
- {guest_on} Guests
- </td>
- </tr>
- </table>
- <u><font size=2>Members Online in the Last 24 Hours</font></u>
- <table border=0 cellspacing=1 cellpadding=2 class=border align=center width=100%>
- <tr>
- <td class=window2 height=57px valign=top>
- {today_str}
- </td>
- </tr>
- </table>
- </td>
- <td width=15% valign=top>
- <table border=0 cellspacing=1 cellpadding=2 class=border align=center width=100%>
- <tr>
- <td class=window2>
- <u>Newest Members:</u><br>
- {newest_members:3}
- </td>
- </tr>
- </table>
- <div style="padding-bottom: 4px;"> </div>
- <table border=0 cellspacing=1 cellpadding=2 class=border align=center width=100%>
- <tr>
- <td class=window2>
- <script>
- for(i=0;i<ranks.length;i++){
- document.write('<font color='+ranks[i][1]+'>'+ranks[i][0]+'</font><br>');
- }
- </script>
- </td>
- </tr>
- </table>
- </td>
- <td width=25% valign=top>
- <table border=0 cellspacing=1 cellpadding=2 class=border align=center width=100% >
- <tr>
- <td class=window2>
- <u>Last Post:</u><br>
- {last_post} by {last_post_user}<br>
- {last_post_date}
- </td>
- </tr>
- </table>
- <div style="padding-bottom: 4px;"> </div>
- <table border=0 cellspacing=1 cellpadding=2 class=border align=center width=100%>
- <tr>
- <td class=window2>
- <u>Stats:</u><br>
- Members: {total_members}<br>
- Topics: {total_topics}<br>
- Posts: {total_posts}<br>
- Boards: {total_boards}<br>
- Categories: {total_categories}
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
This part of the code: <script> var ranks = [ ['Administrator','#928f5f'], ['Senior Mod','#149100'], ['Moderator','#02c1a8'], ['Designer','#ab00b1'], ['Resource Staff','#cf0404'] ]; </script> Has to be editted. Simply change the names of the ranks and the colors of the ranks as well. This is for the 'staff legend' that will appear.
To add: => Info Center Template. Paste the whole code in here! | |
|