vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Remove Modify Profile Section - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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! {Smile}
This IS case sensitive! {Smile}

Main Footer
 Printable View

All times are GMT+0 :: The current time is 1:52am
Page generated in 0.0945 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums