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
78 thoughts on “WP-Polls 2.11 Released”
Comments are closed.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.soveratonews.com%2F
try this.
what is the code u used to put in the polls?
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
Sondaggio
archive code cutted to fix layout problem on archive page.
Sondaggio
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.
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
}
ehm ehm…
ok perfect, but where i put the code??
thanks 😉
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.
_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?
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.
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/
_ck_: interesting, have u applied the changes on ur site? I want to see how does it look like.
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:!
Roger that, it will be fixed.
you can see the site from the validator, link some post ago.
thanks for your interest
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
Whether it is XHTML 1.0 or 1.1 it depends on your theme because Poll Archive include header from ur theme.
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?
The archive page put the sidebar under the polls, probably is the DIV maybe go in P to resolve.
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.
Giuseppe: Here u go, http://forums.lesterchan.net/viewtopic.php?p=6617
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?
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?
it is a bug in IE =)
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.
when u set something with opacity IE does not handle it properly.
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.
sure sure =D
Thanks alot Philippe