QuestionsCategory: General QuestionsProfile Questions – Permissions Management
figure8software
asked 3 weeks ago
I recently asked another question about the link to a user's question history on the profile page not working. I have two other questions and I'm including them both here as they may not individually be worthy of a full question posting. 
  1. When I login as one user, but view another user's profile, I am able to click the "Edit Profile" button. How can I disable the edit feature on the profile page when I one user is viewing another?
  2. I would like to set a default header image other than the one linked to at "placehold.jp/2560x678.png" Is that possible and where can I do that?
Thank you!
1 Answers
tech Staff
answered 2 weeks ago
Hi, 
1/ We have checked and see that it's a bug from the plugin; we have fixed it and will release it as soon as possible. If you want to fix it now, you can provide the admin account, we will help you update the plugin. Or you can open the emo-questalk-pro/inc/User.php file and find the line 387, add the following code: 
$user_id = emqa_profile_displayed_user_id();
$current_user_id = get_current_user_id();
And line 506, replace with this code: 
<?phpif($user_id && $user_id == $current_user_id):?>
<buttonid="edit-profile-btn"class="emqa-btn"><?phpechoesc_html__('Edit Profile', 'emqa'); ?></button>
<?phpendif;?>

2/ To change the default image, you can find the line 1331 and change the URL here:
$cover_url = '//placehold.jp/2560x678.png';

Please login or Register to submit your answer