-
AuthorPosts
-
December 29, 2015 at 2:45 pm #834085
Hi, I’m using ACM Statistics with Style 4. What i need to change inside the style-4.php code so i can put % after the numbers
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 30, 2015 at 7:34 am #834630Hi,
You can try to use this way, open templates/uber/acm/statistics/tmpl/style-4.php file, find and change
<span class="stats-item-counter" <?php if($helper->get ('data.stats-color', $i)): ?> style="color: <?php echo $helper->get ('data.stats-color', $i) ?>; border-color: <?php echo $helper->get ('data.stats-color', $i) ?>" <?php endif; ?> data-to="<?php echo $helper->get ('data.stats-count', $i) ?>" data-from="0" data-speed="2000" data-refresh-interval="20"> <?php echo $helper->get ('data.stats-count', $i) ?> </span>
to
<span class="stats-item-counter" <?php if($helper->get ('data.stats-color', $i)): ?> style="color: <?php echo $helper->get ('data.stats-color', $i) ?>; border-color: <?php echo $helper->get ('data.stats-color', $i) ?>" <?php endif; ?> data-to="<?php echo $helper->get ('data.stats-count', $i) ?>" data-from="0" data-speed="2000" data-refresh-interval="20"> <?php echo $helper->get ('data.stats-count', $i) ?> % </span>
Hope it helps
Regards
December 30, 2015 at 4:13 pm #835097Is not working. The % it’s showing for 1 sec and then disappear
December 31, 2015 at 6:50 am #835800Can you give me working code please?
thanksNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 31, 2015 at 7:16 am #835813ACM Statistics with Style 4 base on jquery-countTo and it did not support your request, but you can try to do this way
Open templates/uber/acm/statistics/js/script.js file
find and change
function formatter(value, settings) { return value.toFixed(settings.decimals); }
to
function formatter(value, settings) { return value.toFixed(settings.decimals)+'%'; }
Hope it helps
December 31, 2015 at 7:45 am #835860I try your suggestions and it didn’t work 🙁
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 1, 2016 at 11:40 pm #836899This reply has been marked as private.January 2, 2016 at 2:44 pm #837024did you try anything?
Thanks
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 4, 2016 at 8:58 am #838047I fixed the problem on your site with the solution below
Open templates/uber/css/custom.css file and add new css style
.uber-stats.style-4 .stats-list span.stats-item-counter:after { content: "%"; }
Let me know if it helps
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 9 replies, has 2 voices, and was last updated by Ninja Lead 8 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Statistic Style4 change
Viewing 10 posts - 1 through 10 (of 10 total)