Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Nothing realy works. I have made a little script witch I’ve added in the footer of my template:

    I have activated an API-Key and added this code to my footer:

    <?php
    $tmp = simplexml_load_file(rawurlencode('http://URL/give-api/v1/stats/?key=MYKEY&token=MYTOKEN&format=xml&type=earnings&form=#' . urlencode('b&c')));
    
    $zahl = (int)$tmp->earnings->totals;
    ?>
    
    <script type="text/javascript">
    	document.getElementsByClassName('income')[0].innerHTML = "€<?php echo number_format($zahl, 2, ',', '.'); ?>";
    </script>

    Hey,

    I have a very similar problem. Give shows less than I have raised in the form list an in the thermometer. I have two donations 14,000 € and 25 €. In the beginning it showed the right amount. But since a few days it shows 13,995 €. It is the same amount wich you can find in the reports. There is a report wich shows the average for the month.

    I need to fix it as soon as possible. So please let me know how to fix it with php.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)