WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Yop Poll automatic Votes Reset (5 posts)

  1. LaxmiBatav
    Member
    Posted 9 months ago #

    Hello, i use your plugin Yop Poll and i love it. However, i have a problem.

    How do I create a php file that resets the vote results. [eg, sets to 0 and since only 1 person can vote at the poll, they can vote again]

    Thanks in advance,

    -EHC

    https://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 9 months ago #

    Hi EHC,

    Please give us more details on your request so we may assist.

    If you want to reset the number of votes for a specific poll, go to All Polls and when you drag your mouse over that poll, click on Reset Stats.

    If you want your users to be able to vote just once, edit your poll and go to Other Options. Here you'll find the Limit Number of Votes per User option.

    Regards,

    YOP Team

  3. LaxmiBatav
    Member
    Posted 9 months ago #

    Hi YOP.

    Oh, thank you so much, but i would like to know the actual php commands that occur when the button is clicked, so i can run a cron job which makes makes it automated.

    Regards,

    EHC Team

  4. YOP
    Member
    Plugin Author

    Posted 9 months ago #

    Hey EHC,

    You are looking for Yop_Poll_Model::reset_votes_for_poll( $yoppoll_id );
    The function is in yop_poll_model.php, approximately on line 2075

    Let us know if you need more help.

    Best wishes,

    YOP Team

  5. LaxmiBatav
    Member
    Posted 9 months ago #

    Thank you for replying so quickly! You have been great help, and as for the auto quiz i have provided a guide.

    Auto Quiz

    Best wishes to you too

    EHC Team

Reply

You must log in to post.

About this Plugin

About this Topic