Capabilities – managing users, editing profiles & verifying users – UserPro Forums https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/feed/ Thu, 16 May 2024 08:21:02 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35159 <![CDATA[Capabilities – managing users, editing profiles & verifying users]]> https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35159 Mon, 28 Apr 2014 14:52:15 +0000 enigma666666 Hi there,

I need to give the editor role permissions to edit all user profiles from the front end also to be able to click the verified button in wp/admin/users columns.

I have tried giving permissions via role editor, adding: “manage_userpro” and various variations, to no avail.

How to give access to userpro for website editors?

]]>
https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35162 <![CDATA[Reply To: Capabilities – managing users, editing profiles & verifying users]]> https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35162 Mon, 28 Apr 2014 15:57:13 +0000 enigma666666 Okay I have managed to give editor role the capability to click the verify button under wp-adm/users/verify column, by changing manage_options to edit_users in the admin-functions.php file

I also managed to give editor role the capability to see the edit button on front end profiles and to edit the user profiles, by editing the user-functions.php and replacing manage_options with edit_users.

However, when editor edits the profiles, his edits do not save, so guess I need to edit another file to get things to work properly?

]]>
https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35193 <![CDATA[Reply To: Capabilities – managing users, editing profiles & verifying users]]> https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35193 Mon, 28 Apr 2014 20:53:57 +0000 enigma666666 Okay I have finally managed to sort out the capability problem.

For anyone else who wants to give capibility to other user roles to administer userpro profiles, without giving the user role access to userpro settings itself, this is what I did:

Edit the following 3 files:

admin_functions.php
user-functions.php
ajax.php

1. In ajax.php replace “manage_options” with whatever capability you have given the user. For instance I’m giving the editor role control over all user profiles, including backend verification and editing the profiles from front end.
So in ajax.php I changed the following code, replacing manage_options with edit_users:

2.In user-functions.php, I replaced all instances of manage_options with edit_users.

3.In admin-functions.php, I changed the instance of manage_options with edit_users in the following piece of code:

There is probably an easier way to do this, but since I was pressed for time and only had a few hours today to get a solution to my problem, I took to editing the files till I found the solution….lol

]]>
https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35245 <![CDATA[Reply To: Capabilities – managing users, editing profiles & verifying users]]> https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35245 Tue, 29 Apr 2014 08:22:41 +0000 admin This is the easiest way! Change the capability manage_options to edit_users , basically the same thing. 🙂 But some roles can edit users but can’t manage blogs/delete posts,etc… normal

]]>
https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35279 <![CDATA[Reply To: Capabilities – managing users, editing profiles & verifying users]]> https://forum.userproplugin.com/forums/topic/capabilities-managing-users-editing-profiles-verifying-users/#post-35279 Tue, 29 Apr 2014 10:04:02 +0000 enigma666666 Hi Ahmed,

Ah and here I thought that my way was the difficult way of doing it….lol

In my case the editor role can manage all menus, widgets, pages, posts & user profiles, but can’t access USERPRO settings or any other plugin settings or themes, hence I selectively changed capabilities only on some code instances in the files mentioned above.

]]>