Viewing 6 replies - 1 through 6 (of 6 total)
  • This is an easy fix; just change your document link to https to match the protocol of your parent page. See the third bullet in this section for more thorough explanation:

    https://www.davistribe.org/gde/notes/#linkonly

    Thread Starter marketingwc

    (@marketingwc)

    Thank you for your quick response!

    That totally makes sense!
    However…, this is the link that I use.
    [gview file=”https://greenmethods.com/wp-content/images/Andersoni-A.pdf”%5D

    and this is what comes out.

    <iframe src="https://docs.google.com/viewer?url=https%3A%2F%2Fgreenmethods.com%2Fwp-content%2Fimages%2FAndersoni-A.pdf&embedded=true&hl=en" width="600" height="720" style="border: none;">
    #document
    <html><head></head><body></body></html>
    </iframe>

    So somewhere its stripping the “S” off the https.

    What are your thoughts?

    You are right, the standard viewer is hardcoded to use http rather than https. This is an oversight that I’ll correct in a future patch.

    To confirm this you can manually edit the gviewer.php file on line 245 where it currently reads:

    $lnk = "https://docs.google.com/viewer?url=" . urlencode( $links[0] ) . "&hl=" . $lang;

    to read:

    $lnk = "//docs.google.com/viewer?url=" . urlencode( $links[0] ) . "&hl=" . $lang;

    If you’re able to make that adjustment (you can do so from the plugin editor within wordpress, if you wish), let me know if it works for you.

    Thread Starter marketingwc

    (@marketingwc)

    This worked!

    Thank you so much!

    Great, I’ll be sure to include that patch in the next update. Thanks for pointing out the issue.

    Kevin

    This fix was included in GDE 2.5.9 and doesn’t need to be manually applied anymore.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No content in iframe’ is closed to new replies.