• pera

    (@pera)


    It’s for WordPress 1.2, will it work with WordPress 1.5 to ?

Viewing 12 replies - 16 through 27 (of 27 total)
  • Hi, a few points.

    The installation script, almost certainly, is failing because you haven’t uploaded a fixed version of wp_settings.php.

    Secondly there are a few bugs that could do with addressing.

    – Slashes aren’t dealt with very well. Please refer to http://uk.php.net/manual/en/function.get-magic-quotes-gpc.php so as to only add slashes if it hasn’t already been done!
    – And remove slashes from input boxes [shown after giving a poll name including quotation marks or apostrophes]
    – And finally, as of bugs I’ve currently come across, please put up a polite message if no poll is found 🙂 Rather than a somewhat unattractive MySQL error.

    Cheers, looking forward to using it, will post again if I manage to successfully fix the above for my site.

    hmm, ok I have installed the poll plugin and it works almost perfect. Two thingies.

    1 View results doesn’t work. And I find it strange because after voting it does show the results. I guess in my case the results are only shown when var showresults=1 and var vote exists. How can I solve this?

    2 Cookies don’t work I can vote as much as I want????

    Any pointers???

    i had the same cookies problem – its not really a great method .. but then there aren’t any good methods for polls (?), other than insisting everyone signs up.

    personally i’ve uninstalled the addon for the moment and will return to it when i have more time.

    Thanks for the great plugin. So far everything works great. I’ve come accross an issue with using Permalinks and the poll plugin.

    I had permalinks on in WP but turned them off to get this to work for the time being. When viewing a post via its permalink and you click on VIEW RESULTS for any poll on that page it errors out with the following message as an example:

    The requested URL /2005/06/05/briannes-gonna-be-21-the-plan/index.php was not found on this server.

    Any ideas on how to get thsi plugin to work with permalinks on?

    The cookies aren’t working for me either. Any ideas on this yet? It’s allowing me to vote on the same poll more than once.

    For cookie support see my post here:
    http://wordpress.org/support/topic/34555

    Hope that helps.

    so .. is there any working poll plugin for WP 1.5 by now? without undergoing the above ordeals ??

    I think there’s probably a lot more people that have it working then are posting “it’s not working” in this thread. I had no difficulty setting it up or using it. The ONLY thing that got in the way was my wp template layout ……
    You should try it caipirina ….

    i got this error all works but when someone vote you get the error

    Warning: Cannot modify header information – headers already sent by (output started at /nfsn/content/tpu/htdocs/wp-content/themes/falling_dreams/header.php:4) in /nfsn/content/tpu/htdocs/wp-content/plugins/polls.php on line 71

    if anyone could help please do

    It looks like the header error is because of a conflict in the header.php file sending information before the setcookie(); command in poll.php. Apparently setcookie(); technically sends headers to the client computer similarly to normal http headers. If any content (i.e. “echo” commands or text) is sent to the client before setcookie(); is used, an error occurs.

    There are a couple ways to fix this, but a quick [and sloppy] hack is to edit the index.php file in your template and change:

    <?php get_header(); ?>
    <?php vote_poll(); ?>

    to

    <?php ob_start();
    get_header();
    vote_poll();
    ob_end_flush();
    ?>

    It fixes both the error that you’re seeing and also allows the cookie to function properly. In programming terms, it would be much better to re-code the polls.php and get the setcookie(); function to work earlier before any of the content is sent to the client. The ob_start(); and ob_end_flush(); basically creates a buffer for php to store all the information until the headers are fully established and then send the data to the client at once. So long as there isn’t a tremendous amount of stuff in the headers.php and poll.php files, everything should be ok.

    If anyone knows how to successfully re-code the polls.php file, any help would be appreciated (so that the hack isn’t required) 🙂

    This poll works GREAT on my site, but the formatting of the archives are all messed up–they skew WAY to the left and right of the page.

    I’ve been scouring the wp-polls.php file, but can’t seem to find what’s causing this behavior. Any ideas?

    You can see it at http://www.thechristianguitarist.com/wp-polls.php

    NM–I fixed the problem by nesting the poll tables within a second table. No problem now! 🙂

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘Poll Plugin for WordPress’ is closed to new replies.