WordPress.org

Support

Support » Plugins and Hacks » YOP Poll » [Resolved] Can You Display Poll Results On A Different Page?

[Resolved] Can You Display Poll Results On A Different Page?

  • 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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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?

    Plugin Author YOP

    @yourownprogrammer

    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

    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?

    Plugin Author YOP

    @yourownprogrammer

    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

    Thank you so much. Where can I donate?

    Plugin Author YOP

    @yourownprogrammer

    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

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Can You Display Poll Results On A Different Page?’ is closed to new replies.
Skip to toolbar