Advanced iframe / TWG wrapper

September 14th, 2011

Please note: The TWG wrapper for Wordpress will be released soon and this page is currently in progress!

The advanced iframe and the TWG wrapper are both iframe wrappers for Wordpress. The advanced iframe is the more general version which only has the features that can be used for any page you want to include. The TWG wrapper has some extra features which are releated to TinyWebGallery only.

So why using this iframe plugin? There are many wrappers around but they all only do an include with no interaction with the main page which most of the time leads to a result that is o.k. but not perfect.

So this are the features of the advanced iframe wrapper that are unique to this plugin:

  • Hide areas of the layout to give the iframe more space (see screen shots or demo)
  • Modify css styles to e.g. change the width of the content area (see screen shots or demo)
  • Forward parameters to the iframe
  • Security code: You can only insert the shortcode with a valid security code from the administration.
  • Enable/disable the overwrite of default short code settings

And this is are the features the TWG wrapper has on top:

  • Include the css for the lytebox automatically
  • Set an optimized TWG skin
  • Widget for a random image with shadow and slideshow
  • Direct link to the TWG administration with automatic login

Currently more information is located here:

http://wordpress.org/extend/plugins/advanced-iframe/

The version for TWG with even more features is available here:

http://wordpress.org/extend/plugins/tinywebgallery-wrapper/

If you have any questions please post a comment or use the forum.

Best,

