Tech Note: The Retweet Button

Charles Johnsonfollow me on twitter
Technology • Sun Nov 1, 2009 at 1:22 pm PST • Views: 392

Our latest addition to The Blog codebase is a button to let you “retweet” an LGF article. “Retweeting” is a common way for people to spread interesting content around on Twitter. Since each article is already automatically posted to Twitter, your tweet is prefaced with the standard Twitter syntax to show that it’s a retweet from the LGF Twitter account, with the letters “RT’ for ReTweet, followed by the ‘@’ symbol and the username of the original tweetist: ‘RT @lizardoid’.

The code is basically John Resig’s Easy Retweet Button, with the CSS styles extracted into my main CSS file instead of embedded in the Javascript. This retweet function uses the LGF account with bit.ly, a URL shortener that tracks statistics; the number shown above the green Retweet button is the number of incoming clicks from the bit.ly URL for that article — in other words, the Twitter traffic for that article.

Right now, the Retweet button is only visible on the individual page for an article (either with or without comments) at the lower left of main article, next to the rating buttons.

UPDATE at 11/1/09 6:45:11 pm:

Retweet buttons are now on the front page, too, unless bit.ly lets me know the server load is too much.

Advertisement

206 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Wearing the watch that evolved from an explosion in a clock factory.

TwitterFacebook
LGF Pages
Recent Pages

MikeySDCA
American Community Survey: Why Republican Hate It.
46 minutes ago
Views: 23 • Comments: 0
Tweets: 0 • Rating: 1

researchok
'I Was Looking Forward to a Quiet Old Age': Instead, Etta Shiber, Helped Smuggle Stranded Allied Soldiers To Freedom
12 hours, 17 minutes ago
Views: 154 • Comments: 0
Tweets: 1 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
19 hours, 58 minutes ago
Views: 143 • Comments: 0
Tweets: 0 • Rating: 5

Eclectic Infidel
City College of San Francisco Budget Update
20 hours, 50 minutes ago
Views: 158 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
1 day, 1 hour ago
Views: 289 • Comments: 7
Tweets: 0 • Rating: 6

Aigle
National Geographic Traveler Veers Off Track
2 days, 1 hour ago
Views: 625 • Comments: 11
Tweets: 20 • Rating: -7

MichaelJ
Apple TV Slated to Debut in December?
2 days, 2 hours ago
Views: 255 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
2 days, 3 hours ago
Views: 324 • Comments: 1
Tweets: 0 • Rating: 4

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
2 days, 3 hours ago
Views: 558 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
2 days, 6 hours ago
Views: 301 • Comments: 3
Tweets: 0 • Rating: 5

 Frank says:

The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the tree of knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your mouth shut and hadn't asked any questions. -- Playboy Interview, April 1993