Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi @fernandomseo and @patrickcruz. I just came across this thread because I’m also having issues with the Lazy Load plugin for some pages on a site using the BeTheme theme.

    Specifically, the blog posts page. With Lazy Load enabled, most of the featured images on the blog post page looked like this:

    <img width="354" height="199" src="" class="scale-with-grid wp-post-image" alt="" itemprop="image" data-lazy-src="CORRECT_IMAGE_URL" data-lazy-srcset="CORRECT_IMAGE_SRCSET">

    although some had src=(unknown).

    Two things to consider:
    1) The wrapper around .image_frame .image_wrapper has overflow set to hidden. If this is turned off, the images load.
    2) Alternatively, if you keep overflow set to hidden, but add some minimum height to the container or image, then the images will load:
    e.g.

    .image_frame.post-photo-wrapper .image_wrapper {
        min-height: 21px;
    }

    or

    
    .image_frame.post-photo-wrapper .image_wrapper img {
        min-height: 15px;
        min-width: 15px;
    }
    

    I found that the images needed to be at least 15px tall in my specific case, or the wrappers at least 21px tall. I have no idea why.

    I’d be interested to know if the Plugin Author had some kind of explanation for this, aside from maybe Lazy Load checks whether an would be visible before loading it.

    Hopefully this fixes the issue for someone.

    Hi @mooveagency,

    I had a similar question. Some other, similar plugins include functions that can be accessed in functions.php to check whether a user has accepted the cookie agreement, etc., so that you can disable GA using the ga-disable-xxxxx cookie.

    As an example with monster insights, let’s imagine that your plugin included a function called moove_third_party_cookies_accepted which would tell us if a user had accepted third party cookies. This code might look like:

    
    add_action( 'init', 'toggle_monster_insights_based_on_moove' );
    
    function toggle_monster_insights_based_on_moove() {
        if ( function_exists( 'moove_third_party_cookies_accepted' ) && function_exists('monsterinsights_get_ua')) {
            if ( moove_third_party_cookies_accepted() ) {
                setCookie( 'ga-disable-'.monsterinsights_get_ua(), 'false' );
    	}else{
    	     setCookie( 'ga-disable-'.monsterinsights_get_ua(), 'true' );
    	}
        }
    }

    Otherwise, would it be recommended to do something such as:

    
    $cookie = isset($_COOKIE) && isset($_COOKIE["moove_gdpr_popup"]) ? $_COOKIE["moove_gdpr_popup"] : "";
    $decoded = urldecode($cookie);
    $json = json_decode($decoded, true);
    if(isset($json) && isset($json["thirdparty"]) && $json["thirdparty"] == "1"){
        setCookie( 'ga-disable-XXXXXX-X', 'false' );
    } else {
        setCookie( 'ga-disable-XXXXXX-X', 'true' );
    }
    

    ?

    • This reply was modified 6 years, 7 months ago by cmborchert.

    Sorry to hear that @oskargomezmartin. This is the solution that finally worked for me once I had the newest version installed.

    Sorry to hear that! Good luck!

    @rebecca-short-seo @bassebruno @ninos-ego @antzproductions

    Could you try to change your shortcodes to include the delivery_format option, so, from something like:

    [email-download download_id=”1807″ contact_form_id=”1806″]

    to something like

    [email-download download_id=”1807″ contact_form_id=”1806″ delivery_format=”inline link”]

    ?

    I think I’ve figured out what’s going on, but this gave me a quick fix until a patch for the plugin comes out.

    Hope this helps!

    Figured it out: @mandsconsulting!

    In the Email_Before_Download_Shortcode class, you need to change the $default_atts array’s
    delivered_as key to delivery_format so that the shortcode gets the correct default value (I have no idea why it’s not using delivered_as, but I added ‘delivery_format’ as an additional key identical to ‘delivered_as’ and it cleared the issue right up ?? )

    For the rest of us, just add delivery_format="inline link" to your shortcode while we’re waiting on a patch.

    So @oskargomezmartin change your shortcode from something like:

    [email-download download_id="1807" contact_form_id="1806"]

    to something like

    [email-download download_id="1807" contact_form_id="1806" delivery_format="inline link"]

    Hope this helps!

    • This reply was modified 7 years, 1 month ago by cmborchert.

    @mandsconsulting

    Here’s a small update:

    It seems like the transient is never getting set in the Email_Before_Download_Process class because $settings['delivered_as'] is not set. Looking into the out the $post_data['ebd_settings'], I got the following values:

    form_id: wpcf7-f1806-p1797-o1
    item_id: 2
    from_name: “”
    radio: “no”
    checked: “no”
    title: “My Title”

    It seems like the option is not being set.

    Still no luck, even with WP_CACHE turned on.

    Is there anything in the request/response to ajax-admin.php or feedback that could be helpful to you?

    Thanks @mandsconsulting

    WP_CACHE is not set in wp-config.php.

    Thanks @mandsconsulting !

    The no data found error has gone away, but I’m still not getting the download link to appear. Is there anything I can do to help test this?

    Subscribing from the previous thread. Thanks for your hard work @mandsconsulting.

    Thank you for the prompt reply @mandsconsulting!

    We’re running php 5.4.43 with CF7 v 5.0.

    Thanks

    I was experiencing the same issue as the others, and I just updated to v 5.1.0. Now, instead of nothing happening after the contact form is submitted, I’m getting the following message:

    no data found

    This appears just below the “Thank you” message.

    For a few more details, I’m getting the following json back from the cf7 feedback endpoint (/wp-json/contact-form-7/v1/contact-forms/1806/feedback).
    {"into":"#wpcf7-f1806-p1797-o1","status":"mail_sent","message":"Thank you. Your download link is below."}

    I notice that this json is missing the onSentOk parameter which I’m seeing on your test site. Is there something that I’m missing? The json returned on the demo site follows for comparison:

    {"into":"#wpcf7-f3186-p14628-o1","status":"mail_sent","message":"Thank you. Enjoy the download.","onSentOk":[" jQuery('#wpcf7-f3186-p14628-o1').append('<div><span class=\"et-icon\"><span><a href=\"https:\/\/www.mandsconsulting.com\/wp-json\/ebd\/file\/d384a4330e\" class=\"icon-button download-icon ebd_link \" target=\"_blank\">email before download live demo - test download<\/a><\/<\/span><\/span><\/br><\/div>'); "]}

    If it helps, this is the site I’m testing on:

    https://www.steelbridgesolutions.com/perspectives/successful-change-management/

    Thanks!

    • This reply was modified 7 years, 1 month ago by cmborchert.
Viewing 13 replies - 1 through 13 (of 13 total)