vBulletin Mods

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

Embed TikTok
by Irishnotsane
21 Apr 2020 20:43

Anyone have any idea how I can embed TikTok videos into the forum using BBCode?

I've tried the following code


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

However it doesn't work.. Can't figure it out to save my life
Not sure if this will help you, but might as well be a different language to me
https://developers.tiktok.com/doc/Embed

Thanks

PinkMilk 22 Apr 2020 01:59

1 Attachment(s)
I have it working with:

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


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

Helpful Tip:

If you have a few TikTok videos embedded on a page/post it loads the embed code

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

for each video which is a waste of time and resources, to load it only once remove it from bbcode replacement and manually add it to SHOWTHREAD template:

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

Add above:

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

Other Notes:
  • If you do this it won't show in Admincp BB Code Manager page (see attachment) but works fine in posts.
  • Whether you keep script with bbcode or manually add to template videos take a while to load after posting or editing, refreshing page (f5) seems to fix that.

Irishnotsane 22 Apr 2020 09:30

This is brillaint thanks!!

I don't suppose there is ANYWAY a user would be able to just post in the whole URL instead of the long number?

Probably a long-shot.
But either way, thanks! i did think it was something to do with that data video id, as I was playing around with it for ages after I had posted this, feel like I came close a few times lol

PinkMilk 20 May 2020 21:43

1 Attachment(s)
Quote:

Originally Posted by Irishnotsane (Post 2602638)
This is brillaint thanks!!

I don't suppose there is ANYWAY a user would be able to just post in the whole URL instead of the long number?

Probably a long-shot.
But either way, thanks! i did think it was something to do with that data video id, as I was playing around with it for ages after I had posted this, feel like I came close a few times lol

***** This is seperate to the bbcode above. You do not need to wrap in bbcode tags or even create the bbcode replacement in admincp, just add the tiktok url to your post like you would any other link. *****


This will add video from full URL.
Example:

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

Note: This is a plugin NOT product!

Admincp > Plugins & Products > Download / Upload Plugins > Import Plugin Definitions XML File

PinkMilk 21 May 2020 19:04

Delete me :(

Irishnotsane 21 May 2020 22:04

wow thanks PinkMilk!

Sadly I can't seem to get this to work
I'm just presented with this:

http://puu.sh/FNfND/e5e58eab9c.jpg

Any ideas?

PinkMilk 22 May 2020 12:44

Quote:

Originally Posted by Irishnotsane (Post 2603019)
wow thanks PinkMilk!

Sadly I can't seem to get this to work
I'm just presented with this:

Any ideas?

Whats the url you used?

Irishnotsane 22 May 2020 14:48

I tested with a random URL I got from TikTok and with the URL you gave me above

PinkMilk 22 May 2020 15:20

1 Attachment(s)
Quote:

Originally Posted by Irishnotsane (Post 2603031)
I tested with a random URL I got from TikTok and with the URL you gave me above

I'm not sure everythings working fine here, tested on vb3 (which tbh thought this was for) and vb4, FF and Chrome, php 5.6 and 7+

Give this one ago, I've only changed the regex to be more specific but it might make a difference :confused:

Else my only thoughts are conflicting mods

PinkMilk 30 May 2020 18:09

Quote:

Originally Posted by formentera (Post 2603040)
That's happens when you enter the entire url (https://tiktok.com/etc). For other hand, when you enter just the ID of the video, works correctly.

Problem was fixed, it was human error, they used bbcode when not needed, see added notice in post #4 :up:

Prince 10 Jun 2020 02:13

Can someone help with install instructions for this please?

PinkMilk 12 Jun 2020 22:07

2 Attachment(s)
Quote:

Originally Posted by Prince (Post 2603252)
Can someone help with install instructions for this please?

Download xml file from This Post, now from admincp click on each of these from the side menu:

Admincp > Plugins & Products > Download / Upload Plugins

Then under the Import Plugin Definitions XML File section click browse button and upload XML file, thats it, your done :)
(see attachments for visuals).

Now all your members need to do in paste a TikTok url in their post and the plugin will do the rest, no need for bbcode tags.

Prince 12 Jun 2020 23:11

Quote:

Originally Posted by PinkMilk (Post 2603263)
Download xml file from This Post, now from admincp click on each of these from the side menu:

Admincp > Plugins & Products > Download / Upload Plugins

Then under the Import Plugin Definitions XML File section click browse button and upload XML file, thats it, your done :)
(see attachments for visuals).

Now all your members need to do in paste a TikTok url in their post and the plugin will do the rest, no need for bbcode tags.

Thank you, that worked perfectly.


All times are GMT. The time now is 08:46.

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.