Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Apr 2015, 18:58
greigeh greigeh is offline
 
Join Date: Jan 2015
Real name: Greig David
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.


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!
Reply With Quote
  #2  
Old 20 May 2018, 09:56
dany_danay dany_danay is offline
 
Join Date: Jul 2009
Did you get it?
Reply With Quote
Reply



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 19:40.

Layout Options | Width: Wide Color: