Simple Machine Codes
April 20, 2024, 08:04:16 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to SMC, the best place for your SMF For Free Codes
 
  Home Help Search Arcade Gallery Affiliates Code Index Staff List Calendar Members Login Register  

Top 10 Posters v3

Pages: [1]   Go Down
  Print  
Author Topic: Top 10 Posters v3  (Read 401 times)
0 Members and 1 Guest are viewing this topic.
Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: March 31, 2009, 05:56:33 pm »

Add to headers if you don't have it:
Code:
<script src="/jquery.js"></script>
Footers:
Code:
<script type="text/javascript">
var TopNum = 10;
var ShowFirst = 0;

//Created by Agent Moose (revolutionx.smfforfree3.com)
if(location.href.match(/action=mlist;sort=posts;sa=TopTen/i)) if(ShowFirst == 1) $("a[title*='View the profile of']").parent().parent("tr:gt(" + Math.floor(parseInt(TopNum) - 1) + ")").hide(); else $("a[title*='View the profile of']").parent().parent("tr:gt(" + Math.floor(parseInt(TopNum)) + "),tr:first").hide();
$("#upshrinkHeader").find("td.windowbg2[colspan='2']").append("<a href='/?action=mlist;sort=posts;sa=TopTen'>View Top " + Math.floor(parseInt(TopNum)) + " Posters</a>");
</script>

Original Request: http://www.smfsupport.com/support/code_requests/request_top_3_posters-t26133.0.html

This line:
Code:
var TopNum = 10;
Tells how many Top Posters will show up.  Just change the 10 to how ever many people you want to show up.

This line:
Code:
var ShowFirst = 0;
Tells if the #1 poster will show up.  So, if you want it to show up, put a 1, if you don't want it to show up, put a 0.

Enjoy Smiley
« Last Edit: March 31, 2009, 05:58:08 pm by Agent Moose » Report Spam   Logged

Share on Facebook Share on Twitter



Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy