Embed tweets?


Recommended Posts

I just stumbled upon the "Embed this Tweet" link on Twitter when you view individual tweets. There's options of HTML, a direct link, and what they call "Shortcode", which looks to be in the same format as BBCode, which is what's used here on Neowin...

[tweet https://twitter.com/Maffewgregg/status/236892620109008896]

So I'm just wondering would it be possible to add the ability to embed individual tweets into forum posts?

EDIT: For reference, this is what the embedded tweets look like: http://bleacherreport.com/articles/1287567-wwe-news-jtg-goes-on-twitter-tirade-about-current-locker-room-politics

I did search the forum before posting this, and there were no results, so if this has actually been suggested before, I apologise. :)

Link to comment
Share on other sites

One of our own members helped with this :D https://www.neowin.net/forum/topic/1099793-php-snippet-twitter-info-and-last-10-status/

To use:

[tweet]https://twitter.com/NeowinSteve/statuses/237116811357859841[/tweet]

I'll see if I can add a button to the forum editor as well, it's also being added to news. (We can already embed html in news, but it breaks on edit).

To see the tweet you must refresh the page after adding it in (own post) due to fast reply restriction, I'll see if there's a way around this.

  • Like 3
Link to comment
Share on other sites

Screen-Shot-2012-08-20-at-13.47.40.png

Great feature that. It turns a link to Twitter into a different link.

I see what you mean, the id method is better, because then proper links to tweets get preserved. OK.. will change it back.

Edit: nm proper links don't get changed if they aren't wrapped in the tweet tags. e.g.

Link to comment
Share on other sites

You probably need to ctrl+f5 and if you block 3rd party scripts, it wont work, what I see

post-2-0-58144700-1345467076_thumb.png

Yeah, Shellfish blocks it, and I've just see how many social network buttons you have on these forums now. That'll be staying on, then.

Link to comment
Share on other sites

Yeah, Shellfish blocks it, and I've just see how many social network buttons you have on these forums now. That'll be staying on, then.

Well at least it renders the URL properly for people that disable Javascript ;)

Link to comment
Share on other sites

This topic is now closed to further replies.