Contest voting is random

Permalink
Does anyone know how to get Contest to show entries in sequence rather than randomly?

The Plug-in displays image entries seemingly randomly. When you only have 10 images to vote on, this can be quite annoying as you end up voting three times or more on one image before you have seen all 10 images, even if you have limited people to one vote only.

thanks

KevinBarton
 
Tony replied on at Permalink Reply
Tony
well, that's how the like of hot or not are set up too, but if you want to change the order, you'd open up /packages/contest/controllers/page_types/contest.php, and comment out line 56, which should look like this:

shuffle($contestEntryPages);
Tony replied on at Permalink Reply
Tony
oops. looks like it's not going to be that easy. if you look below that, there's another shuffle inside of a loop. basically this is choosing a different one than the last. you're going to have to change that code to make sure it increments after each one.
KevinBarton replied on at Permalink Reply
KevinBarton
Thanks Tony
I appreciate that some contests are like this, but unless you've got lots of images, it is quickly obvious that you are voting a few times on the same image.

Perhaps a future version could have a random or sequential option.

We had found the two shuffles you mention and are currently looking at how to get it to start the array at 0 and work through sequentially to the end of the list.
Which then begs the question : what next? - start again from the beginning, or bring up a "you have voted on all the images" message?