Hello! I've installed insertFrame, then created a filter called iframe available to all users which has ticked "Include iFrame" and the rest of filters (HTML corrector, URL Filter, freelinking filter).

Then I've made a new history with this content

[[[http://omrpublic.iea.org/ height=100% width=100%]]]

and all I get is an empty rectangle in the form, the size of this rectangle is indendent of the values I put in height and width (I've tried % and px).

After trying all combinations of filters I'm not finding any way to make this work could anyone help me?

Comments

MarcElbichon’s picture

Is http://omrpublic.iea.org the same as drupal site ?
Can you edit the source of generated page, seach iframe tag and post the result ?

manolooo’s picture

StatusFileSize
new42.75 KB

The code:

    <div class="content">
      <p class="rtecenter"><iframe><nowiki><a href="/drupal/?q=freelinking/%255Bhttp%253A%252F%252Fomrpublic.iea.org%252F%2520height%253D100%2525%2520width%253D100%2525" class="freelinking">[http://omrpublic.iea.org/ height=100% width=100%</a>]</nowiki></iframe></p>
    </div>

with pixels instead of %

    <div class="content">
      <p class="rtecenter"><iframe><nowiki><a href="/drupal/?q=freelinking/%255Bhttp%253A%252F%252Fomrpublic.iea.org%252F%2520height%253D950px%2520width%253D800px" class="freelinking">[http://omrpublic.iea.org/ height=950px width=800px</a>]</nowiki></iframe></p>
    </div>

I'd like to ask a begginer question: what is the difference between using insertFrame and just putting the tag

without the module handling the frame?
manolooo’s picture

Problem partially solved: I need to deactivate the freelinking filter in the input format, the empty rectangle keeps on appearing.

This works with Internet Explorer but not with firefox nor opera. Here the Forefox code:

<div class="content">
      
<p class="rtecenter"><iframe><nowiki><iframe  name="iframe1" id="iframe1" src="http://omrpublic.iea.org/" scrolling="no" width="960px" height="1050px" frameborder="0" ></iframe></nowiki></iframe></p>

<p><iframe src="http://omrpublic.iea.org/" frameborder="0" width="960" height="960"></body></html></iframe></p>    </div>
    
          <div class="links">

(As you can see now I've put iframe with 3 brackets and then iframe as html code, the second option works always.

MarcElbichon’s picture

Strange.There is 2 iframe tags and a nowiki tag.
More, with the HTLM code you have body and html ending tag before

Can you post me (or email me) the code you type in the drupal's form, the input format (with input filters) used and the complete generated source page.

manolooo’s picture

StatusFileSize
new43.26 KB
new288.58 KB
new42.89 KB
new10.83 KB
new10.74 KB

Sorry, perhaps I was not clear enough: the code in the first post is the code of two different pages: one with percent height and width an another with pixels. The second is one only page with two iframe tags: one with brackets so that it addresses to the filter, and the second one with html standard iframe that works fine.

Thank you very much for your interest!

manolooo’s picture

StatusFileSize
new59.53 KB

I forgot the most important!

manolooo’s picture

Problem solved!!!

Being an ignorant beginner I misunderstood remark #2 and enclosed the iframe in {iframe} {/iframe}, removing these tags everything works smooth. I hope this issue helps others.

Marc: my highest recognition for your interest and help

With purpose of improving the module instructions I'd suggest you modify remark #2 and explain more clearly where this allowed tag should be set.

...
Remarks

1 You can use the filter with wiki modules but you must enclose the lines with {nowiki} tag.
2 if HTML filter is active, add {iframe} in the Allowed HTML tags input box in the configure tab of your input format
...

MarcElbichon’s picture

Assigned: Unassigned » MarcElbichon
Status: Active » Closed (fixed)