Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hello

    Could you send us a link so we can take a look?

    Best
    YOP Team

    Thread Starter svasil

    (@svasil)

    The widget is disable. Look the category “The latest news of isamos”
    the slider mot work.
    http://en.isamos.gr/

    Thread Starter svasil

    (@svasil)

    The result is the same on Safari or Firefox. I use a Macbook Pro

    Thread Starter svasil

    (@svasil)

    …and of Greek pages see the slider on fire! The yop pool is disable..

    Thread Starter svasil

    (@svasil)

    Plugin Author YOP

    (@yourownprogrammer)

    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

    (@svasil)

    Hi
    I made this, but the result is the same.

    Plugin Author YOP

    (@yourownprogrammer)

    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.