tag embed

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
jarvaz
Forum Members
Forum Members
Posts: 18
Joined: Thu Nov 13, 2008 8:21 am

tag embed

Post by jarvaz »

Hello everyone. I associate myself with amazon.com to put on my web store. I give the url of the website code, and try to soak it in my portal with the tag "embed" It does not work. I put the following:

(Embed url = "url of my website")

This does not work, I tried to put the google address, nor does anyone know of this?

I am working with cms v1.8

Greetings.
owr_bgld

Re: tag embed

Post by owr_bgld »

if you're looking in the html-code of your page it works, but in the function.embed.php, there is added

Code: Select all

style='overflow:visible; width:99%; display:none'
to the output. So it won't be displayed. I didn't find a workaround for myself, so i deleted the part style=..... form the php-file

EDIT: You have to remember at each update, if this file is re-uploaded. then you have to change it again
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

Re: tag embed

Post by pwg »

owr-web,

You have no idea how long I've been trying to get this to work. Your solution is so simple, I wondered why I hadn't tried it before.

Many many thanks.

Cheers,

pwg
NaN

Re: tag embed

Post by NaN »

Do you have {embed header=true} in the head section of your template?
Thing is the embed tag trys to adapt the height of the iFrame to its content dynamically using javascript. Problem is that the script trys to access properties of elements inside the iFrame (contentDocument). Due to the "same origin policy" most browsers does not allow to access the content of iFrames with javascript if the iFrame content is not loaded from the same origin like the site was loaded from.
This is why the embed tag does not behave like expected in the most cases.
If you just need an iFrame with certain height and width try this plugin:
http://dl.dropbox.com/u/2876578/CMSms/P ... iframe.php
It does almost the same like embed but without the javascript stuff.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: tag embed

Post by Dr.CSS »

This {embed header=true} is in the Help for that tag, if you don't get it in the of the template/page embed tag won't work, it really helps to read the tag help, I've used it many times with out having to change any PHP files...
Post Reply

Return to “The Lounge”