Here's how to create a BB Code to embed TikTok videos in a forum post.
Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:
Title: TikTok
BB Code Tag Name: tiktok
Replacement:
Example: [tiktok]12345678901234567890[/tiktok] (this is the TikTok Video ID)
Use {option}: No
Button Image (Optional): (specify image path if you want a new button for this BBCode to appear in the editor)
Remove Tag If Empty: Yes
Rest of Options: No
To get the TikTok Video ID, click the Copy Link in the TikTok post, The copied link has this format:
https://www.tiktok.com/@user/video/<VideoID>
Copy just the Video ID part. The Video ID consists a bunch of some pattern of digits.
Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:
Title: TikTok
BB Code Tag Name: tiktok
Replacement:
HTML Code:
<blockquote class="tiktok-embed" data-video-id="{param}" style="max-width: 605px;min-width: 325px; margin: 1em 0;"><section></section></blockquote><script async src="https://www.tiktok.com/embed.js"></script>
Use {option}: No
Button Image (Optional): (specify image path if you want a new button for this BBCode to appear in the editor)
Remove Tag If Empty: Yes
Rest of Options: No
To get the TikTok Video ID, click the Copy Link in the TikTok post, The copied link has this format:
https://www.tiktok.com/@user/video/<VideoID>
Copy just the Video ID part. The Video ID consists a bunch of some pattern of digits.
Comment