Is it possible to make the embed tag have dynamic height

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
Griffin
New Member
New Member
Posts: 9
Joined: Thu Jul 24, 2014 6:30 pm

Is it possible to make the embed tag have dynamic height

Post by Griffin »

So I've made a forum page on my website with a mybb forum "iframed" in with the embed tag you guys use. My problem is I would like the height of the embed tag to resize to the information on the screen.

If you look now I have the height set to something like 2000px just so I can see the whole forum and under the forum there is a lot of white space.

http://easttowestdiversity.com/index.php?page=forum

Thanks in advance for any help you guys can give. :D
chandra

Re: Is it possible to make the embed tag have dynamic height

Post by chandra »

Ask Mr. Google ;) - there are some javascripts out there to do that.
Njit
Forum Members
Forum Members
Posts: 55
Joined: Wed Jun 25, 2014 9:03 am

Re: Is it possible to make the embed tag have dynamic height

Post by Njit »

Griffin
New Member
New Member
Posts: 9
Joined: Thu Jul 24, 2014 6:30 pm

Re: Is it possible to make the embed tag have dynamic height

Post by Griffin »

Yeah I was trying to work something out like that, but where cmsms uses the embed tag and not the iframe tag I couldn't figure it out.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Is it possible to make the embed tag have dynamic height

Post by calguy1000 »

I read through the code, and though I haven't tested it, there is 'supposed' to be some dynamic iframe resizing functionality inside the 'embed' tag.

Try using the optional name parameter in both actions.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Griffin
New Member
New Member
Posts: 9
Joined: Thu Jul 24, 2014 6:30 pm

Re: Is it possible to make the embed tag have dynamic height

Post by Griffin »

Tried that with no luck :( Is there a way to bypass the ebmed tag so I can use a regular Iframe and use javascript to resize it?
Geoclaps
Forum Members
Forum Members
Posts: 25
Joined: Tue Oct 08, 2013 12:02 pm

Re: Is it possible to make the embed tag have dynamic height

Post by Geoclaps »

I have not tested this but couldn't you instead use:

In your template put:

Code: Select all

<div class="forum">
    {literal}<__iframe src="http://www.url-of-your-forum.com"></__iframe>{literal}
</div>
*<__iframe should be without the "__" ofcourse but this forum won't let me :( it replaces the < with <__ ...


In your CSS put:

Code: Select all

.forum { height: 100%; overflow: auto; }
.forum iframe { height: 100% /*dynamic*/ }
This way you can at least have more control over the iframe.
Post Reply

Return to “CMSMS Core”