WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
show results on poll closing (3 posts)

  1. dgomez
    Member
    Posted 2 years ago #

    Where in the code can I make this change to only show the results once a poll is closed?

    http://wordpress.org/extend/plugins/wp-polls/

  2. juggledean
    Member
    Posted 2 years ago #

    You can do it with the templates

    Under Dashboard > Polls > Poll Templates

    Under Poll Result Templates

    Change Result Header to <p style="text-align: center;">%POLL_QUESTION%</p><ul class="wp-polls-ul">

    Clear Result Body: Displayed When The User HAS NOT Voted

    Change Result Body: Displayed When The User HAS Voted to

  3. Thank-you for voting
  4. And you probably also want to delete <p style="text-align: center;">View Results</p>
    from Voting Form Footer

    At least this worked for me. There might be a more elegant way.

  5. juggledean
    Member
    Posted 2 years ago #

    blockquote didn't quite work I'll try backticks

    Change Result Header to <p style="text-align: center;"><strong>%POLL_QUESTION%</strong></p><ul class="wp-polls-ul">
    
    Clear Result Body: Displayed When The User HAS NOT Voted
    
    Change Result Body: Displayed When The User HAS Voted to <li>Thank-you for voting</li>
    
    And you probably also want to delete <p style="text-align: center;"><a href="#ViewPollResults" onclick="poll_result(%POLL_ID%); return false;" title="View Results Of This Poll">View Results</a></p>
    from Voting Form Footer

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags