• Resolved Surykat

    (@surykat)


    Hello guys,

    After updating Yop Poll to 5.3. version we have an issue with rendering polls on pages using shortcode and inside widgets.

    It’s just rendering poll container with two hidden fields inside form.

    <div id="yop-poll-container-42_yp549040ae4dfd4" class="yop-poll-container"><div id="yop-poll-container-success-42_yp549040ae4dfd4" class="yop-poll-container-success"></div><div id="yop-poll-container-error-42_yp549040ae4dfd4" class="yop-poll-container-error"></div><form id="yop-poll-form-42_yp549040ae4dfd4" class="yop-poll-forms"><input type="hidden" id="yop-poll-tr-id-42_yp549040ae4dfd4" name="yop_poll_tr_id" value=""><input type="hidden" id="yop-poll-nonce-42_yp549040ae4dfd4" name="yop-poll-nonce-42_yp549040ae4dfd4" value="249d54e89b"></form></div>

    Any help appreciated.

    UPDATE: Just an addition: older polls, created before update are showing well. New polls also are not shown in poll preview.

    https://wordpress.org/plugins/yop-poll/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Surykat

    (@surykat)

    EDIT / UPDATE: Problem is fixed, but still exist in my opinion.

    The problem was inside template mechanism. My polls were based on custom, previously created template which, I don’t know why, wasn’t selected by default in newly created or even copied polls. When I opened template selector in new design, find (that was hard, because only premium templates are rendedring beautifull) and select proper template to specific poll – save – and everything shown.

    Tip to Yop Poll developers: work on this slider of templates and check inside code the mechanism of selecting default demplate.

    Thread Starter Surykat

    (@surykat)

    ONE MORE UPDATE:
    I added workaround of my problems with slider inside poll edit. If I had more time I could find more convenient way, but time is money 😉

    In yop-poll-wizard.js I added this block of code inside onShowStep method (line 517):

    var toStep = context.toStep;
                if( toStep == 4 && isdone == - 1 ) {
                    jQuery( '.buttonNext' ).css( 'display', 'none' );
                    jQuery( '#yop-poll-wizard' ).smartWizard( "enableFinish", true );
                    jQuery('.actionBar' ).css('display','block');
                }
                else {
                    jQuery( '.buttonNext' ).css( 'display', 'inline' );
                    jQuery('.actionBar' ).css('display','block');
                }
                if( toStep == 5 ) {
                    jQuery( '.buttonNext' ).css( 'display', 'none' );
                    jQuery( '.buttonPrevious' ).css( 'display', 'none' );
                    jQuery( '.buttonFinish' ).css( 'display', 'none' );
                    jQuery('.actionBar' ).css('display','none');
                }
    
    			// bug Fix / Workaround
    			if( toStep == 2 ) {
    				jQuery(window).trigger('resize');
    			}
    
                return true;

    Hope that will help Yop Poll developers to preceisly eliminate this bug.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Copied / new poll not rendering (after update to 5.3)’ is closed to new replies.