WordPress.org

Forums

YOP Poll
[resolved] When 'no results is' checked, answers are gone. (3 posts)

  1. dowodesign
    Member
    Posted 1 year ago #

    Hello,

    I'm having the following problem, when i check the 'no results' option in de poll. The poll answers are gone, if somebody already voted.

    I want the answers back, with a text, 'sorry, you've already voted' or something like that.

    Is this possible?

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

  2. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hi dowodesign,

    Edit you poll and in "View Results Options" set "Views Results" to "After Vote" and save.

    Then go to "Templates" and edit the template you used for your poll.
    In "Template After Vote" at the top add

    <div id="yop-poll-container-error-%POLL-ID%" class="yop-poll-container-error">Sorry, you've already voted!</div>

    then delete these lines

    <span class="pds-feedback-result-%POLL-ID%">
    <span class="pds-feedback-per-%POLL-ID%"> %POLL-ANSWER-RESULT-LABEL%</span>
    </span>

    and

    <div>
    %POLL-ANSWER-RESULT-BAR%
    </div>

    then save.

    Regards,

    YOp Team

  3. dowodesign
    Member
    Posted 1 year ago #

    Thanks! works like a charm, I'm having a second problem.
    I openened a new thread..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags