![]() |
Automatically embed tweet when user posts link (PHP)
I already have this plugin for youtube videos/vines/instagram etc but i'm struggling to get it to work with tweets.
PHP Code:
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 HTML Code:
<div> sorry if this is so confusing im just a tad baffled at the mo! :eek: |
Did you get it?
|
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 05:20 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|