Simple Machine Codes
March 28, 2024, 03:11:20 pm
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 v2

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

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« on: July 05, 2008, 07:08:48 pm »

Footers:
Code:
<script>
var loc = window.location.href.split("/index.php")[0]
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match(/action=mlist;sort=posts;sa=TopTen/i)) $("a[title*='View the profile of']").parent().parent("tr:gt(10),tr:first").hide();
$("#upshrinkHeader").find("td.windowbg2[colspan='2']").append("<a href='" + loc + "/index.php?action=mlist;sort=posts;sa=TopTen'>View Top Ten Posters</a>");
</script>

Original Request: http://smcodes.smfforfree3.com/index.php/topic,1077.0.html

Just like the first one, but it removes the very first person from the list, since post likely he is the admin Wink
Report Spam   Logged

Share on Facebook Share on Twitter

tonypker13
Ummmm Did I just Pwn myself?
Members

Offline Offline

Posts: 86

I think i just owned myself?


View Profile
« Reply #1 on: July 05, 2008, 08:11:20 pm »

Thanks moosey! Is it possible to make a code that completely removes anyone's name you type in? Like if they were in trouble on the forum and you wanted to take them off of it?
Report Spam   Logged


Agent Moose
Administrator

Offline Offline

Gender: Male
Posts: 2,672



View Profile WWW
« Reply #2 on: July 05, 2008, 09:32:04 pm »

Try this:
Code:
<script>
function TopTen(RAWR){
var loc = window.location.href.split("/index.php")[0]
//Created by Agent Moose (smcodes.smfforfree3.com)
if(location.href.match(/action=mlist;sort=posts;sa=TopTen/i)) $("a[title*='View the profile of']").parent().parent("tr:gt(10),tr:first,tr:contains(" + RAWR + ")").hide();
$("#upshrinkHeader").find("td.windowbg2[colspan='2']").append("<a href='" + loc + "/index.php?action=mlist;sort=posts;sa=TopTen'>View Top Ten Posters</a>");
};
TopTen("Name Here");
</script>
Report Spam   Logged

tonypker13
Ummmm Did I just Pwn myself?
Members

Offline Offline

Posts: 86

I think i just owned myself?


View Profile
« Reply #3 on: July 05, 2008, 11:55:54 pm »

kk ill try it Smiley thanks
Report Spam   Logged


legend 1234
100 Club Member

Offline Offline

Gender: Male
Posts: 461


Legend 1234


View Profile WWW
« Reply #4 on: July 06, 2008, 08:42:22 am »

yet again moosey another cool code

legend 1234
Report Spam   Logged

lolcracker
Starter

Offline Offline

Posts: 11


View Profile
« Reply #5 on: July 15, 2008, 02:23:03 am »

I cannot get it to work.. the forum url is


http://zerkscape.co.nr

OR

http://zerkscape.smfforfree4.com
Report Spam   Logged
CodeLover
100 Club Member

Offline Offline

Gender: Male
Posts: 331


View Profile
« Reply #6 on: July 16, 2008, 04:31:56 pm »

I've seen more than one forum in which the root admin isn't the top poster, but ok...
Report Spam   Logged

Don't get mad at me if I'm acting immature - I'm only 10 Grin


tonypker13
Ummmm Did I just Pwn myself?
Members

Offline Offline

Posts: 86

I think i just owned myself?


View Profile
« Reply #7 on: July 16, 2008, 06:34:03 pm »

Thats probably because he hadent edited his post to be #1
Report Spam   Logged


Kalphiter
100 Club Member

Offline Offline

Gender: Male
Posts: 203


Never forget to drink coffee.


View Profile
« Reply #8 on: July 16, 2008, 07:48:16 pm »

http://YOURFORUMS.smfforfreeX.com/index.php?action=mlist;sort=posts;sa=TopTen

Did that help?
Report Spam   Logged

Java is your friend.
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