Michael Moderator
    
![[Avatar]](http://av.wservices.co.uk/av.png) Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
  
pmvForum | Re: Top Poster (18th Mar 08 at 7:05pm UTC) | | Try this:
Global/Main Header <table border='0' class='border' align='center' cellspacing='1' cellpadding='3' id='w_top_table' width='150px' style='display: none;'> <tr> <td class='title1' align='center'>Top Posters</td> </tr> <tr> <td class='window1' id='top_holder'></td> </tr> </table><br>
<script> /*Top Posters Table. Created By Wrighty No Rip, Repost or anything!*/
var _u = 'wrighty'; var _t = '5';
var _l = '<table border="0" width="100%" cellspacing="1" cellpadding="2">'; var _s = document.createElement('script'); _s.src = 'http://'+_u+'.virtualforums.co.uk/javascript/top_posters.php?max='+_t; _s.type = 'text/javascript'; document.body.appendChild(_s); function footer(){ for(i=0;i<top_posters.length;i++){ _l += '<tr><td width="75%" align="left"><a href="/action/view_profile/user/'+top_posters[i][0]+'/" class="'+top_posters[i][2]+'">'+top_posters[i][1]+'</a></td><td width="25%" align="right">'+top_posters[i][3]+'</td></tr>'; } _l += '</table>'; get('top_holder','id').innerHTML = _l var _a = document.createElement('a'); _a.onclick = function(){ get('w_top_table','id').style.display = (get('w_top_table','id').style.display=='none')? '' : 'none'; }; _a.href = 'javascript: void(0);'; _a.appendChild(document.createTextNode('Top Posters')); get('pms','id').firstChild.insertBefore(document.createTextNode(' :: '),get('pms','id').firstChild.firstChild); get('pms','id').firstChild.insertBefore(_a,get('pms','id').firstChild.firstChild); } </script>
Global/Main Footer: <script> footer(); </script>
Edit the red parts. They're the important parts.
Where I have 'Wrighty' is where you want to put the USERNAME of your board. Such as: support. Also, where I have '5' is the number of top posters to display. Max is 10! | |
|