Thanks for the component.
I am using the master branch of discourse github (commit https://github.com/discourse/discourse/commit/db7be947df29bb2ab27dd3abd80e3b470dcb74e5).
Just wanted to let you know that I’ve just enabled the component on the Default Theme.
Once I’ve done that, it breaks the rendering of the site, as it loops the main container again and again infinitely… any suggestion?
thanks!
Thanks for the report @nicopace. @pmusaraj just pushed some updates to the theme
Please can you try updating and let us know if things are working better?
Thanks for the update. It works.
I wonder if there is any plan to support delayed iframe renderings like the ones in https://github.com/discourse/discourse-bbb that appear after you click in a button.
这个(非常棒的)主题组件似乎可以正常工作,但它被标记为“已损坏”。
我无法让它无法工作。
其他人能否也进行测试并提供结果?
如果它没有损坏,我们能否移除“已损坏”标签?
您好 @denvergeeks。看起来这个标签被标记为“已损坏”,因为 YouTube 的 onebox(一种嵌入式链接预览)出现了一些问题。您能否确认一下在您的网站上使用此主题组件时,YouTube 视频是否正常工作?
谢谢 @david – 你说得对,它在 YouTube 视频和 iframe 上也会出错并卡住,但我 fork 了并在 .js 中删除了 LazyYT,之后它确实可以工作了……
好的!您介意为此更改创建一个 PR 吗?
好的,我想我正确地完成了那个PR(足够了)。
看起来很棒,谢谢。我现在已经从这个话题中删除了 broken ![]()
太棒了!感谢 @denvergeeks 和 @david 的修复 ![]()
并非所有用户都会嵌入 iframe 代码,所有用户都会直接嵌入视频 URL。也许值得实现一个工具,将 YouTube 视频 URL 转换为 iframe 嵌入代码
我相当确定可以为此创建一个主题组件,并将其放置在编辑器工具栏上。或者可以分叉这个项目并添加那部分功能。
添加一个额外的按钮会使界面复杂化。有必要自动、不显眼地转换 URL 地址。然后,所有嵌入式视频,无论采用何种嵌入方式,都将正常工作。
好的。那么,我想人们可以分叉它并使其自动化。 ![]()
也许应该将其放在核心中,以便所有 URL 都解析为相同的标准?
我不确定我是否理解这里的请求…… Discourse 已经将 YouTube 链接扩展为 iframe,这是我们“onebox”系统的一部分。只需将 URL 粘贴在单独一行上:
是的,但直接粘贴URL在此组件中不起作用。该组件看不到iframe onebox。您需要直接粘贴iframe代码才能使该组件正常工作。而没有人这样做,每个人都只粘贴URL,而不是iframe代码。
是的,理想情况下,用户只需粘贴源提供的任何内容,它就能在 Discourse 中自动运行!
这对新手来说似乎很简单!
我明白了,这说得通 ![]()
如果有人想尝试让这个主题组件与核心的“懒加载视频”实现协同工作,#pr-welcome。
再次感谢。问题的原因是来自 GitHub - davidtaylorhq/discourse-media-overlay-theme 的 Media Overlay 主题组件。当我禁用它时,Discourse 开始正常工作。