WordPress.org

Support

Support » Plugins and Hacks » YOP Poll » [Resolved] YOP Polls and Widget Logic

[Resolved] YOP Polls and Widget Logic

  • Currently using YOP Polls as a widget however I’m looking for the widget to effectively disappear once the user has voted.

    I also have a separate plugin ‘Widget Logic’ installed which allows me to call php conditional tags, for instance if I called ‘!is_user_logged_in()’ the widget would only show when the user is not logged in.

    Can you please point me towards the appropriate code to tell if a user has voted in a specific poll?

    http://wordpress.org/extend/plugins/yop-poll/

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

    @yourownprogrammer

    Hi,

    From the main menu go to “Templates” and edit the template you used for your poll.

    Delete all the code in “Template Before Vote” and “Template After Vote” section, replace it with

    <script>
    jQuery(‘#yop-poll-container-%POLL-ID%’).parent().hide();
    </script>

    and save.

    Then edit your poll and in “Other Options” section, at “Blocking Voters:” choose “By Cookie” or “By Ip” or “By Cookie & Ip” and save the changes.

    Best wishes,

    YOP Team

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] YOP Polls and Widget Logic’ is closed to new replies.
Skip to toolbar