Forum Replies Created
-
Hi Ahmed,
All of a sudden I’m experiencing the same issue. It says in backend “thank you for activating UserPro!” but below that and also on fronted in red, it says “You are using a trial version of UserPro plugin. If you have purchased the plugin, please enter your purchase code to enable the full version. You can enter your purchase code here.”
I have now added: “global $userpro;
$userpro->validate_license(‘xx’);” with xx replaced with liscence code, in theme functions, but still showing error.Please assist.
in reply to: Licence cannot be activatedSorry, I see the code got messed up above.
Here is correct code below:function change_author_permalinks() {
global $wp_rewrite;
// Change the value of the author permalink base to whatever you want here
$wp_rewrite->author_base = ‘profile’;$wp_rewrite->flush_rules();
}add_action(‘init’,’change_author_permalinks’)
in reply to: Redirect author page to profile pageHi there,
I added the following to my theme functions.php to accomplish it:
PHP1234567891011function change_author_permalinks() {global $wp_rewrite;// Change the value of the author permalink base to whatever you want here$wp_rewrite->author_base = 'profile';$wp_rewrite->flush_rules();}add_action('init','change_author_permalinks')in reply to: Redirect author page to profile pageAh okay, thank you, I understand now.
in reply to: New Update Available – v1.0.88Ooops! lol. Thank you, I activated it and now its functioning properly.
in reply to: Memberslist per_page, not working anymore in 1.0.87Hi Ahmed,
I have tried using !important declaration,before I posted this topic,but it only changed the image on memberslist and css of memberslist was then messed up. It did not change globally to the same dimensions. I need all profile pictures on card.php, memberslist.php, list.php and view.php to change to rectangular format.
in reply to: Change profile image dimensions globallyHi Ahmed,
Before I try updating again to v1.0.88, can you please show me an example of what you mean with “Custom user background display in compact view / mini view”? Does it mean I can select a custom_profile_bg on memberslist pages or does it mean I can upload any image and it will display as the background? Do I need to use any specific shortcode for this functionality?
in reply to: New Update Available – v1.0.88Hi Ahmed,
Nevermind my issue is sorted. I completely deleted Userpro v1.0.88 and reinstalled v1.0.87 instead, now everything is working again like it did before.
in reply to: New Update Available – v1.0.88Hi Ahmed, can you please advise on how to solve the issue I mentioned in my private reply on this thread? It’s rather urgent as the site is live.
in reply to: New Update Available – v1.0.88Hi there, I had the same issue. Setting permissions via a capability manager will not work. You have to edit Userpro files to give capability to editor role.
Here is a thread where I explained how I resolved the issue.
This reply has been marked as private.in reply to: New Update Available – v1.0.88Hi 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.
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.php1. 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:PHP123456789/* editing */case 'edit':if ($user_id != get_current_user_id() && !current_user_can('manage_options') )die();userpro_update_user_profile( $user_id, $form, $action='ajax_save' );if (userpro_get_option('notify_admin_profile_save') && !current_user_can('manage_options') ){userpro_mail( $user_id , 'profileupdate', null, $form );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:
PHP123456**/add_action('wp_ajax_nopriv_userpro_verify_user','userpro_verify_user');add_action('wp_ajax_userpro_verify_user','userpro_verify_user');function userpro_verify_user(){if (!current_user_can('manage_options'))die(); // admin privThere 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
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
PHP12345678Verify a user instantly**/add_action('wp_ajax_nopriv_userpro_verify_user', 'userpro_verify_user');add_action('wp_ajax_userpro_verify_user', 'userpro_verify_user');function userpro_verify_user(){if (!current_user_can('manage_options'))die(); // admin privI 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?
Okay, thank you.
in reply to: Having Profile Permalink Issue? Please see this