The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
BBCode for video embedding
Hello!
I am trying to create a BBcode that would allow to inframe a video on my website (that is not on youtube or other video outlets). I used the following code: Title: iframe BB Code Tag Name: iframe Replacement: <iframe width="100%" height="600" src="{param}"><a href="{param}" target="_blank">{param}</a></iframe> <iframe>https://www.interpretersweb.com/loop.mp4</iframe> It worked but suddenly it started to embed the whole site instead of the video. Any help? |
#2
|
||||
|
||||
You're embedding a URL so it will display the full page. You need to embed the video only.
|
#3
|
|||
|
|||
How can I do that? I just saw that code in internet and used it but am not an expert in bbcodes.
|
#4
|
||||
|
||||
First of all you don't need to convert <iframe> to BBCode.
You can use the HTML5 video element. <video width="auto" height="600" autoplay> <source src="https://www.interpretersweb.com/loop.mp4" type="video/mp4"> You need HTML enabled for this code to work. You should limit the use of HTML to administrators only by Usergroup permissions. You can create an <iframe> BBCode if you like but it's for embedding static web pages. |
#5
|
|||
|
|||
Thank you!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|