Embedding the iframe?
axslayer33 started this discussion in Help and Tips

I'm trying to add the public 3D view of a model into a WYSIWYG website editor's iframe loader. Everytime I do so, I get an iframe with my website's 404 page. What I do is I put in the source line for the editor:

<iframe frameborder="0" allowFullScreen webkitallowfullscreen="true" mozallowfullscreen="true" src="http://www.mecabricks.com/embed/[ID]?autostart=0&animation=1&transparent=0&white=0&antialias=1"></iframe>

I then take out [ID], and replace it with the alphanumeric code after .com/en/models/, so I add this:

qxov7gq5v0D

What am I doing wrong?

2 replies · Page 1 of 1

There's nothing wrong with the code that you have posted.

Ensure that the http:// is in front of the URL. That's the only thing that could make it happen that you see your 404 page instead of the model page.

Avatar of Scrubs
Administrator

Hello,

I don't see anything wrong with your code. It shall work. If you get an error 404 it means that the url is incorrect. You shall go have a look in the source code for the page and see how the code is displayed. Maybe it is not parsed properly by your editor.

<iframe frameborder="0" height="480" width="640" allowFullScreen webkitallowfullscreen="true" mozallowfullscreen="true" onmousewheel="" src="http://www.mecabricks.com/embed/qxov7gqxv0D?autostart=0"></iframe>

By the way, only the autostart option is available nowadays, the rest is legacy and you can take it off.
If you want another language for the player interface you can also add the language code in the url:

http://www.mecabricks.com/fr/embed/qxov7gqxv0D

[mecabricks]qxov7gqxv0D[/mecabricks]

Advertising
3 participants
Avatar of Sim
Avatar of Scrubs

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.