Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Aug 23, 2010 14:35:24 GMT -8
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>
|
|
|
Post by Wormopolis on Aug 23, 2010 15:07:34 GMT -8
question though.. if they shouldnt be editing headers/footers, why do they have the ability in the first place?
|
|
Nightwalker
Full Member
Everything Happens at Night
Posts: 138
Nightwalker said 0 great things
|
Post by Nightwalker on Aug 24, 2010 18:27:32 GMT -8
Main reason you would use this code is if you want people to be able to use the headers but you want to do one of two things...or both
1) Have the staff members ask you if they can put any code in the headers/footers
2) Remind them to backup the headers and footers
Yes i think this is a useful code. It is not meant to keep people from editing the headers it is to remind them of things you would like done before hand.
|
|