Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • mile2nik Friend
    #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


    1. Untitled1
    Ninja Lead Moderator
    #834630

    Hi,

    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

    mile2nik Friend
    #835097

    Is not working. The % it’s showing for 1 sec and then disappear

    mile2nik Friend
    #835800

    Can you give me working code please?
    thanks

    Ninja Lead Moderator
    #835813

    ACM 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

    mile2nik Friend
    #835860

    I try your suggestions and it didn’t work 🙁

    Ninja Lead Moderator
    #835861

    You can send me the URL of your site, admin login and FTP account via Set as private reply, I will help you to check it. Besides that, you should raise that request to here, hope you will get the best answer from there.

    mile2nik Friend
    #836899
    This reply has been marked as private.
    mile2nik Friend
    #837024

    did you try anything?

    Thanks

    Ninja Lead Moderator
    #838047

    I 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

Viewing 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