Quickly explain what Onebox is?

A co-admin new to Discourse was going through the options and pointed out that “Onebox” wasn’t exactly intuitive. Maybe it’s worth adding a heading to that page about what Onebox is?

3 个赞

This might help:

3 个赞

I am trying to embed something from autodesk360.com and it doesn’t seem to register. Is there a way within my discourse admin settings to allow for this iframe to show?

https://myhub.autodesk360.com/ue29ca300/shares/public/SHabee1QT1a327cf2b7a526ef5b381cfd1ef?mode=embed

I believe @sam added a feature where you can whitelist iframes.

Another option if you haven’t already ruled it out might be Sketchfab, it looks like a lot of people have been using it to share their 3D models on a Discourse instance. If you search for Sketchfab here, you might find some examples of what you are looking for.

For clarity, would I be correct in thinking that Onebox is using oEmbed to provide embedded previews of links (ie that onebox is Discourse’s elsewhere-cryptically-referenced native support for oEmbed?)

1 个赞

Yes, onebox leverages OpenGraph and oEmbed tags, if present on the target site.

4 个赞

您好,

我使用的是 Discourse 2.5.3 版本。如果我复制 YouTube 链接或使用超链接,它只显示链接,看不到任何图片。我是否需要执行某些特定操作才能使其正常工作?

谢谢

如果您正在输入内容,请按“回车”键,直到它出现在单独的一行。


@ondrej 我正在单独一行输入它

可能的原因如下:

  • 该 YouTube 视频在设置中指定了不允许嵌入
  • 您的服务器 IP 地址已被 YouTube 列入黑名单

后者可以通过在此处发布 YouTube 视频链接来测试。如果在这里可以正常显示……

2 个赞