Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Aug 16, 2010 13:52:22 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>
|
|