Hi, I am sort of new in Drupal. I have been trying to put insertFrame to work, but when the node loads the frame it shows my own website instead of the external website (my website is jd.kadchi.com, and I am trying to load sudlersothebysrealty.com). Also, in Explorer, Chrome and Safari the frame shrinks down to a much smaller size (and does not load the external url either). This is the code I am using in my website's node:

[[[url= width=<100%> height=<500px> scrolling=]]]

I would highly appreciate any insight about what I am doing wrong. Thanks!

CommentFileSizeAuthor
#8 insertFrame.zip3.43 KBMarcElbichon

Comments

MarcElbichon’s picture

You must delete < and > chars

Ex : [[[sudlersothebysrealty.com width=100% height=500px scrolling=auto]]]

david_p’s picture

Now is working smoothly. Thanks a lot!

MarcElbichon’s picture

Status: Active » Closed (fixed)
cobadger’s picture

Version: 6.x-2.0 » 7.x-2.0
Status: Closed (fixed) » Active

I have Drupal 7 installed and am having a similar problem. Error I'm getting is:

Parse error: syntax error, unexpected '[' in /usr/www/users/dollarhu/drupal7/modules/php/php.module(75) : eval()'d code on line 43

Code I'm using to insert the frame is:

[[[http://www.url_to_a_page_not_on_my_site.com ]]];

Under Home » Administration » Configuration » Content authoring » Text formats, I have clicked on "configure" for "PHP Code" and checked the box next to "Include iFrame with auto-height feature".

Lastly, I have "Include iFrame with auto-height feature " positioned above "PHP Evaluator" in the Filter Processing Order, so it should be evaluating this call to the insertFrame module before parsing the php language beneath it.

Any idea what I should be doing differently?

MarcElbichon’s picture

I'm not sure filter works for PHP Evaluator.
You can do the same by using directly the php function :

   // _insertFrame_getHTML takes as first parameter complete text you should place between [[[ & ]]] tags
    echo _insertFrame_getHTML("http://www.url_to_a_page_not_on_my_site.com");
cobadger’s picture

Thanks @MarcElbichon - your suggestion did indeed pull the html onto my page, but it didn't display properly - the only content on the page was the iFrame's content; my theme, navigation and everything else was missing.

I experienced this with some html I'd included on php content pages.

I have found Drupal 7 to be too buggy for a newbie like me (bizarre issues with php code I've built into my pages - functions being evaluated even when the page containing those functions was not active); have installed 6.something and it's behaving much better.

ecedeno’s picture

Issue tags: +drupal 7, +frame

Hi, I have the same problem the frame does not load external url, i used the documentation of this article

http://drupal.org/node/602268 and http://drupal.org/project/insertFrame follow all the setps.
1. Extract zip file in the modules directory
2. Enable the module in the admin settings
3. Add the filter to an input format

I try diferent options using

    echo _insertFrame_getHTML("http://www.google.com");
[[[http://www.google.com width=500px height=300px ]]]

[[[http://www.google.com width=500px height=300px ]]]

But does not load external page. Do you have any suggestions? please help me

MarcElbichon’s picture

StatusFileSize
new3.43 KB

There's a bug with full url.
Ca you try attached release ?

ksubramani’s picture

Version: 7.x-2.0 » 7.x-2.1

I now used the release of Jan 26, 2011 in the module page.
I get Error 403 - Access Forbidden, but the URL comes out wrong
">http://www.site.com]]]

I have used just
[[[http://www.site.com]]]

Is it some tagging issue?
The site displays OK with the regular IFRAME syntax.
------------------------------------------------------
I removed all the other filters then the module worked.
Even though the filter order specified IFRAME filter to be the first, the sequence displayed in the Edit content page was different. So removing the other filters helped.

MarcElbichon’s picture

Which filters do you use ?

MarcElbichon’s picture

Status: Active » Closed (fixed)

No response. Closed