vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   BBCode for video embedding (https://vborg.vbsupport.ru/showthread.php?t=327254)

aburisha 05-06-2019 05:11 AM

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?

In Omnibus 05-06-2019 11:43 AM

You're embedding a URL so it will display the full page. You need to embed the video only.

aburisha 05-07-2019 04:36 AM

How can I do that? I just saw that code in internet and used it but am not an expert in bbcodes.

In Omnibus 05-07-2019 05:15 AM

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.

aburisha 05-07-2019 06:35 AM

Thank you!


All times are GMT. The time now is 02:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01013 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete