Sign in to follow this  

Embed tweets?

Recommended Posts

MightyJordan    4,710

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. :)

Share this post


Link to post
Share on other sites
Yorak    415

For the love of God, no. Twitter is getting so bloody annoying these days. Don't people have something better to do with their time?

  • Like 2

Share this post


Link to post
Share on other sites
Steven P.    8,535

There doesn't seem to be a BBCode replacement that I can find anywhere, so :p

Share this post


Link to post
Share on other sites
Steven P.    8,535

One of our own members helped with this :D http://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

Share this post


Link to post
Share on other sites
Calum    815

This is a great idea. Thanks for pointing it out, MightyJordan! I'm happy to see it's already possible.

  • Like 1

Share this post


Link to post
Share on other sites
Steven P.    8,535

K it's now added to the Editor, select the t button (next to quote) in the editor toolbar and the option "Tweet" or just use the tags (which is quicker).

Share this post


Link to post
Share on other sites
what    324

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

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

Share this post


Link to post
Share on other sites
Steven P.    8,535

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

Share this post


Link to post
Share on other sites
+Frank B.    7,099

Works for me (using Chrome 22dev):

capture.png

Share this post


Link to post
Share on other sites
Steven P.    8,535

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.

Share this post


Link to post
Share on other sites
what    324

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.

Share this post


Link to post
Share on other sites
Haggis    981

Glad i could help

it looks good too :)

  • Like 1

Share this post


Link to post
Share on other sites
Steven P.    8,535

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 ;)

Share this post


Link to post
Share on other sites
MightyJordan    4,710

Thanks for that, Neobond! :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.