inherit
153968
0
Nov 19, 2012 15:03:05 GMT -8
Thesealion
New Phone Who Dis?
4,124
April 2010
joemaggio
|
Post by Thesealion on Aug 16, 2010 13:29:35 GMT -8
I know this code is already out there but i tried it a little different. Discription: This code makes it so that when you click the PM link in someones profile you will get a popup message making sure you want to PM. Global Footer:<script type="text/javascript"> /* Alert before PMing by Nightwalker Please do not edit or repost without permission for support go to joemaggio.proboards.com */ if(/^(search2|display|viewprofile|members)$/.test(pb_action)) { // Edit Here var nopming=[ ["admin", "Please do not message the admin for support"], ["username", "message"], ["username", "message"] //No comma on last line ]; // No More Editing var i = document.links; for(k=0;k<nopming.length;k++){ for(var x = 0; x < i.length; x ++){ if(i[x].href.indexOf("action=pmsend&to=" + nopming[k][0] ) > -1) i[x].onclick = new Function("return confirm('" + nopming[k][1] + "')"); } } } </script>
|
|