• I hacked iframe.php to pass url encoded variables to the iframe
    Someone might find it useful. I did ??

    <div class=”iframe-wrapper”>
    <?php
    if($_GET != NULL) {
    $encode_string = “?”;
    foreach($_GET as $key => $value)
    {
    $encode_string .= $key.”=”.$value.”&”;
    }
    }
    ?>
    <iframe src=”<?php echo $url.$encode_string; ?>” frameborder=”0″ style=”height:<?=$height?>px;width:<?=$width?>px;”>Please upgrade your browser</iframe>
    </div>

    https://www.ads-software.com/extend/plugins/embed-iframe/

Viewing 3 replies - 1 through 3 (of 3 total)
  • What exact does this enable you to do?

    MiJaMu, Thank you, That worked great. Before it was not pulling the Frame Size into my post, I wanted it to be 600 width and 500 height and it stayed at something like 300 x 300.

    Mebenson, what the code is for that MiJaMu” posted was to make the size of the IFRAME to be the size you specified when you embed your posts. ie: [iframe https://example.com 400 500] or [iframe https://example.com 600 500] etc. before it would not expand the iFrame to the size you specified.

    PS. The file that needs this code is in the “view” folder >> “embediframe” folder, code goes in this file “iframe.php” replace all the code with what “MiJaMu” posted above.

    Here is an example of my site with a test embed using iFrame.
    https://www.webexpressplus.com/blog/embedding-test.html

    Thank you,
    Jake

    This hack allowed me to use the code for embedding google calendar iFrames. Please note that in HTML, the code can span many lines, but in WordPress, it all has to go on a single line. The editor’s auto word-wraps are OK, but no manual ones for readability.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Embed Iframe] hacked to embed GET variables in url’ is closed to new replies.