vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: Remove Modify Profile (For Good Reason) - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
Remove Modify Profile (For Good Reason) (30th May 09 at 5:06am UTC)
Resolved
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.
GlitchesSocom
Junior Member
**

[Avatar]
Will code JavaScript for food.

Posts: 67
Status: Offline
Gender: Male
Location: USA
Age: 35
Joined:  
Reputation: 16%  


pmwwwmsnyahooaimgtalkvForum
Re: Remove Modify Profile (For Good Reason) (31st May 09 at 4:02am UTC)
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....

Image
dog199200
Guest
Re: Remove Modify Profile (For Good Reason) (31st May 09 at 4:55am UTC)
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?
Michael
Moderator
*****

[Avatar]
Recoding the future

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

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Remove Modify Profile (For Good Reason) (31st May 09 at 11:41am UTC)
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');
GlitchesSocom
Junior Member
**

[Avatar]
Will code JavaScript for food.

Posts: 67
Status: Offline
Gender: Male
Location: USA
Age: 35
Joined:  
Reputation: 16%  


pmwwwmsnyahooaimgtalkvForum
Re: Remove Modify Profile (For Good Reason) (31st May 09 at 3:50pm UTC)
I could of made the code to remove the link but Michael beat me to it haha =]

Image
dog199200
Guest
Re: Remove Modify Profile (For Good Reason) (31st May 09 at 8:51pm UTC)
k, thank you {Smile}
 Printable View

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