WordPress.org

Forums

YOP Poll
[resolved] Can You Display Poll Results On A Different Page? (8 posts)

  1. DaeganSmith
    Member
    Posted 1 year ago #

    I love the simplicity of this plugin. Thank you!

    I'd like to redirect the people who take my poll to a new page on my blog and display the result there to them so I can add new content along with the results. Is that possible?

    Or if not, is it possible to delay the redirect to a new page after a vote so that voters can see the results and then be taken to the next page, or...

    A third option would be, is there a way to include new content with the results once they are displayed on the same page as the result?

    I know HTML, but I'm not a coding whiz. Any help would be HUGE!

    Thank you so much in advance.

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

  2. Tradewind25
    Member
    Posted 1 year ago #

    I notice that one of the settings is "AutoGenerate Poll Page". However I'm uncertain as to precisely what this does. Could we have an explanation, please?
    E.G. Does this have to be an existing page?
    Just when is it generated?

  3. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Daegan,

    To redirect your users to a new page after they vote, set "Redirect After Vote" to "Yes" and in the "Redirect After Vote Url:" field provide the link.

    As Tradewind25 noticed, if you set "AutoGenerate Poll Page" option to "Yes" you will create a new, separate page that contains the poll.

    Regards,

    YOP Team

  4. DaeganSmith
    Member
    Posted 1 year ago #

    Thank you. I understand that.

    What I am asking is - can I display the polls results on a different page than the poll itself.

    I would like to ,after users vote, redirect them to another post with new content that also displays the polls results. Does that make sense?

  5. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You could delay the redirect if you edit js/yop-poll-public.js and replace

    if ( 'yes' == yop_poll_various_config.public_config.poll_options.redirect_after_vote ) {
    window.location = yop_poll_various_config.public_config.poll_options.redirect_after_vote_url;
    }

    with

    if ( 'yes' == yop_poll_various_config.public_config.poll_options.redirect_after_vote ) {
    setTimeout( function () {
    window.location = yop_poll_various_config.public_config.poll_options.redirect_after_vote_url;
    }, the-delay-you-want)
    }

    Please note that the delay is measured in milliseconds so if you want the redirect to be delayed by 1 second, replace "the-delay-you-want" with "1000"

    Regards,

    YOP Team

  6. DaeganSmith
    Member
    Posted 1 year ago #

    Thank you so much. Where can I donate?

  7. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Daegan

    We'r glad to hear the solution works for you.

    For donations you can use the link below

    http://www.yop-poll.com/thankyou/don.php

    Regards,

    YOP Team

  8. DaeganSmith
    Member
    Posted 1 year ago #

    Again, thank you. It's working like a charm. I just got it set up. I got your email about the donation. I will see to it. I can't tell you how much I appreciate what you just did.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic