qzuser1212 發表於 2023-1-15 14:52:17

【发帖增强】嵌入Twitter视频的简单方案

<br /><br /><strong>1. 后台管理 ——界面——编辑器设置——Discuz!代码新增一个Twitter的代码</strong><br /><br /><br /><img title="WX20230115-144722@2x.png" id="aimg_19013" aid="19013" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202301/15/144952vmv2727a2sscxbxg.png" src="https://www.dismall.com/data/attachment/forum/202301/15/144952vmv2727a2sscxbxg.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br /><strong>2. 按照以下设置</strong><br /><br /><img title="WX20230115-144742@2x.png" id="aimg_19014" aid="19014" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202301/15/145007welxt5xzlxxkxazh.png" src="https://www.dismall.com/data/attachment/forum/202301/15/145007welxt5xzlxxkxazh.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br /><br /><br /><strong>3. 将代码设置为可用,显示</strong><br /><strong><br />4. 设置用户权限,具有“允许使用自定义 Discuz! 代码”权限的用户组在发帖时才会看到相应自定义 Discuz! 代码按钮</strong><br /><strong><br />5. 发帖时点击代码图标,输入在Twitter视频上右键复制的地址,将</strong><font style="background-color:rgb(247, 247, 247)">https://twitter.com/i/status/后边的那串数字填入即可</font><br /><img id="aimg_OfDpP" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="https://pic.imgdb.cn/item/63c3a26dbe43e0d30e459924.png" onmouseover="img_onmouseoverfunc(this)" lazyloadthumb="1" border="0" alt="" /><br />到此大功告成<br /><br /><br /><br />代码<em>, </em>设置<em>, </em>Discuz<em>, </em>Twitter<em>, </em>发帖

qzuser1212 發表於 2023-1-15 21:36:41

<br />soory&nbsp;&nbsp;教程写错了 应该是输入status后的那一串 1613331398953422848

专家 發表於 2023-1-15 14:56:16

😂你这个模板实在是太红了

shuiguozhen 發表於 2023-1-15 15:37:22

感谢大佬提供学习的方法<br />

qzuser1212 發表於 2023-1-15 16:23:40

<br />哈哈 在重新设计配色了

pcinstall 發表於 2023-1-15 16:33:04

这个可以看看

chtois 發表於 2023-1-15 20:40:40

感謝分享,我想看看代碼

chtois 發表於 2023-1-15 20:45:48

我按照你的语法设定了Discuz!代码。<br /><br /><img title="Snap4.png" id="aimg_19026" aid="19026" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202301/15/204309jtp66hz26tvq5b8t.png" src="https://www.dismall.com/data/attachment/forum/202301/15/204309jtp66hz26tvq5b8t.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br /><br /><br />然后发表了一篇https://twitter.com/XIAOMIEHM/status/1614305685235179520?s=20&amp;t=4wcWUbftsRT-mO83fiZYBw文章。<br />但是帖子却呈现<br />The media could be played.<br /><img title="Snap5.png" id="aimg_19027" aid="19027" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202301/15/204538g7yfhf2zssy95527.png" src="https://www.dismall.com/data/attachment/forum/202301/15/204538g7yfhf2zssy95527.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br /><br />但是https://twitter.com/XIAOMIEHM/status/1614305685235179520?s=20&amp;t=4wcWUbftsRT-mO83fiZYBw这个是实际可以播放的,感觉好像是代码的问题。<br /><br />可以帮忙看看代码是否有改变吗?<br /><br />谢谢。<br />

qzuser1212 發表於 2023-1-15 20:48:56

<br />实际地址应该为:https://twitter.com/i/status/1614305685235179520<br />在Twitter视频上右键复制地址

qzuser1212 發表於 2023-1-15 20:51:35

<br />话说 为什么要转发这种造谣的视频 你不会是?
頁: [1] 2
查看完整版本: 【发帖增强】嵌入Twitter视频的简单方案