Welcome Guest [Log In] [Register]
Welcome to Endurance ORG. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Code
Topic Started: Jun 30 2013, 10:41 PM (34 Views)
Allison Janney
Loser Lounge
Hey everyone!

Here's the code I promised that prevents members from changing their passwords. You just have to edit the name and number to match all your players. You can add as many numbers/names as you need, too. (also ignore that I just copied it directly from my Crashcoruse board)

Code:
 
<script type="text/javascript">

/*
Prevent Password Change for Certain Users
by Verminox of:
http://s14.invisionfree.com/iSecure/index.php &
http://forum.ifcode.com
*/

//Start Edittable

var Name = new Array()
Name[0] = "Aras"
Name[1] = "Brandon"
Name[2] = "Brian"
Name[3] = "Brianna"
Name[4] = "Cindy"
Name[5] = "Dan"
Name[6] = "Danielle"
Name[7] = "Jamie"
Name[8] = "Jim"
Name[9] = "Margaret"
Name[10] = "Melinda"
Name[11] = "Misty"
Name[12] = "Morgan"
Name[13] = "Nick"
Name[14] = "Ruth Marie"
Name[15] = "Shane"

var PassMsg = "<b>The Password for this account cannot be changed.</b>"


//Do not Edit after this line


var User = document.getElementsByTagName('TABLE')

for(x=0;x<Name.length;x++){
for(i=0;i<User.length;i++){
if(User.id=="userlinks" && User.innerHTML.match(">" + Name[x] + "</a>")!= null ){
var e = document.getElementsByName('form1')
if(location.href.match("act=UserCP&CODE=28")!= null )
{
e[0].style.display="none"
e[0].parentNode.innerHTML += "<div class='pformstrip'>Your Password</div><br /><p>" + PassMsg + "</p><div align='center' class='pformstrip'><input type='button'value='Go Back' class='forminput' onClick='history.go( -1 );return true;'/></div>"
}
}
}
}
</script>
Offline Profile Quote Post Goto Top
 
JD Roth
Host
Welcome to the forest, VocalFry!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Host Planning · Next Topic »
Add Reply