Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Jun 26, 2010 17:03:15 GMT -8
This makes a pop up box that makes sure the people want to report something or if they are spamming warns them. Preview:Global Footer <script type="text/javascript"> // Alert Before Reporting if(/^(search2|display)$/.test(pb_action)) { 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>
|
|
|
Post by Wormopolis on Aug 3, 2010 2:36:33 GMT -8
I can see use for this. If you have a bunch of new people who dont know what things do. alternatively, putting a title on the report link itself might be a better idea. that way they see what the link does BEFORE they actually click it. that way they dont have to clear the alert EVERY time they click the report link. something similar to: <script type="text/javascript"> <!-- // report post pre-warn text // by Wormo for (lnks=document.getElementsByTagName('a'), p=0; p<lnks.length; p++) { if (lnks .href.match(/action=reportpost/)) lnks .title="THIS REPORTS THIS POST TO MODERATORS. MISUSE OF THE REPORTING FEATURE WILL HAVE CONSEQUENCES"; } // --> </script>
|
|