WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Polls 1.5 updated (48 posts)

  1. UsmanLaw
    Member
    Posted 9 years ago #

    what do the themes look like in the header.php? Not sure where they are in here so i cant put <?php vote_polls(); ?> under them. sorry

  2. Lester Chan
    Member
    Posted 9 years ago #

    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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head profile="http://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]

  3. UsmanLaw
    Member
    Posted 9 years ago #

    still getting a warning

  4. Lester Chan
    Member
    Posted 9 years ago #

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

    lesterch@ singnet.com.sg

  5. srpittman
    Member
    Posted 9 years ago #

    I'm using the polls at http://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?

  6. srpittman
    Member
    Posted 9 years ago #

    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 http://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.

  7. srpittman
    Member
    Posted 9 years ago #

    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 ;)

  8. westpointer
    Member
    Posted 9 years ago #

    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!

  9. westpointer
    Member
    Posted 9 years ago #

    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: http://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!

  10. Thame
    Member
    Posted 9 years ago #

    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

  11. aerojad
    Member
    Posted 9 years ago #

    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.

  12. jorgent
    Member
    Posted 9 years ago #

    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: http://www.jorgent.com

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

  13. NeuroCide
    Member
    Posted 9 years ago #

    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.

  14. tjinh200
    Member
    Posted 9 years ago #

    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?

  15. jafer
    Member
    Posted 9 years ago #

    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?

  16. macbros
    Member
    Posted 9 years ago #

    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?

  17. connivance
    Member
    Posted 8 years ago #

    I have a strange problem with WP-Polls I'm hoping someone can help me with. I have been using WP-Polls for a few months but have never been able to get the archive to work properly. Although I have wordpress and wp-polls.php installed in root, when I try to load it I get a 404. The funny thing is is that on very very rare occasions it does work, but as soon as I refresh it goes to a 404 again. If I purposely edit an error into wp-polls.php it informs me of the error, but as soon as I fix it I get the 404 again. Am I missing something obvious here? I'm hosted by godaddy which might be my problem...

  18. Jo0Lz
    Member
    Posted 8 years ago #

    Hello all.
    I have this plugin running, and it does a great job.
    Although I have the same problem as this:

    poll doesnt work properly for me... I can vote, and it records it fine, but when i come back to my page it gives me the questions again when it should just dispplay the results...

    But, it does record the vote. When I try to vote again, it just shows the results. It should go straight to the results. Is there a way to fix this? It now looks like you have to vote twice, even though this is not the case, because it does not register the second vote, it just shows the results when you trie to.

    :')

Topic Closed

This topic has been closed to new replies.

About this Topic