vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328046

Embed bilibili
by X-or
23 May 2020 13:05

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 23 May 2020 17:31

Using just video id from url:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 23 May 2020 19:20

^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 23 May 2020 21:35

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 23 May 2020 21:44

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 23:22.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.