Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

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


ChrisR
Posts: 53
Customer
(@chris-r)
Member
Joined: 12 months 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: 4481
Admin
(@astghik)
Support Team
Joined: 3 years ago

Hi Chris,

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

Astghik
Posts: 4481
Admin
(@astghik)
Support Team
Joined: 3 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
ChrisR
Customer
(@chris-r)
Joined: 12 months ago

Member
Posts: 53

@astghik

 

Hello, 

 

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

 

-Chris

 

Astghik
Admin
(@astghik)
Joined: 3 years ago

Support Team
Posts: 4481

@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.

ChrisR
Customer
(@chris-r)
Joined: 12 months 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