Height of {embed} iframe is way to small

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
daik
Forum Members
Forum Members
Posts: 26
Joined: Mon Feb 06, 2006 3:02 am

Height of {embed} iframe is way to small

Post by daik »

Hello,
I have a page where I have included my blog via the {embed} tag. It seems to be working, except that the height of the embedded frame is tiny. (still vissible thought, I'd guess it is something like 200px high). Is there a way to have it resized to the actual height of the embedded page?
I have in my template {embed header=true} in the header, on the line under {stylesheet}.
Any suggestions are welome. I have tired the pi_iframe as well. While that lets me specify the height, it unfortunatly either must be set to a absurdly high value to hold the maximum height of the 10 blog entires, or not at all, which gives the same problem as with {embed}.

I run cms ms 0.11.2 on apache 2 and mysql all on Mandriva linux

regards
Daniel
katon

Re: Height of {embed} iframe is way to small

Post by katon »

Same here.  Following is a solution from this forum:
If you are using Firefox, chances are that you'll see a vertical scrollbar, which shouldn't really be there. To get rid of the scrollbar, you'll need to edit the "function.embed.php" file, which is located in the "Plugins" folder of your CMSMS installation. Go to line 111, look for the "style=" variable, and set it to "hidden". Once you've made this small change, your forum should be displayed perfectly (without scrollbars) in your site.

This helped me on one system, but doesn't help on another.  Has anybody gone through this?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Height of {embed} iframe is way to small

Post by Dr.CSS »

Embeded with no problem...
http://www.multiintech.com/index.php?page=embeded
fully func. web page inside, draggable...
katon

Re: Height of {embed} iframe is way to small

Post by katon »

mark wrote: Embeded with no problem...
http://www.multiintech.com/index.php?page=embeded
fully func. web page inside, draggable...
Don't really want to upset you, but I got a scroll in Firefox.  >:(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Height of {embed} iframe is way to small

Post by Dr.CSS »

original site is bigger than other sites window, hence the scroll...
kevin360

Re: Height of {embed} iframe is way to small

Post by kevin360 »

Mark did you do anything special for this?  I'm trying to get the same thing but my embedded section is only like 200 pixels high.  I've put into the meta data section for the page {embed header=true}.  For the page all I've got is: {embed url=http://www.yahoo.com} and it comes up with short height.

Thanks,
Kevin
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Height of {embed} iframe is way to small

Post by Dr.CSS »

nope just did like you, i have the {embed header=true} in the page metadata and {embed url=http://www.multiintech.com/old/index.html} in the template... is the 'box' you are putting it in set with a  #box{heigth:??px} ?

EDIT: do you have {metadata} in the of your template, some where before
Last edited by Anonymous on Sat Jul 08, 2006 10:25 pm, edited 1 time in total.
kevin360

Re: Height of {embed} iframe is way to small

Post by kevin360 »

I looked around and didn't see anything where it's getting a strange height, but I'm not sure what you mean by "box", sorry.

I just did a clean install to test it out again, try this link:

http://www.limesherbert.com/cmsms/index.php/embedded

On my computer it's still only about 200px high.  This is a clean install that I just did.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Height of {embed} iframe is way to small

Post by Dr.CSS »

'box' means the container you put it in...
yes it still looks too small, i tried to change the CSS and it still won't work ???
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Height of {embed} iframe is way to small

Post by Dr.CSS »

i've got the same problem on a fresh install i tried striping every thin out of the template and still no go, i must have gotten lucky the first time, it was a complete new template, don't know if that matters ???

want to see my mess?

http://mit-computers.com/index.php/embeded
kevin360

Re: Height of {embed} iframe is way to small

Post by kevin360 »

Hmmm....any idea on how to fix it?  The first one you did was perfect, that's what I want!  :)
Freight
New Member
New Member
Posts: 9
Joined: Fri Sep 01, 2006 9:37 am

Re: Height of {embed} iframe is way to small

Post by Freight »

The same problem here.

It seems to be a difference between, which site is loaded in the iframe. If I load a site on the same domain, embed will work fine. If I load a site with another domain, embed will only generate a small iframe.

Someone an idea how to get the right size for a "foreign" domain?

Greetings Freight

-----

Here I found some detailde information about the Problem: http://www.dynamicdrive.com/dynamicinde ... messi2.htm
"*All external pages loaded into the iframe must be from the same domain as the page the iframe tag is inserted in. Setting the iframe's src to an external site such as "http://www.google.com" will not work, since the script cannot probe and detect the height of pages from external domains."
Last edited by Freight on Tue Sep 02, 2008 1:28 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Height of {embed} iframe is way to small

Post by Dr.CSS »

@kevin try this, you can make it taller...

#myframe{height:500px}
Freight
New Member
New Member
Posts: 9
Joined: Fri Sep 01, 2006 9:37 am

Re: Height of {embed} iframe is way to small

Post by Freight »

Oh thats a good workaround.

Am I right, that it seems to be a technical problem (feature) of the browsers. So there is no way for dynamic resize of these frames with external domain?

Greetings.
Post Reply

Return to “CMSMS Core”