View Full Version : 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:
https://www.bilibili.com/video/BV1Dg4y1B75T
Replacement:
<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:
BV1Dg4y1B75T
Notes:
I added standard YouTube width and height attributes as the bilibili embed code doesn't seem to come with them.
^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:
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
^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.
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)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.