Here's how to create a BB Code to embed Twitch videos.
Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:
Title: Twitch
BB Code Tag Name: twitch
Replacement: (Replace yourdomain.com with your actual forum domain name. Twitch requires you to pass the domain of the parent page the Twitch video is embedded on)
Example: [twitch]TwitchVideoIDHere[/twitch]
Use {option}: No
Button Image (Optional): (specify image path if you want a new button for this BBCode to appear in the editor)
Rest of Options: Yes
Example:
[twitch]1433394436[/twitch]
Output:
Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:
Title: Twitch
BB Code Tag Name: twitch
Replacement: (Replace yourdomain.com with your actual forum domain name. Twitch requires you to pass the domain of the parent page the Twitch video is embedded on)
HTML Code:
<iframe src="https://player.twitch.tv/?video={param}&parent=yourdomain.com" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620" style="max-width:100%;"></iframe>
Use {option}: No
Button Image (Optional): (specify image path if you want a new button for this BBCode to appear in the editor)
Rest of Options: Yes
Example:
[twitch]1433394436[/twitch]
Output: