Disable "Options" Menu in Edit User Profile

If you need support with TeamCal Pro (installation, configuration, usage) post your request here.
Post Reply
webstyle
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 2005-05-15, 01:47

Disable "Options" Menu in Edit User Profile

Post by webstyle » 2010-11-21, 18:35

Hi George!

I want to "DISABLE" the edit options in the user profile pop up window.
The User should have only the possibility to change
"Personal Data" and "Other"

How can i disable this?

Thanks.

PS: A nice feature would be "Actual Users Online or Logged In"

Best regards
Edi
volker
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 2009-09-04, 23:09

Re:Disable "Options" Menu in Edit User Profile

Post by volker » 2010-11-22, 12:44

Hi,

attached you find a modified editprofile.php that should fit your needs.

Extract the file editprofile-personal-other-only.php from the rar-archive, rename it to editprofile.php and replace the original editprofile.php on your server.

Make a backup of your editprofile.php before or simply rename it before uploading the modified editprofile.php


Best regards
Volker [file name=editprofile_personal_other_only.rar size=5105]http://www.lewe.com/images/fbfiles/file ... r_only.rar[/file]
webstyle
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 2005-05-15, 01:47

Re:Disable "Options" Menu in Edit User Profile

Post by webstyle » 2010-11-22, 12:56

Hi Volker!
Thanks, but now the Admin has also no rights to edit all.
I just want to have the normal USER disabled to edit this.

Best regards
Edi
volker
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 2009-09-04, 23:09

Re:Disable "Options" Menu in Edit User Profile

Post by volker » 2010-11-22, 14:20

Hi,

please check out the file attached!

Be aware of that ONLY Admin can edit the other profile options (membership, privileges, absences, avatar etc.) except personal data and others.


Best regards
Volker [file name=editprofile-708062ed3476b2768d864caa4c6e20be.rar size=7414]http://www.lewe.com/images/fbfiles/file ... 6e20be.rar[/file]
User avatar
George
Platinum Boarder
Platinum Boarder
Posts: 414
Joined: 2004-11-29, 21:20
Are you a spam bot?: No
Contact:

Re:Disable "Options" Menu in Edit User Profile

Post by George » 2010-11-22, 17:57

Hi Volker,

I had a quick look at your last mod. It should work but I think you should leave the "showAvatar" condition in unless you want Admin to see that tab in any case.

Best regards,
George
TeamCal Neo is free for private use but requires licensing for use in a commercial environment:
https://georgelewe.atlassian.net/wiki/s ... eo+License
volker
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 2009-09-04, 23:09

Re:Disable "Options" Menu in Edit User Profile

Post by volker » 2010-11-22, 18:26

Well - I think that an admin should be able to see nearly anything.

Best regards
Volker
Post Reply