Simie
Coding Admin
Why are you all still here?
Posts: 721
|
Post by Simie on Nov 3, 2006 17:31:03 GMT -5
<script> /*Disallow display name - Simie*/
if(document.modifyForm && !pb_username.match(/(user1|user2)/i)){ document.modifyForm.name.parentNode.parentNode.parentNode.style.display="none"; }
</script>
Edit red. Change user1 and user2 into the usernames of people who can edit the displayname. To add more, add another |user. eg: /(user1|user2|user3)/ etc.
|
|
Edwards
Aka: Brian Silver
Posts: 3,037
|
Post by Edwards on Nov 3, 2006 17:48:22 GMT -5
o0o0o0o nice code. It's all big words and numbers to me but I still think it's ok ;D
|
|
Samuel
Former Coding Moderator
:D
Posts: 154
|
Post by Samuel on Nov 3, 2006 17:55:48 GMT -5
This is a built in ProBoards function, try changing your display name to "admin".
Won't work for you, simie.(cos your staff)
|
|
Edwards
Aka: Brian Silver
Posts: 3,037
|
Post by Edwards on Nov 3, 2006 19:15:14 GMT -5
But this is disallowing, does it have a function for that too?
|
|
Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Nov 3, 2006 21:30:01 GMT -5
*Checks the admin panel* Apparently it does
|
|
Edwards
Aka: Brian Silver
Posts: 3,037
|
Post by Edwards on Nov 3, 2006 22:00:03 GMT -5
Well I'm not the one to know, I cant code, make graphics, or understand the basics of proboards
|
|
Samuel
Former Coding Moderator
:D
Posts: 154
|
Post by Samuel on Nov 4, 2006 4:08:39 GMT -5
And if someone a certain displayname badly, they'd disable JS and change it.
|
|
Simie
Coding Admin
Why are you all still here?
Posts: 721
|
Post by Simie on Nov 4, 2006 5:35:52 GMT -5
No. No, this stops them from changing it Only the people you say can change it. And yes, you can just disable JS, but thats the problem with all codes.
|
|
Edwards
Aka: Brian Silver
Posts: 3,037
|
Post by Edwards on Nov 4, 2006 9:23:03 GMT -5
Isn't that what I just asked XD and he said it automaticly does that? Im confused
|
|
Simie
Coding Admin
Why are you all still here?
Posts: 721
|
Post by Simie on Nov 4, 2006 12:40:42 GMT -5
You can't make it do that automatically
|
|
Matt
Graphics Admin
Great admin or greatest admin?
Posts: 4,891
|
Post by Matt on Nov 4, 2006 12:44:44 GMT -5
Oh. I understand now. This code makes it so certain people can not set a display name for themselves.
|
|
Edwards
Aka: Brian Silver
Posts: 3,037
|
Post by Edwards on Nov 4, 2006 19:35:38 GMT -5
Yeah, it's ok if you didn't understand it XD, neither did I
|
|