• Resolved Endur

    (@endur)


    Hi there,first of all: great plugin! Love the many options for voting πŸ™‚

    I’ve got a question, or lets say a request for another option, though: In short terms: Is it possible to “reset” the data of a vote one time a day automatically?

    Longer explanation of my use-case: I have a recurring event (a raid of my guildwars 2-guild) where I want to ask the guildmembers, if they participate with a simple “yes or no”-vote, and for the raid-planning I want to be able to see my results. So, the whole Event-thing i’m doing with a quite good plugin called “the events calendar”, but I don’t like it’s participating-options as they are (at least in the free version), so I thought about somehow doing it with your great yop poll-plugin.
    Only problem: These raids are recurring events, let’s say they occur daily from 19:30 to 22:30 (7:30pm to 10:30pm). So I want to open a poll as you can see here: http://nie-wieder.net/tadlsite/event/gildentestraid/?loggedout=true – now there lies my last problem: I don’t want to open this poll every day manually. I want to reset the poll-data at (approx.) 23:00 (11pm, so that the users can use their (they have 1) vote again for the next day.

    I think this might be possible by querying (and deleting) the related data from the db, but I don’t know how to do it exactly for I’m not that much into wp-plugindev, so it would be very nice to get some help from you (PHP-knowledge existing, but developed in Java for the last years). An even more comforting solution would be to embed this in admin options, like “reset event-data every [day,month] at [hour:minutes] or something like that.

    Best regards,
    Dominik

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

Viewing 1 replies (of 1 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi Dominik,

    We’re happy you like our plugin!
    In regards to your request, you already have that option. Edit you poll and in “Other Options” section, set “Reset Poll Stats Automatically” to “Yes”. Once you do that you will be able to set a date and choose how often you want them to be reset (in your case, 1 day).

    Best wishes,

    YOP Team

Viewing 1 replies (of 1 total)
  • The topic ‘Reset the vote one time a day’ is closed to new replies.