WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] Results not being refreshed (5 posts)

  1. mazuno
    Member
    Posted 1 year ago #

    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/

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. mazuno
    Member
    Posted 1 year ago #

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

  4. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    You can email me at: shaunalberts AT gmail DOT com

  5. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.