vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Embed bilibili (https://vborg.vbsupport.ru/showthread.php?t=328046)

X-or 05-23-2020 11:05 AM

Embed bilibili
 
I have tried to embed a bilibili video (the chinese youtube) using the embed code they provide but it didn't work out.

Anybody had more luck?

PinkMilk 05-23-2020 03:31 PM

Using just video id from url:
Code:

https://www.bilibili.com/video/BV1Dg4y1B75T
Replacement:
Code:

<iframe src="//player.bilibili.com/player.html?bvid={param}" scrolling="no" width="560" height="315" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
Options:
Use {option}
No

Remove Tag If Empty
Yes

Disable BB Code Within This BB Code
Yes

Disable Smilies Within This BB Code
Yes

Disable Word Wrapping Within This BB Code
Yes

Disable Automatic Link Parsing Within This BB Code
Yes

Example:
[bilibili]BV1Dg4y1B75T[/bilibili]


Notes:
I added standard YouTube width and height attributes as the bilibili embed code doesn't seem to come with them.

X-or 05-23-2020 05:20 PM

^The above is more or less what I tried, but it doesn't show anything.

I wonder if this is related to the warning I get when saving the bbcode:
Quote:

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
*Edit I fixed the warning by adding a title to the iframe but it still doesn't show anything.

PinkMilk 05-23-2020 07:35 PM

Quote:

Originally Posted by X-or (Post 2603041)
^The above is more or less what I tried, but it doesn't show anything.

I wonder if this is related to the warning I get when saving the bbcode:


*Edit I fixed the warning by adding a title to the iframe but it still doesn't show anything.


Did you try my code or just presume as its more or less the same that it is the same?

Based on the error your getting my guess is you have an atrribute that in 2020/html5 does not need blah="blah" such as allowfullscreen but did when vb4 was first coded.

Post the code your currently trying to use.

X-or 05-23-2020 07:44 PM

I did try your code and it didn't work
and your code did give me that error until I added a name attribute

Edit: might be worth mentioning I use cloudflare
that was not a problem to embed youtube and niconico (japanese yt)


All times are GMT. The time now is 06:56 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.01039 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (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