Wild1145
Club 4000 Member
Inactive Player & Inactive Senior Admin
Posts: 10,414
| Likes: 9,680
|
Post by Wild1145 on Dec 26, 2012 21:54:24 GMT
Global Footer:
<script type="text/javascript"> // Alert Before Reporting if(location.href.indexOf("action=display") > -1) { var i = document.links; for(var x = 0; x < i.length; x ++) if(i[x].href.indexOf("action=reportpost") > -1) i[x].onclick = function() { return confirm("This feature is used for reporting posts that do not follow the rules of the forum or the proboards TOS. If you misuse this feature you will be warned or banned. To proceed click ok, otherwise click cancel") } } </script>
|
|
Wild1145
Club 4000 Member
Inactive Player & Inactive Senior Admin
Posts: 10,414
| Likes: 9,680
|
Post by Wild1145 on Dec 26, 2012 21:55:18 GMT
This code also goes in the global footer, it will stop people reporting there own posts
<script type="text/Javascript"> // Prevent Self-Reporting by Chris // Do not redistribute without permission of the creator
// No need to edit if(pb_action.match(/display|search2/)){ var aTD = document.getElementsByTagName("td"); for(a=0;a<aTD.length;a++){ if(aTD[a].width == "20%" && aTD[a].innerHTML.match(new RegExp("user="+pb_username+"(\"|'|\s|>)"))){ var an = aTD[a+1].firstChild.rows[2].cells[0].firstChild.rows[0].cells[1].getElementsByTagName("a")[0]; an.parentNode.removeChild(an.nextSibling); an.parentNode.removeChild(an); } } }
|
|