Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
Remove "Change Password" Option; A quickie, made for test boards
Topic Started: Dec 2 2007, 08:40 AM (775 Views)
Mwr247
Member Avatar
Cæsaris Salutis!
[ *  * ]
Name:
Remove "Change Password" Option (By Mwr247)

Description:
This code lets you remove the "change password" link, ideal for test boards with testing accounts.

Preview:
ZetaBox

Installation:
Add this to the top of your "Below The Board" wrapper in the board template:
Quote:
 
<script>
// Remove "Change Password" Option (By Mwr247)
var rcp=document.getElementsByTagName('li');
for(r=0;r<rcp.length;r++){
if(rcp[r].innerHTML.match('Change Password')){rcp[r].innerHTML='';rcp[r].style.display='none';}}
</script>

And that's it! easy setup.
Edited by Mwr247, Dec 2 2007, 08:41 AM.
Offline Profile Quote Post Goto Top
 
ejames2100
Member Avatar
Member
[ * ]
Very Usefull, I was always trying out new things for my forum on IF and people kept changing the passwords on the test
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Uh dude, there's a safer way than this. For that one account, make a new group and disable it from changing its profile. Safer than JS, but it's nice anyways. :)

I made a code to block off the input boxes. The way you did it, people can easily guess the URL. But then I found that the ACP way was way better.
Edited by Eureka, Dec 2 2007, 01:08 PM.
Offline Profile Quote Post Goto Top
 
Mwr247
Member Avatar
Cæsaris Salutis!
[ *  * ]
You could, but that would also take away profile related previews. As for link guessing, people could also just disable javascript and get past either code, but only if their really determined.
Offline Profile Quote Post Goto Top
 
Eureka
Member
[ *  *  * ]
Mwr247
Dec 2 2007, 01:21 PM
You could, but that would also take away profile related previews. As for link guessing, people could also just disable javascript and get past either code, but only if their really determined.
I assume this is only good for test boards and test accounts, in which case, why would you let them touch any profile options? It's safer to just remove access.

But if a code is related to the profile side, it's a problem. :S I guess a pic would work. Just suggesting. lol
Edited by Eureka, Dec 2 2007, 01:26 PM.
Offline Profile Quote Post Goto Top
 
Tim
Member Avatar
Timmeh
[ *  *  *  * ]
Useful code.

Of course you can get around it by turning JS off.
Offline Profile Quote Post Goto Top
 
Dennis
Member Avatar
Member Extraordinaire

It's definitely not a fix-all, but it will stop the majority of users. Nice code. :)
Offline Profile Quote Post Goto Top
 
FOS
Member
[ *  *  * ]
Nice code, and it works. ^_^ I don't have any need for it personally, but could you possibly do the same thing for the 'Change Username' option too, please? We have the option turned off in ACP, but it would be great to remove it entirely, rather than members clicking on the link and receiving an error message.

I don't know if it's possible to remove the three clickable options in 'Blog Setup' with a code, but if that can be done it would be much appreciated, too. ;)
Offline Profile Quote Post Goto Top
 
Mwr247
Member Avatar
Cæsaris Salutis!
[ *  * ]
I could do the above, and probably the blog one too if I understand what you're asking. Do you mean the "Yes" or "No" options when editing your blog settings?
Offline Profile Quote Post Goto Top
 
FOS
Member
[ *  *  * ]
Yes please, that's exactly what I meant. :D

Would removing those options act as though the user had left them all on 'Yes' by default? :unsure: The first option, 'Allow guests to view your blog?' worries me a little. But if guests are prevented from viewing profiles from ACP, it should be okay unless they can 'guess' blog URL's. And removing 'Allow members to comment on your blog entries?' & 'Show a list of users reading your blog?' we'd prefer for management/security reasons. ;)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · User Created Codes · Next Topic »
Add Reply