Embedding the iframe?
axslayer33 a commencé cette discussion dans 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 réponses · Page 1 sur 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 de Scrubs
Administrateur

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]

Publicité
3 participants
Avatar de Sim
Avatar de Scrubs

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.