Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Remove Modify Profile Section (3rd Apr 08 at 5:21pm UTC) | | This code will allow you to remove any part or section in the modify profile page that you wish.
<script> var users = /(admin)/; var name = /(E-Mail|Display Name)/;
var r = get('tr','tag'); if(/modify_profile/.test(location.href)){ for(i=0;i<r.length;i++){ if(r[i].cells[0] && r[i].cells[0].firstChild && r[i].cells[0].firstChild.size == '2' && r[i].cells[0].firstChild.innerHTML.match(name) && !users.test(vf_username)){ r[i].style.display = 'none'; } } } </script>
To edit this do the following: Adding users able to edit the field: /(admin)/; /(admin|wrighty|ross)/; [Enter their username there]
Changing hidden field: 'E-Mail'; Edit in the same way as the user one just above! This IS case sensitive!
Main Footer
| |
|