Support » Plugin: YOP Poll » Poll formatting gone crazy

Viewing 1 replies (of 1 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi alisongenet,

    From the main menu go to “Templates” and edit the one you used on your poll. In the JavaScript section you have

    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%() {
    equalWidth_%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 );
    }

    Replace it with

    function tabulate_answers_%POLL-ID%() {
    return 0;
    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%() {
    return 0;
    equalWidth_%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 );
    }

    (basically, you add “return 0;” to each function)

    This should fix the problem.
    Let us know if you need more help.

    Best wishes,

    YOP Team

Viewing 1 replies (of 1 total)
  • The topic ‘Poll formatting gone crazy’ is closed to new replies.