Title: Crazy yop Pool
Last modified: August 24, 2016

---

# Crazy yop Pool

 *  [svasil](https://wordpress.org/support/users/svasil/)
 * (@svasil)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/)
 * Please fix the last version!
    If the widget is enable, the home video slider 
   in the main page not work! Crazy?
 * [https://wordpress.org/plugins/yop-poll/](https://wordpress.org/plugins/yop-poll/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135499)
 * Hello
 * Could you send us a link so we can take a look?
 * Best
    YOP Team
 *  Thread Starter [svasil](https://wordpress.org/support/users/svasil/)
 * (@svasil)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135503)
 * The widget is disable. Look the category “The latest news of isamos”
    the slider
   mot work. [http://en.isamos.gr/](http://en.isamos.gr/)
 *  Thread Starter [svasil](https://wordpress.org/support/users/svasil/)
 * (@svasil)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135504)
 * The result is the same on Safari or Firefox. I use a Macbook Pro
 *  Thread Starter [svasil](https://wordpress.org/support/users/svasil/)
 * (@svasil)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135507)
 * …and of Greek pages see the slider on fire! The yop pool is disable..
 *  Thread Starter [svasil](https://wordpress.org/support/users/svasil/)
 * (@svasil)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135527)
 * [http://el.isamos.gr/](http://el.isamos.gr/)
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135528)
 * Thank you for sending over the link.
 * Edit the poll template you are using and on javascript section replace the code
   with the one below
 *     ```
       function stripBorder_%POLL-ID%(object) {
       	object.each(function() {
       		if( parseInt(jQuery(this).width() ) > 0) {
       			jQuery(this).width(
       				parseInt(
       					jQuery(this).width() ) -
       					parseInt(jQuery(this).css("border-left-width")) -
       					parseInt(jQuery(this).css("border-right-width"))
       			);
       			}
       		else {
       		jQuery(this).css("border-left-width", "0px");
       		jQuery(this).css("border-right-width", "0px");
       		}
       	});
       }
       function stripPadding_%POLL-ID%(object) {
       	object.each(function() {
       		jQuery(this).width(
       		parseInt( jQuery(this).width() ) -
       		parseInt(jQuery(this).css("padding-left")) -
       		parseInt(jQuery(this).css("padding-left"))
       		);
       	});
       }
   
       function strip_results_%POLL-ID%() {
       	stripPadding_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop_poll_li_result-%POLL-ID%") );
       	stripBorder_%POLL-ID%(  jQuery("#yop-poll-container-%POLL-ID% .yop-poll-result-bar-%POLL-ID%") );
       }
   
       jQuery(document).ready(function(e) {
          jQuery('.yop-poll-forms').removeClass('yop-poll-forms-display');
       	if(typeof window.strip_results_%POLL-ID% == "function")
       		strip_results_%POLL-ID%();
       	if(typeof window.tabulate_answers_%POLL-ID% == "function")
       		tabulate_answers_%POLL-ID%();
       	if(typeof window.tabulate_results_%POLL-ID% == "function")
       		tabulate_results_%POLL-ID%();
   
       });
   
       function equalWidth_%POLL-ID%(obj, cols, findWidest ) {
   
           findWidest  = typeof findWidest  !== "undefined" ? findWidest  : false;
           var quest=0;
           if ( findWidest ) {
               obj.each(function() {
                   var thisWidth = jQuery(this).width();
                   width = parseInt(thisWidth / cols);
                   jQuery(this).width(width);
                   jQuery(this).css("float", "left");
               });
           }
           else {
               var widest = 0;
               var count  = 0;
               var poz_each_question=0;
       if (typeof cols !== "undefined")
               obj.each(function() {
   
                   count++;
                   cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
                   var thisWidth = jQuery(this).width();
                   if(thisWidth > widest) {
                       widest = thisWidth;
                   }
                   if(count<cols[quest][2])
                   { width = parseInt( %POLL-WIDTH% / cols[quest][0]);
                    if(cols[quest][0]==1)
                               jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("width","100%");
                    else
                                jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
                    jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
                   }
                   else
                   {
                       count=0;
   
                       width = parseInt( %POLL-WIDTH% / cols[quest][0]);
                       jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).width(width-20);
                       jQuery(".yop-poll-li-answer-%POLL-ID%-"+cols[quest][3]).css("float", "left");
                       quest++;
                   }
   
               });
       }
       }
   
       function equalWidth2_%POLL-ID%(obj, cols, findWidest ) {
           findWidest  = typeof findWidest  !== "undefined" ? findWidest  : false;
           var quest=0;
   
           if ( findWidest ) {
               obj.each(function() {
                   var thisWidth = jQuery(this).width();
                   width = parseInt(thisWidth / cols);
                   jQuery(this).width(width);
                   jQuery(this).css("float", "left");
               });
           }
           else {
               var widest = 0;
               var count  = 0;
               var poz_each_question=0;
       if (typeof cols !== "undefined")
               obj.each(function() {
                   count++;
                   cols[quest][2]=(jQuery('#yop-poll-answers-%POLL-ID%-'+ cols[quest][3] +' li').length);
                   var thisWidth = jQuery(this).width();
                   if(thisWidth > widest) {
                       widest = thisWidth;
                   }
                   if(count<cols[quest][2])
                   { width = parseInt( %POLL-WIDTH% / cols[quest][1]);
                    jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
                    jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
                   }
                   else
                   {
                       count=0;
   
                       width = parseInt( %POLL-WIDTH% / cols[quest][1]);
                       jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).width(width-20);
                       jQuery(".yop-poll-li-result-%POLL-ID%-"+cols[quest][3]).css("float", "left");
                       quest++;
                   }
   
               });
       }
       }
       function tabulate_answers_%POLL-ID%() {
   
       	equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID%"), %ANSWERS-TABULATED-COLS% );
       	//equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-answer-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div "), %ANSWERS-TABULATED-COLS%, true );
       }
   
       function tabulate_results_%POLL-ID%() {
       	equalWidth2_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID%"), %RESULTS-TABULATED-COLS% );
       	//equalWidth_%POLL-ID%( jQuery("#yop-poll-container-%POLL-ID% .yop-poll-li-result-%POLL-ID% .yop-poll-results-bar-%POLL-ID% div "), %RESULTS-TABULATED-COLS%, true );
       	}
   
       jQuery(document).ready(function(){
       	runOnPollStateChange_%POLL-ID%();
       });
   
       function runOnPollStateChange_%POLL-ID%() {
   
       };
       ```
   
 * Let us know how it goes.
 * Best
    YOP Team
 *  Thread Starter [svasil](https://wordpress.org/support/users/svasil/)
 * (@svasil)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135535)
 * Hi
    I made this, but the result is the same.
 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135548)
 * Hello
 * Please contact us at yop.help{at}gmail.com as we will need more info to troubleshoot
   this.
 * Best
    YOP Team

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Crazy yop Pool’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/crazy-yop-pool/#post-6135548)
 * Status: not resolved