|
Post by Nightwalker on Aug 23, 2010 16:30:05 GMT -6
Makes an alert when someone clicks to edit the headers and footers. You can give users that you don't want the popup to show for.
<script type="text/javascript"> /* Alert modifying the headers by Nightwalker May be reposted on Nightcodes, Proboards Support, Studio Zero, and Wormocodes Do not edit */
var winkyding = /^(admin|user 1|user 2)$/; //users that the popup does NOT show for var winkydong="Please do not edit the Headers/Footers without permission of the admin. \nIf you have permission you must remember to backup the Headers/Footers before changing anything. \nIf you do not follow these rules you will have your staff privileges taken away." //Popup Message
if(!winkyding.test(pb_username)) { if(/^(admin)$/.test(pb_action)) { var i = document.links; for(var x = 0; x < i.length; x ++) if(i[x].href.indexOf("action=headersfooters") > -1) i[x].onclick = function() { return confirm(""+ winkydong) } } } </script>
|
|