vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Top Poster - View Topic (Page 2 of 2)Page: 1 2
Topic Rating: *****
Printable View
This topic was locked 18th Mar 08 at 11:17pm by Michael
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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! {Smile}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Top Poster (18th Mar 08 at 11:09pm UTC)
This is great Wrighty and it works fine, thank you for doing it {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Top Poster (18th Mar 08 at 11:16pm UTC)
No problem! {Smile}
 Printable View
Page: 1 2

All times are GMT+0 :: The current time is 6:19am
Page generated in 0.2794 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums