Welcome to the HornSports Forum

By registering with us, you'll be able to discuss, share and private message with other members of our Texas Longhorns message board community.

SignUp Now!

Tweet Embed Option Added to Boards

  • Thread starter Thread starter HoldenCaulfield
  • Start date Start date
H

HoldenCaulfield

Guest
Today through a little programming on the forums we implemented the ability to embed tweets in your posts. There is no button available to to add (like you typically would an image, etc.) but it is simple to do so.

We all know how handy it is to be able to reference a tweet to help facilitate conversation and we hope this helps with that.

To embed a tweet in your post you simply need to embed the tweet id in between the "tweet tags. "

For example:

This is the url for a tweet from HornSports:

https://twitter.com/HornSports/status/277490878967332865

(if you do not know how to access the url of the tweet, click the "Details" link at the bottom of the tweet).

Now, in order for the tweet to render on the boards you only need to use the tweet ID. In this case the tweet id is the number 277490878967332865

Proper implementation would be like this:
 

[tweet='277490878967332865']

OR

[tweet=277490878967332865]

Which will look like this when you post:

— Twitter API (@twitterapi) November 7, 2011


 
====================================================

If you need to know how to get the tweet ID, here is a visual:

tweet_embed_screenshots.jpg
There ya go. Now you can say you learned a little bbcode today. Hook 'em!

 
Last edited:
— Twitter API (@twitterapi) November 7, 2011

!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");







 
[ tweet = 477128528916254720]

What the heck am I doing wrong? ??

 
Last edited by a moderator:
<blockquote class="twitter-tweet" lang="en"><p>Early Afternoon Update on Severe Weather Potential - Read more at <a href="http://t.co/kUwRx5t3T7">http://t.co/kUwRx5t3T7</a> <a href="https://twitter.com/search?q=%23txwx&src=hash">#txwx</a> <a href="http://t.co/5Z87S2qcA3">pic.twitter.com/5Z87S2qcA3</a></p>— Texas Storm Chasers (@TxStormChasers) <a href="https://twitter.com/TxStormChasers/statuses/477165900869926912">June 12, 2014</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
 
I did this one above just like I do when I'm on Horns247. Click on "more" in the bottom right corner of a tweet, click "embed tweet, copy it then paste it. That's all there is to it over there. This isn't  working nearly as well.
 
Last edited by a moderator:
Shit, it quit working again.

 
Last edited by a moderator:
Back
Top Bottom