Format points

More
5 years 6 months ago - 5 years 6 months ago #42520 by Kitnorm
Format points was created by Kitnorm
Здравствуйте! Подскажите, как изменить формат баллов в профиле? Как убрать нули? Спасибо


Hello! Tell me how to change the format of points in the profile? How to remove zeros? thank
Attachments:
Last edit: 5 years 6 months ago by Kitnorm.

Please Log in or Create an account to join the conversation.

More
5 years 6 months ago #42565 by nordmograph
Replied by nordmograph on topic Format points
Hello

Doesn't it comply to the setting in AUP component?

You can edit
components\com_comprofiler\plugin\user\plug_cbaltauserpoints/altauserpoints.php
in line 241
change $activity->points
to
round($activity->points)

Hope it helps.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
5 years 5 months ago - 5 years 5 months ago #42658 by Kitnorm
Replied by Kitnorm on topic Format points
Формат очков в профиле CB остается (0.00) при любых настройках в AUP.

Спасибо. Решение работает.


The format of points in the CB profile remains (0.00) for any settings in the AUP.

Thank. The solution works.
Last edit: 5 years 5 months ago by Kitnorm.

Please Log in or Create an account to join the conversation.

Time to create page: 0.327 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.