WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Results not being refreshed

[Resolved] Results not being refreshed

  • Hello, thanks for this cool extention,
    I installed it and managed to display star voting for images on each image : i added :

    <?php echo nggv_imageVoteForm($image->pid); ?>
    <?php
    global $officalNggVoting;
    $results = $officalNggVoting->getImageVotingResults($image->pid, array('avg'=>true, 'num'=>true));
    echo 'Rated '.round($results['avg'] / 20, 1).'/5 Stars in '.$results['number'].' '.($results['number'] == 1 ? 'vote' : 'votes').'';
    ?>

    between the < / a > and the </div> in nextgen-gallery/view/gallery.php

    problem is that when I vote, the stars displayed are not actualised, and whenever I refresh the page, nothing changes, I still have the “old” results.
    It seems to be refreshed when i click [Show picture list], but if I F5 the page again, it is gone…
    Chrome browser, windows XP.
    Last thing : the text x/5 Stars in y votes is not displayed at all.
    Last last thing : on my android phone (chrome browser), I can see the text, nut I have the same issues for the persistence of the stars.

    Any idea about this mystery ?
    Thanks in advance and best regards

    edit : I could see my changes when coming back from my coffee, is there any intentional delay between the server and what is sent to the browser ?

    http://wordpress.org/extend/plugins/nextgen-gallery-voting/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author shauno

    @shauno

    Hi mazuno
    There is no delay in the results being saved and displayed, it happens when the click happens. Do you have a URL I can look at so I can see the problem, so I can be sure I understand exactly what you are describing?

    may I mp it to you, as it is absolutely not to be released yet
    edit: thanks for such a quick reply!!

    Plugin Author shauno

    @shauno

    You can email me at: shaunalberts AT gmail DOT com

    Plugin Author shauno

    @shauno

    Just to resolve this thread for anyone following it and wondering. The site has WP Super Cache running, so even after voting, refreshing the page showed the cached page, so the latest results didn’t show.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Results not being refreshed’ is closed to new replies.