Need some sort of code...

3 replies
I'm looking for a code which I can place on my website that does something like this:
1.) I'll be putting a poll up on the webpage, with Advanced Poll 2.0.8 script at the bottom of the page.
2.) I want the script customized in such a way that the votes are logged but as soon as the user clicks the vote now button, he's taken to a link location.

So what I want to do is to redirect the 'vote now' button to a URL that I want without disturbing the voting function of the script.
If anyone knows of a better way to get this done, please tell me.

I'm doing this to try out dropship's old CPA monetization method. He didn't add a tracking system to the polls, he just linked the YES and NO button to a CPA link. I want the poll to be actually a poll!!

Thanks to anyone who can do this for me. If there's something that I've missed out, please mention it. I'm not a web developer, so I might not have been able to understand something.
#code #sort
  • Profile picture of the author Jeff Poulton
    I'm a huge fan of PollDaddy, so be sure to check them out as an alternative to AP 2.

    It's going to be tricky to give advice if you aren't a web developer, so this might be helpful into to pass along to your go-to guy.

    I've used jQuery to hack my way around the PollDaddy interface. It allows me to intercept the 'Vote' button click and insert my own logic before and/or after the click. This would accomplish your purpose.

    jQuery('#pd-vote-button1896771').click(function(){
    //insert your before and after calls here
    });

    Hopefully you can pass this along to somebody that helps you with your scripting to accomplish your purpose.
    {{ DiscussionBoard.errors[1442045].message }}
  • Profile picture of the author SiddFisher
    Cool...
    I'll try this out. I'll ask my bro to see if he can do this or not..
    Signature

    Computer Science student/coder who wants to learn more/out-of-the-box thinker/copywriter available for work during the summer. PM me for anything. :)

    {{ DiscussionBoard.errors[1444310].message }}
  • Profile picture of the author jimbo999
    There are a few easy ways of doing this. The first way would be to just hack the results page. Insert a meta refresh to instantly take you to the page you would like the user to land on.
    <meta http-equiv="refresh" content="0;url=http://newsite.com/" >

    The other thing you can do is hack the PHP. After the results are processed, just do a header redirect:
    header('Location: http://newsite.com/');
    I see that the script uses cookies. To use the header redirect, you will have to place that code before any cookies are written and before any other output to the browser has occurred.
    {{ DiscussionBoard.errors[1448075].message }}

Trending Topics