Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« on: July 05, 2008, 07:08:48 pm » |
|
Footers: <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.htmlJust like the first one, but it removes the very first person from the list, since post likely he is the admin
|
|
|
|
|
tonypker13
Ummmm Did I just Pwn myself?
Members
Offline
Posts: 86
I think i just owned myself?
|
|
« 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?
|
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #2 on: July 05, 2008, 09:32:04 pm » |
|
Try this: <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>
|
|
|
|
tonypker13
Ummmm Did I just Pwn myself?
Members
Offline
Posts: 86
I think i just owned myself?
|
|
« Reply #3 on: July 05, 2008, 11:55:54 pm » |
|
kk ill try it thanks
|
|
|
|
legend 1234
100 Club Member
Offline
Gender:
Posts: 461
Legend 1234
|
|
« Reply #4 on: July 06, 2008, 08:42:22 am » |
|
yet again moosey another cool code
legend 1234
|
|
|
|
|
CodeLover
100 Club Member
Offline
Gender:
Posts: 331
|
|
« 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...
|
|
|
|
tonypker13
Ummmm Did I just Pwn myself?
Members
Offline
Posts: 86
I think i just owned myself?
|
|
« Reply #7 on: July 16, 2008, 06:34:03 pm » |
|
Thats probably because he hadent edited his post to be #1
|
|
|
|
Kalphiter
100 Club Member
Offline
Gender:
Posts: 203
Never forget to drink coffee.
|
|
« 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?
|
Java is your friend.
|
|
|
|
|