WP-Polls 2.11 Released
WP-Polls 2.11
» NEW: You Can Now Place The Poll On The Sidebar As A Widget
» NEW: Moved wp-polls.php To wp-content/plugins/polls/ Folder
» FIXED: AJAX Not Working In Opera Browser
» FIXED: Poll Not Working On Physical Pages That Is Integrated Into WordPress
» Download WP-Polls 2.11
 




(161 votes, average: 3.83 out of 5)
June 12th, 2006 at 11:37
Hate to complain here, but I can’t get this plugin to work 100%.
The polls work great in the side bar, I can view results, but when I try to go to the Poll Archives, I get the following error….
Fatal error: main(): Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/wiisite1/public_html/wp-content/themes/alexified/header.php on line 1
my WordPress is installed at the site root, perhaps this is what’s causing the error, in any case I tried changing up the path in the plugin and in my theme header, but no luck. Any tips?
June 12th, 2006 at 13:16
try attaching me your theme index.php and wp-polls.php
June 13th, 2006 at 11:04
Lester, thank you very much for your help, your suggestion did the trick!
In case anyone else sees this….
Open “/wp-content/themes/MYTHEME/header.php” at the very top I had to change …
to …
ABSPATH is defined in /wp-config.php and thus shoud work for all the plugins
June 13th, 2006 at 11:09
OOOPS it did not automatically convert the < and the > tags, so here is what needs to be replaced again …
< ?php require(’./wp-blog-header.php’); ?>
to …
< ?php require(ABSPATH.’/wp-blog-header.php’); ?&g;
June 15th, 2006 at 00:05
Always loved your plugins, but the new polls is difficult to get running …
When I vote, it’s endlessly showing the “Loading” Image and nothing is entered into the database.
Regards, Oliver
June 15th, 2006 at 01:16
I can’t get it to work properly.. I’m using the blix theme
June 15th, 2006 at 07:50
oliver: did u have < ?php wp_head(); ? > in your header.php before < /head > tag?
TheFes: more info pls =D
June 19th, 2006 at 01:24
I’m having some problems with this poll.
It keeps centering the poll in Firefox. In Internet Explorer it looks just fine.
One more problem is the poll arcive. It seems to be a CSS problem, but I really don’t know :/
Hope you can help me out. You can see the problem at http://www.bran.dk
June 19th, 2006 at 23:17
yes
June 19th, 2006 at 23:20
that’s not the reason.
June 20th, 2006 at 13:55
Lars: attached me your wp-polls.php with theme index.php
oliver: is there a site I can see?
June 20th, 2006 at 16:14
yes, http://medinfo.netbib.de
June 22nd, 2006 at 20:04
Can i use wp-polls also in an article (posting)?
I got it working in my sidebar without a problem, but i want to use a poll in a weblog article. does this work?
June 23rd, 2006 at 03:00
I have the same problem as oliver.
June 23rd, 2006 at 08:39
oliver, tommy: I think it is because the site url and wordpress url doesn’t tally.
For example oliver, your site url is
http://medinfo.netbib.de/
But in WordPress you key in
http://netbib.ub.uni-dortmund.de/medinfo
That is why the browser block the xml request because the url is different. It is a secruity feature in browsers to prevent phising if I am not wrong.
June 23rd, 2006 at 09:43
Possibly, but I’ve been through every possible url available (because I thought that might be it, it is an addon domain but I’ve no problems anywhere else) and none of them work. The part that confuses me is the same thing happens with the democracy plug in.
I have another solution to the problem and I’ll just use that one instead of asking you to waste your time figuring out why my site doesn’t work.
thanks.
June 23rd, 2006 at 17:15
Oops, I cannot change this double-URL thing, so I have to look at another solution (Tommy?). Or can I use an old version of Polls?
June 25th, 2006 at 22:14
It turns out I had a corrupt installation of wordpress and reinstalling that fixed the problem. Oliver, I was going to use dynamic polls (http://www.cj-design.com/), or advanced polls(http://www.proxy2.de/). Both of them can be a bit difficult to install, and advanced polls requires a mysql.
If you can’t get either of them to work, try vizu.
But wp-polls is working now and I’m happy.
June 26th, 2006 at 07:46
thanks for the compliments =D
June 28th, 2006 at 16:28
Thanks, Tommy, for both hints, but “difficult to install” means “impossible for me”, as my php talents are not that great.
I tried Democrazy too, but this double url thing (WordPress address differs from Blog address) seems to hinder such plugins efficiently.
June 29th, 2006 at 11:49
oliver: Yea, u want to try the non ajax version? http://dev.wp-plugins.org/file/wp-polls/tags/wp-polls206b.zip
June 29th, 2006 at 20:06
suuuppper! It works!! Thanks a lot …
June 30th, 2006 at 10:40
np man
June 30th, 2006 at 23:37
lester, I’m experiencing the same behaviour as oliver.
Using Firefox, my site has no sub domains or nuttin’
If you have a minute, could you take a look?
http://www.badboysummercamp.com
July 1st, 2006 at 00:07
http://badboysummercamp.com works, because ur wordpress options u set the site url to badboysummercamp.com instead of http://www.badboysummercamp.com
I will try to fix this bug. lol
July 6th, 2006 at 14:46
I turned it off, but when people vote, it came up.
Invalid Poll ID Or Poll Answer ID. Poll ID #2, Poll Answer ID #0.
Care to help on this.
July 28th, 2006 at 10:57
Hi Lester. I tried 2.11 on Andy Peatling’s Durable theme. First the poll won’t render properly. Second, the bullets in all my bulleted-lists disappear. Can you look at it, please?
July 28th, 2006 at 13:08
Sure, it is style problem, maybe u can attached me ur style.css to my email, gamerz84 AT hotmail DOT com
July 29th, 2006 at 09:44
And when WP-Polls Generated XHTML 1.1, or how to do it??
;-)))
July 29th, 2006 at 12:17
? what do u mean by when?
July 29th, 2006 at 16:03
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.soveratonews.com%2F
try this.
July 30th, 2006 at 00:21
what is the code u used to put in the polls?
July 30th, 2006 at 02:45
Hey,
I’ve seen your plugin in action across the blogosphere but I have one simple question….
how the HECK do I put ‘your” poll in a POST???
It’s great that it works in the sidebar But I’d love to have it in a post.
I use the binary Blue theme
July 31st, 2006 at 18:32
Sondaggio
archive code cutted to fix layout problem on archive page.
July 31st, 2006 at 18:33
Sondaggio
August 1st, 2006 at 01:14
Great job you’ve done, as always.
Can you think of any variable I can check to determine if a poll is already showing on the page via one of the posts as to not repeat showing a poll in the sidebar? Since the content runs through php before the sidebar is called up, technically this should be possible?
Thank you.
August 1st, 2006 at 18:46
Giuseppe: ???
_ck_: technically it is possible, I was thinking if a poll is loaded into the post, maybe
$poll_id_loaded = array();
$poll_id_loaded[] = ID_OF_THE_POLL;
Then in the sidebar we can try something like this
if(in_array(ID_OF_POLL_U_WANT_TO_CHECK, $poll_id_loaded)) {
// Do Something
}
August 2nd, 2006 at 00:07
ehm ehm…
ok perfect, but where i put the code??
thanks
August 2nd, 2006 at 22:49
The array idea is good, I decided to make it simpler just to see if ANY poll was already displayed on the page:
ie.
function display_pollvote($poll_id) {
global $wpdb, $poll_on_page;
…
$poll_on_page=$poll_id;
return $temp_pollvote;
function display_pollresult($poll_id, $user_voted = 0) {
global $wpdb, $poll_on_page;
…
$poll_on_page=$poll_id;
return $temp_pollresult;
and in the sidebar
if (function_exists(’vote_poll’) && !$GLOBALS['poll_on_page'])
I hope WP doesn’t eat my code but I think you have the idea anyway.
Doesn’t seem like the smoothest technique but it works.
August 4th, 2006 at 11:08
_ck_: i see, but if there are more than 1 poll on the page, array would be better.
Giuseppe: do u have a site of something? Maybe u can drop me an email?
August 7th, 2006 at 16:46
I made a speed improvement in WP-Polls by using CSS and div’s for the pollbars instead of loading three small images which bogs down browser loading time, even on broadband, especially for first time visitors. I doubt I am the first to think of this but just in case, here’s how it’s done:
Your templates makes it easy, I just changed the results to something like this:
%POLL_ANSWER% (%POLL_ANSWER_PERCENTAGE%%) %POLL_ANSWER_PERCENTAGE%% (%POLL_ANSWER_VOTES% Votes)">
and then stuck in my template css something like this:
.pollbar {margin:1px; padding:1px; font-size:6px; line-height:8px; height:8px; background: #AAAA8A; border:1px solid #444;}
The nice thing about using css is that you can change make the .pollbar class change colors or sizes based on where it’s being show automagically, ie. #menu .pollbar {} and #content .pollbar {}
You could even make the css style the default and still use images if you so desire by placing the image as the background of the div and let it fill.
Last but not least, because it’s a true DIV in there, you can now inject either the vote count or percentage right into the DIV as text and put text-align:center in the CSS, change the text color with color: of course.
CSS div’s can be made to look almost as pretty as images by using various border styles for each side.
August 7th, 2006 at 16:48
Your blog keeps eating code statements.
You need the “preserve code formating” plugin here to fix that:
http://www.coffee2code.com/archives/2005/03/29/plugin-preserve-code-formatting/
August 9th, 2006 at 01:55
_ck_: interesting, have u applied the changes on ur site? I want to see how does it look like.
August 9th, 2006 at 10:54
hi GAmerZ just to request you very much a updat to the widget poll with a customizable title/ its very annoying to have POLLS in the sidebar when you have a site in other language !!
thx a lot:!
August 9th, 2006 at 12:31
Roger that, it will be fixed.
August 12th, 2006 at 17:40
you can see the site from the validator, link some post ago.
thanks for your interest
August 12th, 2006 at 17:43
I have to exclude poll archive page because don’t work good with css, remeber xhtml 1.1, and try to validate css also
bye
August 12th, 2006 at 21:18
Whether it is XHTML 1.0 or 1.1 it depends on your theme because Poll Archive include header from ur theme.
August 17th, 2006 at 04:48
The theme is Jowra modified only in css and work without errors before i plugin wp-polls.
The archive page put the sidebar under the polls, probably is the maybe go in to resolve.
thanks
P.S where can i download 2.12 beta?
P.S.2 to upgrade only overwrite is needed?
P.S.3 the problem go away with the 2.12 beta?
August 17th, 2006 at 04:49
The archive page put the sidebar under the polls, probably is the DIV maybe go in P to resolve.
August 17th, 2006 at 09:00
P.S: I will post it in the next comment when i get home.
P.S.2: Deactivate the current plugin, overwrite the files and activate it again. And of course follow the instructions on the readme.html under the Upgrdae and Usage Tab.
P.S.3: Yap, it goes away because it will integrate the archives into the page like what u see in this site.
August 17th, 2006 at 16:59
Giuseppe: Here u go, http://forums.lesterchan.net/viewtopic.php?p=6617
September 19th, 2006 at 02:25
Is anyone else finding it next to impossible to style the poll options text in IE? I list items that are the choices in the polls, I can’t seem to style them. In IE they are this blocky, black text that looks terrible. Even on this site here (www.lesterchan.net) they look awful. Of course, FF and Opera are fine, but IE looks nasty.
Has anyone been able to style the fonts in IE and if so, can you direct me to how you did it?
September 19th, 2006 at 02:55
Ok, I see the fix is to uncomment the background: #ffffff; line in the CSS file.
Can anyone explain why that is the case? Why is the text blocky/jagged in IE without a background color?
September 19th, 2006 at 10:03
it is a bug in IE =)
September 19th, 2006 at 10:09
What is a bug in IE? All text doesnt show up that way. Only the text in your WP-Polls plugin. All other text on all my pages work fine except for the list item options in the polls.
September 19th, 2006 at 15:26
when u set something with opacity IE does not handle it properly.
October 4th, 2006 at 07:29
I begin to translate wp-polls in french.
Do you want I send it to you when it will be finished?
Do you have any request?
I agree for you include it in your project.
October 4th, 2006 at 16:54
sure sure =D
Thanks alot Philippe
October 11th, 2006 at 02:42
[...] Ik ben al eens aan het zoeken geweest naar een plugin om polls te houden. Wel nu, ik heb er één gevonden. geweldige plugin met diverse opties en een beetje ajax. [...]
November 13th, 2006 at 06:33
This is a Wordpress/WP-Polls question to all… I’m hoping to install WP-Polls on a specific page (no sidebar version), but I’d like the come up with a way for the visitor to vote before posting a comment to the page. Anyone have any ideas? Can WP-Polls “talk” to the page somehow to disable commenting until a vote has been cast?
TIA.
November 13th, 2006 at 10:40
meaning the user must vote before the comments will appear? if it is so, it can be done, need some hacking to the core code and theme. it is not that difficult and not that easy to do.
November 19th, 2006 at 20:23
[...] WP-Polls 2.11 [...]
December 11th, 2006 at 07:13
[...] WP-Polls 2.11 Bardzo dobry system ankiet wykorzystuj±cych AJAX. Mo¿na dodaæ je do posta, albo do sidebara. [...]
December 13th, 2006 at 04:03
I try to use wp-polls but when i vote my home loads inside the block of wp-polls i using permanlinks, i can see the results…
i try to change the request to GET like the results, but i don’t have much success.
Someone can help me with this?
December 31st, 2006 at 00:21
I have wordpress installed in /catalog/blog/ directory and address blog is /catalog/blog.php. When I click on Polls Archive link I get an error. Should be /catalog/blog.php/pollsarchive/ end not /catalog/blog/pollsarchive/.
December 31st, 2006 at 01:03
Go to Polls -> Polls Options, Fill in the URL to the polls archive =)
December 31st, 2006 at 02:15
Now work! Many thanks.
January 17th, 2007 at 10:12
Hi Lester, I’m a photographer and I am looking for a plug-in that allows visitors to my site to vote on images. There can be upto 5 images per contest. I wonder if WP-Polls can be customized for this? I can tell you are really…it will be great if you can email me. Appreciate this a lot. Thanks!
January 17th, 2007 at 13:06
replied you =)
February 4th, 2007 at 01:46
super!
February 25th, 2007 at 14:33
Have you considered creating a raffle plug-in? I’m considering a charity raffle where some free good provided to me would be raffled off to visitors and the proceeds directly to roomtoread.org, a charity to provide schooling in poor countries.
If any reader of this blog can point me to such a plug-in/script I’d appreciate it.
February 25th, 2007 at 14:44
raffle? Sorry, but I never head of that before. You might want to google it.
March 11th, 2007 at 06:52
You plugin is really good
But an option whick have democracy poll is that the user can add a new answer , i think it is really usefull !
and also, that the winner can be always 100% and the other result are calculated in purcentage of the winner , it has a better readability
(sorry for my english, and thanks for all your plugins)
March 11th, 2007 at 14:02
Nah, I do not think I will add in the option of “Add A New” Answer from the user because the user can just play prank and add in any text.
But normally polls are not based that way.
March 20th, 2007 at 07:51
[...] have recently added the wordpress WP-Polls plugin to the vanilla blog as a way of increasing feedback with the readers who have started to [...]
May 28th, 2007 at 18:40
The poll looked fine, just after I installed it. but as soon as I do the 1st test vote, the bar extended to 100% resulting in my whole sidebar to shift to the bottom of my blog on the left side?
May 28th, 2007 at 19:23
Dude this is WP-Polls 2.11, please use the front page