WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
[resolved] Problem with poll archive page. (22 posts)

  1. judah75
    Member
    Posted 1 year ago #

    Hello, thought I'd post this in case anyone else was having this problem.

    I was having trouble with the poll archive page breaking my footer. I'd followed the instructions for creating the page, and the results showed up fine. However, the last set of results ended below the top of the footer and the footer was offset about ten pixels to the right.

    Anyway, I checked out the page code, found it seemed to be missing some end div tags, so I added five of them after the page-poll shortcode... and it was fixed.

    Odd, but I'm glad I finally figured it out.

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

  2. wtwp
    Member
    Posted 1 year ago #

    Thank you for this.

    Did you display the polls achieve on your site for viewers to see?
    I didn't display it on my site initially after publishing, but when I did later on, it still gives the same result.

    That is, I can't get the polls to work properly, even after following all the instructions.

    Any idea/s how you got yours to work and display on your site properly?

    Thanks in advance for your response.

  3. judah75
    Member
    Posted 1 year ago #

    Here's how I got the archive to work. I wanted to style the results individually, but the archive shortcode was causing all of the results to show inside a single container. So, I used the single results shortcode instead, like this:

    <div id="colPoll3">[poll id='2' type='result']</div></div>

    The number is the individual poll number. Of course this means that I have to add another shortcode to the page for each new poll, but now I can have each set of results styled in its own block.

    Don't forget to check the div tags and make sure you've got enough of them. As you can see, I had to add an extra </div> to the end of each shortcode and I also had to add an extra four at the end of the page.

    Hope that helps.

  4. wtwp
    Member
    Posted 1 year ago #

    Hi Judah75,

    Thanks for this and sorry for the late response, I have been unwell.

    To be honest, I don't have a clue where to put the code you have suggested. I have not used the Polls since due to it not functioning well.

    I wish the owner could make it more easier for none-tech people like me and respond or update the plugin.

    Thanks anyway for helping out. :)

  5. judah75
    Member
    Posted 1 year ago #

    The code goes on the page you want the results on, just add it in the editor and then style to your heart's content.

  6. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    @wtwp: Can you be more specific than not functioning well?

    Having been developing plugins for more than 10 years, it is very difficult to create something that suits everybody.

  7. wtwp
    Member
    Posted 1 year ago #

    @LesterChan:
    Here is the post I created using the poll but it never worked and I have not used it since.

    Hopefully you can let me know how to use it properly?

    Thanks in advance.

  8. wtwp
    Member
    Posted 1 year ago #

    @Judah75: Thanks for your assistance.
    The plugin author has been in touch, hopefully he can provide a more user-friendly advice.

  9. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    What is the problem? There is no voting option? What code are you using to embed it into the post? Have you read http://wordpress.org/plugins/wp-polls/installation/?

  10. wtwp
    Member
    Posted 1 year ago #

    The problem is it does not allow voting.
    It says you have voted whenever you try to vote even if you have not done so.
    Why don't you try to vote and let me know what it is saying?

    Yes, I read the instructions and followed it as well.
    It didnt work for my post

  11. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    Yeap, it shows the results. What code did you use to embed the poll into your post?

  12. wtwp
    Member
    Posted 1 year ago #

    This is the code I used previously: [poll id="2"].

    I have now used <div id="colPoll3">[poll id='2' type='result']</div></div> as specified by judah75, but I'm still getting the same result.

    The result is showing:
    total voters: 1

    I have asked other people to vote as well but they were unable to do so, and the result is still the same as above.

    See the screenshot

    PS. No matter how many div tags I put, as specified by judah75, it still returned 1 div at the end :(

    Thanks.

  13. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    you should use [poll id="2"] only if you add a type=result means it will always display the result.

  14. judah75
    Member
    Posted 1 year ago #

    Did you change the call for a footer on your pages from <?php get_footer(); ?> to <?php wp_footer(); include('footer.php'); ?>?

  15. wtwp
    Member
    Posted 1 year ago #

    Thanks for all these suggestions.

    I am not that techie unfortunately.
    All I wanted or want is to add my poll id to my post without having to mess about with the codings anywhere (header or footer).

    I don't want to be going to my footer or header each time I post a competition. Besides, I don't touch the code areas at all.

    Can this be simplified for people like me who don't know anything about coding?
    Basically, can this be like a "wash & go" plugin?

    Thanks in advance.

  16. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    A wash and go plugin would probably be a service like polldaddy.com

  17. wtwp
    Member
    Posted 1 year ago #

    Yeah, so it looks.

    I read the review on polldaddy a while ago but it wasn't that good.
    I think I will have to leave polling system for the time being till I'm able to see a more user-friendly one.

    Thanks anyway for your help :)

  18. Lester Chan
    Member
    Plugin Author

    Posted 1 year ago #

    No problem, good luck =)

  19. wtwp
    Member
    Posted 11 months ago #

    Hi,

    I've managed to get this to work :)
    But I have realised that the post I put it on doesn't show my comment box (Disqus).
    My latest post with the poll is missing the comments section.

    Any conflict with Disqus?

    Thanks in advance.

  20. wtwp
    Member
    Posted 11 months ago #

    Sorry, this is the link to the post above. :)

  21. Lester Chan
    Member
    Plugin Author

    Posted 11 months ago #

    On my page http://lesterchan.net/ (right at the bottom), I am using WP-Polls with Disqus, not problem with it.

    It is because you have two of the same polls on the same page and hence it is not working properly. It is a technical limitation with the current code. You can't have 2 of the same polls on the same page

  22. wtwp
    Member
    Posted 11 months ago #

    It is working now because I clicked on the discussion, then comment on the edit page of the post, though I didn't touch them prior or during the post.

    I didn't put the 2 polls on the page intentionally.
    What I did to get the polls working was to put the php code in the sidebar. Now I realise that the sidebar brings up the new poll each time I make one.

    I will try to remove the sidebar code to see if the polls will still work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.