vForums Support > Programming & Coding :: Code Requests & Support :: > Remove Modify Profile (For Good Reason)
Remove Modify Profile (For Good Reason) - Posted By dog199200 (dog199200) on 30th May 09 at 5:06am
OK this is a very odd request, but here is the think, what I need is a code that will allow me to remove the option of people modifying their profile. I know what your thinking, this is an invasion of privacy or of rights or something like that, and is against ToS, but the thing is I don't want this code for a public forum, in fact its for a SECRET forum that only people within the staff within my video game development company. The thing is though I can select things set within the profile that I don't wants changed, like Gender, Age, Display name, as well as many things removed like Custom Titles, Avatar, Signature. This is because again this is a personal, private business forum and I don't wnat the clutter. So if anyone has any questions or comments on this or has any ToS questions please let me know and i'll have Ross look into the matter and see if it would be allowed.
The only acception is I want the administrator group to be able to see the modify profile button still.
Re: Remove Modify Profile (For Good Reason) - Posted By GlitchesSocom (ravenelle) on 31st May 09 at 4:02am
what about this:
http://support.virtualforums.co.uk/board/database/topic/16347/action/view_topic/remove-modify-profile-section
if not I can just make a code that will remove the link in members' profiles except for the admin group....
Re: Remove Modify Profile (For Good Reason) - Posted By dog199200 (dog199200) on 31st May 09 at 4:55am
i didn't see that... ok i'll see if it will work
Edit: Ok it worked, though i basically picked the modify profile page apart, anyways I want the "Messenger Information" area gone completely, but the name of it is still there and so is the divider, so how would it get rid of it?
Re: Remove Modify Profile (For Good Reason) - Posted By Michael (wrighty) on 31st May 09 at 11:41am
To remove the link you could use this code:
<script>var admin_rank = '0', a = get('a', 'tag');
for (var z = 0, x = true; z < vf_usergroup.length; z++)
if (vf_usergroup[z] === admin_rank)
x = false;
for(n in a)
if(a[n].href && a[n].href.match(/modify_profile/) && x)
a[n].style.display = 'none';
</script>
Edit the red with the admin group I :)var admin_rank = '0', a = get('a', 'tag');
Re: Remove Modify Profile (For Good Reason) - Posted By GlitchesSocom (ravenelle) on 31st May 09 at 3:50pm
I could of made the code to remove the link but Michael beat me to it haha =]
Re: Remove Modify Profile (For Good Reason) - Posted By dog199200 (dog199200) on 31st May 09 at 8:51pm
k, thank you