Support » Plugin: Jellyfish Counter Widget » Page reloads resets my counter – How to make it persistent?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Have a same problem, please, fix it

    Plugin Author Strawberry Jellyfish



    In the current version you just need to add an ending value, e.g:

    [jellyfish_counter timestamp="2016-01-01 00:00:00" start=1000000 interval=2.5 digits=8 end=99999999]

    Working example

    I’ve changed your code to this
    [jellyfish_counter timestamp=”2017-01-01 00:00:00″ start=1000 interval=2.5 digits=5 end=99999]
    And it reset again.

    Plugin Author Strawberry Jellyfish



    That timestamp is in the future so your counter shouldn’t even start at all and just sit at 0.

    Having tested it I see that it does start which is evidently a bug for future timestamps. I’ll need to look at that but that’s a different issue to that raised originally.

    If you didn’t want to start the counter at the beginning of next year and 2117 is just a typo, then well done for discovering an unknown bug 🙂

    If leave past date – its aleays like end value. So still not working

    Plugin Author Strawberry Jellyfish


    The timestamp parameter is intended to be used when you want to count events starting at a specific date and time. If it’s shows the end value on the page that will be because it has already reached that ending value.

    What exactly are you trying to count?

    I want to display ammount from 1000 to 100000 per day, without reset on reload page.

    Plugin Author Strawberry Jellyfish


    Ah I see, sorry, the counter doesn’t support that. As standard you get the choice of resetting on each page load or never, neither suit your desired behavior.

    There would have to be code changes within the plugin and JavaScript to make that work

    Ohh, I said wrong.
    The counter should start at 1000 and end at 100000. But dont restart on page reload.
    Code like this:
    [jellyfish_counter timestamp=”2017-01-01 00:00:00″ start=1000 interval=2.5 digits=5 end=100000]
    Restarted on page reload and
    [jellyfish_counter timestamp=”2016-01-01 00:00:00″ start=1000 interval=2.5 digits=5 end=100000]
    Is always 100000.
    How can I make counter with this diapason without restarting ?

    Plugin Author Strawberry Jellyfish


    Ok let’s take a look at this shortcode as an example:

    [jellyfish_counter timestamp="2016-01-01 00:00:00" start=1000 interval=2.5 digits=5 end=100000]

    This will create a counter that started counting on 1/1/2016 with an initial value of 1000 increasing by 1 every 2.5 seconds

    Consider that there are around 15,638,400 seconds since 1st January (at the time of writing this). If we divide this by 2.5, the interval, we have 6255360 which is considerably more than the end value which is why that particular shortcode always displays the end value. It’s finished counting.

    Anyway, back to your question. I’m not certain when you want your counter to start or stop counting so I’ll assume it’s over the course of the year, should be able to do the maths to suit your needs.

    Say there are 31557600 seconds in a year, divide that by the desired end value of 100000 and you get an interval of 315.37

    So this:

    [jellyfish_counter timestamp="2016-01-01 00:00:00" start=1000 interval=315.37 digits=6 end=100000]

    Would start at 1000 on the Jan 1 and reach 100000 on 31 Dec. It’s quite a slow count so you’d have to sit on a page for more than 5 minutes to see it change in this particular example.

    Hope that helps you figure it out

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Page reloads resets my counter – How to make it persistent?’ is closed to new replies.