Support » Plugin: YOP Poll » When 'no results is' checked, answers are gone.

  • Resolved dowodesign

    (@dowodesign)


    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/

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

    (@yourownprogrammer)

    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

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘When 'no results is' checked, answers are gone.’ is closed to new replies.