• I downloaded the new updated 1.5 wp-polls from gamerz.

    I have installed it and it displays correctly but it is not recording votes.

    When I attempted to run the install script I got these errors (or at least, the second time I tried to run it. ran into some problems on first attempt)

    WordPress database error: [Table ‘wp_pollsa’ already exists]
    CREATE TABLE wp_pollsa ( aid int(10) unsigned NOT NULL auto_increment, qid int(10) NOT NULL default ‘0’, answers varchar(200) NOT NULL default ”, votes int(10) NOT NULL default ‘0’, PRIMARY KEY (aid))

    WordPress database error: [Table ‘wp_pollsq’ already exists]
    CREATE TABLE wp_pollsq ( id int(10) unsigned NOT NULL auto_increment, question varchar(200) NOT NULL default ”, timestamp varchar(20) NOT NULL default ”, total_votes int(10) NOT NULL default ‘0’, PRIMARY KEY (id))

    any ideas what i’m doing wrong or why it wouldnt be recording? if its sql i’m probably screwed i know jack about mysql ??

Viewing 15 replies - 31 through 45 (of 47 total)
  • this is the header.php of the def theme

    it looks like this with the vote_poll added
    [code]<?php vote_poll(); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">

    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>[/code]

    still getting a warning

    okie this is wierd. care to send me your header.php

    lesterch@ singnet.com.sg

    I’m using the polls at https://www.tpimagazine.net. When in the polls administration area I do not see how to choose which poll is live within my sidebar. I created a second poll and it became the displayed poll automatically… Do I have to hack some php code to control this?

    Once you’ve created multiple polls in the admin area, how do you control which poll is actively displayed? I don’t see an option to change this. I’m using the polls at https://www.tpimagazine.net. The only issue that I had installing was that my theme’s index.php file did not have the line '<?php get_header(); ?>'. I had to find a similiar line and then insert the '<?php vote_poll(); ?>' line of code.

    In my theme I found the line '<?php wp_head(); ?>' and then inserted the '<?php vote_poll(); ?>' line of code directly above it. That removed the header errors for me that other people have mentioned getting. I’d like to see the unlimited voting by the same person and the administration issue of which poll is displayed worked out…. Otherwise I like the plugin ??

    GamerZ – can you post some example code of where to place <?php vote_polls(); ?>

    I can’t seem to get the cookie to set or get rid of the error message:

    Warning: Cannot modify header information – headers already sent

    Thanks!

    Back again … my problem is a little different. The site I’m working on uses WP on the backend but most of the displayed articles use custom code, ie we don’t run a theme.

    Here is our testing URL: https://www.warfarehq.com/template1.php.

    I don’t run wp_head(), instead I call wp-blog-header.php at the top of my php page. Given that scenario, where should I place vote_poll() to get the cookie to set and not get the header error?

    Thanks!

    I’m having a problem implementing the poll into my site. Everything else works fine technically, but whenever I insert the code into my sidebar.php it pushes everything under the <h2> tage under the content (ie. last post) .

    This only happens in IE though. is there some kind of a quick fix???

    thanks beforehand

    Greetings. I tried to install this plugin on my site and while it appears the WP backend works (as in I can admin my polls just fine, I hope) when I try to include <?php vote_poll(); ?> on the header template, no matter where I place the code there (or even the index template) I am left with a completely blank page. Do you have any idea what may be causing this issue? Thank you for your help.

    Hi guys!

    The poll script is great! Though I think I have some problems with it ?? After I made a poll, I tried to vote. Nothing happend, but when I clicked on the “Polls Archives” I could vote, so now i have 1 vote.

    I have an avarege of 50 visitors every day, but no votes so I don’t know if it’s working. Could anyone please test it for me? It’s in the sidebar: https://www.jorgent.com

    When I click on my menu/categories, the poll alternatives appears two times. Why is this happening? Thanks!

    Gamerz,

    Your plugin is great. However, for some reason this version does not store a cookie in the user’s computer. I have tried closing my browser and even tried doing it with different browsers and every time, no cookie is stored and I am allowed to vote over and over again.

    Can anyone please provide a fix for this? Thank you.

    I’ve tried this plug-in, however people are able to vote multiple times, is this the way the poll is set-up or was there an installation error?

    Hi there. I was having the same problem with the error message above, ‘”Warning: Cannot modify header information – headers already sent by (output started at /home/usman/www/www/index.php:3) in /home/usman/www/www/wp-content/plugins/polls.php on line 80″ ‘ and then I moved the ‘<? php vote_polls(); ?>’ code from where I’d put it in my header.php file.

    I moved the code to the very top of the page, before my xhtml declaration and that cleared up that problem. But when I try to vote to test, it looks like it’s not recording any of the votes.

    So I moved it down under my theme code (all the css that’s in the header) and put it before ‘<?php wp_get_archives(‘type=monthly&format=link’); ?>’ but after ‘<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />’ .

    It seems that I don’t get that header error message any more, but it still looks like I can’t vote with it.

    Any ideas? It worked when I first tried it, when I was getting the error message coming up on the top of my page, but now it doesn’t work.

    Or at least not for me. Maybe it’s preventing me from testing it by recognizing my IP or something and not letting me vote again?

    Is there any way to use this plug in to have individual polls for individual blog posts? For example lets say today the weather is crappy and I blog a post about how bad the weather is and then have a poll asking “Do you agree?” Yes no. and then the next day I post another blog rant and place another poll in that blog post with a different poll? Understand?

Viewing 15 replies - 31 through 45 (of 47 total)
  • The topic ‘Wp-Polls 1.5 updated’ is closed to new replies.