Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 May 2019, 07:11
aburisha aburisha is offline
 
Join Date: Oct 2017
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?
Reply With Quote
  #2  
Old 06 May 2019, 13:43
In Omnibus's Avatar
In Omnibus In Omnibus is online now
 
Join Date: Apr 2010
Real name: Kris
You're embedding a URL so it will display the full page. You need to embed the video only.
Reply With Quote
  #3  
Old 07 May 2019, 06:36
aburisha aburisha is offline
 
Join Date: Oct 2017
How can I do that? I just saw that code in internet and used it but am not an expert in bbcodes.
Reply With Quote
  #4  
Old 07 May 2019, 07:15
In Omnibus's Avatar
In Omnibus In Omnibus is online now
 
Join Date: Apr 2010
Real name: Kris
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.
Reply With Quote
  #5  
Old 07 May 2019, 08:35
aburisha aburisha is offline
 
Join Date: Oct 2017
Thank you!
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
LiveLeak Video Embedding code. BVM vBulletin 3.6 Template Modifications 10 25 Apr 2008 08:47



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:01.

Layout Options | Width: Wide Color: