BBCode DatabaseYoutube autoplay BBcode phpbb 3.1

BBCode's
Previous topicNext topic
User avatar

Topic Author
clight77
Donator
Donator
Magic user status: Offline
Posts: 472
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Youtube autoplay BBcode phpbb 3.1

Post by clight77 »

Youtube autoplay BBcode phpbb 3.1

BBCode usage: (you can rename youtubeautoplay to your wording choice)

Code: Select all

[youtubeautoplay]{TEXT}embed/{IDENTIFIER}{TEXT2}[/youtubeautoplay]

HTML replacement: (change width height to your liking, this will override the youtube embed code)

Code: Select all

<iframe width="370" height="210" src="http://www.youtube.com/embed/{IDENTIFIER}?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>

Help line

Code: Select all

[youtubeautoplay]copy and paste your youtube embed iframe code here[/youtubeautoplay]

Check/Tick the box that says to display on posting page

Now you will have a new bbcode button.

To post a youtube video, you simply click the "embed" button on the youtube video page.

Then copy thier embed iframe code and paste it between the tags like this ::

Code: Select all

[youtubeautoplay]<iframe width="560" height="315" src="https://www.youtube.com/embed/vkiiK-P1dGQ" frameborder="0" allowfullscreen></iframe>[/youtubeautoplay]
Previous topicNext topic