Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Apr 2020, 20:43
Irishnotsane Irishnotsane is offline
 
Join Date: Apr 2012
Embed TikTok

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
Reply With Quote
  #2  
Old 22 Apr 2020, 01:59
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
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.
Attached Images
File Type: jpg tiktok.jpg (49.0 KB, 25 views)

Last edited by PinkMilk; 22 Apr 2020 at 02:33.
Reply With Quote
  #3  
Old 22 Apr 2020, 09:30
Irishnotsane Irishnotsane is offline
 
Join Date: Apr 2012
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
Reply With Quote
  #4  
Old 20 May 2020, 21:43
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Originally Posted by Irishnotsane View Post
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
Attached Files
File Type: xml TikTok_Embed.xml (644 Bytes, 13 views)

Last edited by PinkMilk; 23 May 2020 at 21:48. Reason: So what if I don't know what "Armageddon" means? It's not the end of the world.
Reply With Quote
  #5  
Old 21 May 2020, 19:04
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Delete me

Last edited by PinkMilk; 21 May 2020 at 19:13. Reason: We live in a society where pizza gets to your house before the police.
Reply With Quote
  #6  
Old 21 May 2020, 22:04
Irishnotsane Irishnotsane is offline
 
Join Date: Apr 2012
wow thanks PinkMilk!

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



Any ideas?
Reply With Quote
  #7  
Old 22 May 2020, 12:44
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Originally Posted by Irishnotsane View Post
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?

Last edited by PinkMilk; 22 May 2020 at 12:45. Reason: Two fish are in a tank. One says, ‘How do you drive this thing?’
Reply With Quote
  #8  
Old 22 May 2020, 14:48
Irishnotsane Irishnotsane is offline
 
Join Date: Apr 2012
I tested with a random URL I got from TikTok and with the URL you gave me above
Reply With Quote
  #9  
Old 22 May 2020, 15:20
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Originally Posted by Irishnotsane View Post
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

Else my only thoughts are conflicting mods
Attached Files
File Type: xml TikTok_Embed_plugin.xml (687 Bytes, 7 views)

Last edited by PinkMilk; 22 May 2020 at 15:21. Reason: I’m reading a book about anti-gravity. It’s impossible to put down.
Reply With Quote
  #10  
Old 23 May 2020, 19:17
formentera formentera is offline
 
Join Date: Mar 2019
Originally Posted by Irishnotsane View Post
wow thanks PinkMilk!

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



Any ideas?
Originally Posted by PinkMilk View Post
Whats the url you used?
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.
Reply With Quote
  #11  
Old 30 May 2020, 18:09
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Originally Posted by formentera View Post
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

Last edited by PinkMilk; 30 May 2020 at 18:24. Reason: When you choke a smurf, what color does it turn?
Reply With Quote
  #12  
Old 10 Jun 2020, 02:13
Prince Prince is offline
 
Join Date: Oct 2001
Can someone help with install instructions for this please?
__________________
www.ironmagazineforums.com
Reply With Quote
  #13  
Old 12 Jun 2020, 22:07
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Originally Posted by Prince View Post
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.
Attached Images
File Type: jpg tiktokhow2.jpg (57.6 KB, 5 views)
File Type: jpg tiktok_Example.jpg (68.9 KB, 6 views)

Last edited by PinkMilk; 12 Jun 2020 at 22:13. Reason: Most people are shocked when they find out how bad I am as an electrician.
Reply With Quote
  #14  
Old 12 Jun 2020, 23:11
Prince Prince is offline
 
Join Date: Oct 2001
Thumbs up

Originally Posted by PinkMilk View Post
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.
__________________
www.ironmagazineforums.com
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed PHP in Templates filburt1 vBulletin 2.x Full Releases 58 14 Jan 2004 02:35



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 01:43.

Layout Options | Width: Wide Color: