Richie
Not New Member
^ Yes, That's My Fugly Face!
Posts: 35
Richie said 2 great things
|
Post by Richie on Feb 8, 2012 15:53:34 GMT -8
CB?: Yes Location: Global FooterImage Preview:Description: Adds a Link Next To The IP In The Bottom Right Of Posts That When Clicked Takes You To The "Ban Members Page" & Fills In The 1st Input With The IP. <script type="text/javascript"> <!-- /* Ban IPs From Posts - Global Footer - By Son Of Exodia */
if(/(display|search2)/i.test(pb_action)){ for(var x=0;x<font.length;x++){if(/alt="IP: "/i.test(font[x].innerHTML) && !/logged/i.test(font[x].innerHTML)){var ip=font[x].innerHTML.split('> '); font[x].innerHTML+=' <a href="?action=ban&ip='+ip[1]+'" target="_blank" title="Click Here To Ban This IP">Ban This IP</a>'; }}}
var ipban=document.location.href.split("&ip=")[1]; var baninput=document.getElementsByName("who-1")[0]; if(ipban){ baninput.value=ipban; baninput.focus(); } // --> </script>
|
|
|
Post by Wormopolis on Feb 8, 2012 19:44:57 GMT -8
very clever!
I know of at least 1 code it will clash with, but I guess the admin will have to choose
|
|
Richie
Not New Member
^ Yes, That's My Fugly Face!
Posts: 35
Richie said 2 great things
|
Post by Richie on Feb 9, 2012 15:59:38 GMT -8
very clever! I know of at least 1 code it will clash with, but I guess the admin will have to choose Thanks Wormo! ;D BTW i was notified HERE it would conflict with SubDevos Code, so i changed it to add a link next to the IP (And i have checked, and it doesn't conflict with it).
|
|
|
Post by Wormopolis on Feb 9, 2012 16:22:12 GMT -8
I had a similar code I wrote a few months before subdevo created one.
|
|