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] Points display issues  


ChrisR
Posts: 53
Customer
(@chris-r)
Member
Joined: 7 months ago

Hello, 

 

There are a few issues with the displaying of points.  They currently display like this: points:19000

 

I believe they should look like this: Points: 19,000

 

1. The P should be capitalized like it is in the wpForo myCRED addon. 

2. There should be a space right after the colon and before the first digit. It's also like it is in wpForo myCRED addon.  

3. There should be a use of a comma when thousandths are used.  This is also an issue is the wpFORO addon and should be fixed there as well. 

 

You can see the attached screenshots for reference.

 

wpDiscuz example

wpDiscuz

 

wpForo example

wpforo

 

Thank you, 

-Chris

 

7 Replies
Elvina
Posts: 1039
Moderator
(@elvina)
Noble Member
Joined: 9 months ago

Hi @chris-r,

Please leave the example URL to allow us to check it.

Reply
3 Replies
ChrisR
Customer
(@chris-r)
Joined: 7 months ago

Member
Posts: 53

@elvina

Hi Elvina, 

 

I just pm'ed you with the links.

 

Thank you, 

-Chris 

 

Reply
Elvina
Moderator
(@elvina)
Joined: 9 months ago

Noble Member
Posts: 1039

@chris-r,

Thank you.

1. The P should be capitalized like it is in the wpForo myCRED addon. 

Please navigate to the Dashboard > Comments > Settings > Styling admin page, put the following CSS code in the "Custom CSS code" textarea:

#wpcomm .wpdiscuz-mycred-points-wrap {
text-transform: none !important;
}

2. There should be a space right after the colon and before the first digit. It's also like it is in wpForo myCRED addon.  

The issue will be fixed in the next version update.

In case if  you want to solve it as soon as possible please follow the steps below:

1. Find this line:

$afterLabelHtml .= '<div class="wpdiscuz-mycred-points-wrap">' . $pointsLable . ':' . $balance . '</div>';

2. Replace with the following one:

$afterLabelHtml .= '<div class="wpdiscuz-mycred-points-wrap">' . $pointsLable . ':' . '&nbsp' . $balance . '</div>';

Don't forget to delete all caches and press CTRL+F5(twice) on the frontend before checking.

3. There should be a use of a comma when thousandths are used.  This is also an issue is the wpFORO addon and should be fixed there as well. 

We'll take it into consideration. 

However the Points value comes from MyCred plugin, so it will be better if you contact MyCred plugin support and asked them this question.

 

 

Reply
ChrisR
Customer
(@chris-r)
Joined: 7 months ago

Member
Posts: 53

@elvina

 

Hi Elvina, 

 

Man! You're on top of this forum!  I really appreciate the help.  

 

Posted by: @elvina

Please navigate to the Dashboard > Comments > Settings > Styling admin page, put the following CSS code in the "Custom CSS code" textarea:

#wpcomm .wpdiscuz-mycred-points-wrap {
text-transform: none !important;
}

That worked like a charm!

 

Posted by: @elvina

The issue will be fixed in the next version update.

In case if  you want to solve it as soon as possible please follow the steps below:

1. Find this line:

$afterLabelHtml .= '<div class="wpdiscuz-mycred-points-wrap">' . $pointsLable . ':' . $balance . '</div>';

2. Replace with the following one:

$afterLabelHtml .= '<div class="wpdiscuz-mycred-points-wrap">' . $pointsLable . ':' . '&nbsp' . $balance . '</div>';

Don't forget to delete all caches and press CTRL+F5(twice) on the frontend before checking.

Awesome!  I'm glad its being fixed in an update, I think I'll just wait for that.  I do appreciate you offering a quick fix in case I needed it right way. 

 

Posted by: @elvina

3. There should be a use of a comma when thousandths are used.  This is also an issue is the wpFORO addon and should be fixed there as well. 

We'll take it into consideration. 

However the Points value comes from MyCred plugin, so it will be better if you contact MyCred plugin support and asked them this question.

 

Hmm. that's weird, the points are showing up with a comma in both my theme (Logged in menu) and the Ultimate Member profile.  The only places they aren't are wpForo and wpDiscuz. 

 

I will try to reach out to the MyCred team though like you suggested and see what I can figure out. 

 

Thanks again Elvina,

-Chris

 

Reply
ChrisR
Posts: 53
Customer
(@chris-r)
Member
Joined: 7 months ago

Hi Elvina, 

 

I explained the situation to the MyCred developers and heard back from them.  This is their response:

 

These are third party plugins they are not using the function which adds the comma in the points.
They can use the below example code in their plugins to make the points format as per the settings.

$point_balance = new myCRED_Point_Type();

$point_balance->format( 16040 );

https://codex.mycred.me/objects/mycred_point_type/

 

Hopefully this helps. 

 

Thank you, 

-Chris

Reply
2 Replies
Elvina
Moderator
(@elvina)
Joined: 9 months ago

Noble Member
Posts: 1039

@chris-r,

Thank you for sharing the information.

We'll take it into consideration and try to add in the next versions update.

 

Reply
ChrisR
Customer
(@chris-r)
Joined: 7 months ago

Member
Posts: 53

@elvina

You're very welcome!  

 

Thanks and take care, 

-Chris

 

Reply
Share: