Notifications
Clear all

[Solved] Possible to remove "Points:" from showing up for excluded roles?

6 Posts
2 Users
0 Reactions
1,512 Views
Posts: 53
Customer
Topic starter
(@chris-r)
Member
Joined: 5 years ago

Hello, 

 

I have the myCRED plugin installed to wpForo.  I have excluded a few roles from participating with the points system through myCRED.   The problem I'm having is, the phrase "Points:" is still showing up below those roles on the forum.  Can this be removed now or the ability to remove it be added in a future update?

Selection 001

Thank you, 

-Chris

5 Replies
Astghik
Posts: 6199
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi Chris,

I'll ask the developers and let you know asap. 

Astghik
Posts: 6199
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

@chris-r,

please let us know are you using the latest version of the wpForo myCRED Integration addon (v. 1.0.9)? 

3 Replies
Customer
(@chris-r)
Joined: 5 years ago

Member
Posts: 53

@astghik

 

Hello, 

 

Yes I am using the latest version of the the wpForo myCRED Integration addon.  

 

-Chris

 

Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6199

@chris-r,

This issue will be fixed in the next update. If you need to solve it asap, please follow the steps below:

1. Open the /wp-content/plugins/wpforo-mycred/wpforo-mc.php file

2. Find the displayPoints($member) function

3. Replace the whole function with the following one:

public function displayPoints($member) {
if ($member['ID']) {
$userID = $member['ID'];
if (function_exists('mycred_get_users_balance')) { //User Points
$balance = mycred_get_users_balance($userID, $this->core->cred_id);
if ($balance) {
$myCred = mycred_core();
$pointsLable = $myCred->point_types[$this->core->cred_id];
echo '<div class="wpforo-mycred-points-wrap">' . $pointsLable . ': ' . $balance . '</div>';
}
}
}
}
 
change the code

Warning: Making changes to active plugins is not recommended.

Customer
(@chris-r)
Joined: 5 years ago

Member
Posts: 53

@astghik

 

Awesome! Thank you so much for being so quick with this issue.  

 

Thanks again and take care.

-Chris

 

Share:
Scroll to top