Wedge

Public area => The Pub => Plugins => Topic started by: madfitz on March 18th, 2014, 12:04 AM

Title: Embed tweets
Post by: madfitz on March 18th, 2014, 12:04 AM
This is not a plugin - but it is a request I guess.

If I want to embed a tweet, Twitter gives me the code to place on my website. For example:

Code: [Select]
<blockquote class="twitter-tweet" lang="en"><p>Verbs should always agree with nouns. Rules is rules.</p>— Moose Allain (@MooseAllain) <a href="https://twitter.com/MooseAllain/statuses/444912811849056256">March 15, 2014</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

But it doesn't work in wedge...

<blockquote class="twitter-tweet" lang="en"><p>Verbs should always agree with nouns. Rules is rules.</p>— Moose Allain (@MooseAllain) <a href="https://twitter.com/MooseAllain/statuses/444912811849056256">March 15, 2014</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

See?

Can anybody figure out a way to embed tweets?
Title: Re: Embed tweets
Post by: CerealGuy on March 18th, 2014, 09:12 PM
You cant embed html in a post or normally not ^^ But should be possible with a small plugin, i will have a look on it.

EDIT: Quick & Dirty version http://www.xup.in/dl,89763542/twitter_bbc.tar.gz/ Should have problems with multiple tweets in same post :^^;: You just need to insert https://twitter.com/MooseAllain/statuses/444912811849056256 in your post and normally the embedded twitter thing should appear.
(http://www0.xup.in/exec/ximg.php?fid=68257883)
Title: Re: Embed tweets
Post by: madfitz on March 18th, 2014, 11:45 PM
I like that (but your file link is broken).
Title: Re: Embed tweets
Post by: CerealGuy on March 18th, 2014, 11:59 PM
Why the hell was the link broken oO Uploaded it again...
http://www.xup.in/dl,89763542/twitter_bbc.tar.gz/
Title: Re: Embed tweets
Post by: madfitz on March 19th, 2014, 08:22 PM
That works perfectly. Thank you!