• Resolved thefefi

    (@thefefi)


    Hi,

    I am using the paid version of the TotalContest plugin, and I would like to display submissions in a random order each time the page reloads. Is it possible to achieve this, perhaps by modifying some PHP files?

    Thank you for your help!

    Best regards,
    Ladislav Pfeffer

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TotalSuite

    (@totalsuite)

    Hi @thefefi,

    You may do that by adjusting the basic template files, maybe you can have a look at

    totalcontest/wp-content/plugins/totalcontest/modules/templates/Basic/views/contest/submissions.php

    In that file, you see the call to get the submissions:

    $submissionsRows = $contest->getSubmissionsRows();

    This method call is the one that gets the submissions and if you track it down, you will see that it can take one argument that will be passed to the main get posts function, so you can define (or force) sorting in there.

    Of course doing that will require you to disable any other sorting, because the plugin allows user to sort from the frontend too.

    Let me know if you need further help.

    Best,

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I am using the paid version of the TotalContest plugin

    @totalsuite This is not optional and you need to get this right. Do not support paying customers on this site.

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

The topic ‘Random order of submissions’ is closed to new replies.