vBulletin Mods

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

Automatically embed tweet when user posts link (PHP)
by greigeh
23 Apr 2015 17:58

I already have this plugin for youtube videos/vines/instagram etc but i'm struggling to get it to work with tweets.


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

I only need help with lines (src="http://instagram.com/p/\\4/embed/")

and

(preg_replace('#(<a href="http://instagram.com)?/(embed/([-|~_0-9A-Za-z]+)|p\/([-|~_0-9A-Za-z]+)&?.*?)">(http://instagram.com)?/(embed/([-|~_0-9A-Za-z]+)|p\/([-|~_0-9A-Za-z]+)&?.*?)<\/a>#i')


below is an example of a link a user would post

https://twitter.com/greigeh/status/590850852161740801

but the script will run with the following html/javascript


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

So all I really need to know is how to ignore the underlined part of a posted link and place it into this plugin, does that make sense?

sorry if this is so confusing im just a tad baffled at the mo! :eek:

dany_danay 20 May 2018 08:56

Did you get it?

lacidious 11 Jul 2019 03:18

Did you figure this out? And also, how do I set this up for Vine and Instagram? Thanks!


All times are GMT. The time now is 10:59.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, 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.