Michael

  1. September 2nd, 2011 at 04:25 | #1

    Hi,

    Thanks for the plugin.
    I am using the plugin for a wordpress, but I would like to make several different pages iframed with different urls. How can this be accomplished.

    Is there a paid version of this plugin?
    Please let me know and thanks again.

    Carlos

    • September 5th, 2011 at 22:53 | #2

      simply use the src in the shortcode. Make sure to use version 1.2 of the plugin.

      There is no paid version. The whole plugin is free and unlimited.
      The plugin is “only” the generic version of my iframe wrapper for TinyWebGallery ;) .

      - Michael

  2. September 16th, 2011 at 22:20 | #3

    Hi,

    Great plugin by the way. I’m trying advanced iframe in my wordpress site. I’d like to use the URL forward parameter for better control, but can’t figure out how to get it to work. Here’s example.

    URL forward parameter: param_id

    browser url: mysite.com/page?param_id=12345

    shortcode in WP page: [advanced_iframe securitykey="blabla" src="http://mysite.com/subdir/somefunction.php?item=param_id"]

    I know I’m doing something wrong in the shortcode, but not sure on correct
    syntax. Appreciate your insight, and thanks again for a great plugin!

    Mike

  3. john
    November 2nd, 2011 at 10:55 | #5

    Hay

    Thanks for a nice plugin.
    Hope you can help me with something. I added an iframe from an external page, but would like the iframe take a certain position of this page, but can’t manage to get it to work. Can you tell me the settings i need to make to achieve that.

    Thanks already for your help….
    John

  4. November 2nd, 2011 at 11:55 | #6

    you can assign a class to the iframe and simply adjust it with css.

    - Michael

  5. December 10th, 2011 at 22:43 | #7

    Really love the advanced iframe phugin. I feel like I am missing something that is staring my in the face… but

    I have it set up and working beautifully but when i go into to add a new url and set up another iframe it overrides and replaces the one I already set up. I am sure it is something obvious but what am i missing. Pleaase help I would like to add multiple iframes to my site.

    Thanks,
    Marianne

    • December 11th, 2011 at 23:14 | #8

      How does your setup look like? Where do you enter the url. in the shortcode?

  6. December 18th, 2011 at 23:23 | #9

    thanks for getting back to me. I am using the set up screen in settings. I put in the url in the settng page and then copy the shortcode it gives me and paste it on my page.

    It works great but then when i go back and change the url to get another shortcode it justs overrides the one I already have.

    Your plug in is so wonderful I just need to use it for more than one iframe and I will be so happy.

    Marianne

  7. eric
    January 20th, 2012 at 08:42 | #11

    Is there anyway for the page inside the frame to tell the parent windows (wordpress) to do something.

    For example, some one click a link on the page inside the iframe, it trigger the main wordpress to go to another pages (like change from “home” to “blog” or something similiar)

    • January 22nd, 2012 at 19:54 | #12

      This has nothing todo with the plugin.

      You can do this with Javascript if you have both pages on the same domain.
      Otherwise this is not allowed.

      Best, Michael

  8. Lachezar Gogov
    January 22nd, 2012 at 17:53 | #13

    Thanks for a nice plugin.

  9. Artem
    January 29th, 2012 at 09:55 | #14

    I can’t manage to get it to work. I need a certain position of external site with such html code:

    I need only the class div_main. So, how to write shortcode?
    Like this?
    [advanced_iframe securitykey="my_key" src="source" width="100%" height="800" scrolling="yes" content_id="div_main" content_styles="" hide_elements="" class="" url_forward_parameter=""]

    I’ve tried everything, it shows the whole site in the iframe.

    • January 29th, 2012 at 11:01 | #15

      What do you want to do?

      Because the settings you make do not make sense to me. Have you read the documentation in the settings where each parameter is explained in detail?

      with the advanced iframe wrapper you can remove, hide, change the site that includes the iframe not the iframe itself. You could actually pass a parameter to the iframe which you then parse and only display the content you like.

      Best, Michael

  10. Artem
    January 29th, 2012 at 10:22 | #16

    The code is ([] instead of ):
    [div id="content"]
    [div class="cpt_maincontent"]
    [div id="cat_path" class="clearfix"]
    [div class="div_main"]

  11. February 9th, 2012 at 13:20 | #17

    Hi Michael,
    thanks for this great plugin. I have a similar problem as Artem: Is there a parameter that only takes a specific div in on the website I want to embed? The div is defined by class, not id.

    Best, Michael

    • February 9th, 2012 at 16:54 | #18

      You can only modify the page you own and not the one you include. This is not allowed with Javascript because of cross site scripting.

      - Michael

  12. March 8th, 2012 at 21:23 | #19

    The advanced iframe doesnt seem to work for me. The iframe reloads in itself and i get an 404 page.
    I seems it has to with cache. When i clear my history the iframe works, but when i visit just one other page/site the iframe has problems.

    Can you please help me

    http://www.tvgids-online.com/tvgids

  13. March 8th, 2012 at 21:26 | #20

    by the way i only have problems with firefox and chrome

  14. March 9th, 2012 at 11:19 | #21

    Hi michael,

    I have an real issue. I commented on this blog yesterday but you removed my comment. Probably because of the link.

    Again my problem:

    The iframe reloads in itself, because of that i get an 404 within the iframe. I have no issues in safari, but in chrome and firefox the iframe has issues. (the url is: (tvgids-online . com/tvgids)

    It has something todo with cache because, when removing history in browser i have no issues.

    Can you pleace checkit or tell me where i can ask questions about this issue.

    • April 5th, 2012 at 23:45 | #22

      Hi,

      you still have the issue?
      the advanced iframe only used the normal html iframe. The cool stuff is that you and hide element on the parent page and that url parameters can be passed to the iframe.

      - Michael

  15. March 31st, 2012 at 12:17 | #23

    Hello,
    for my application I needed to be able to give the iframe a “name” parameter, so I modified the main plugin file to include a default name of “advanced_iframe” but also allowing a “name” parameter in the shortcode.

    Would it be possible to add that to the plugin so I don’t have to re-create it every time the plugin gets updated?

    I could send you the diff.

    Wolf

    • March 31st, 2012 at 22:09 | #24

      I have actually already added ‘id’ and ‘name’ in my local version which will be 1.4.

      so updating will not be a problem then.

      - Michael

      • April 5th, 2012 at 23:37 | #25

        Please look at the administtration of WFU. there you see the shortcode you have to use.

        - Michael

  1. No trackbacks yet.