Tech Note: The Retweet Button

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

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? Account Settings 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

► LGF Hits

► Resources

► Never Forget

► Statistics

► 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.

Lost and found.

TwitterFacebook
LGF Pages
Recent Pages

Bob Levin
CultureLab: Medicine for Me, Not for the Crowd
12 minutes ago
Views: 6 • Comments: 0
Tweets: 0 • Rating: 0

Bob Levin
Growing Up on a Farm Directly Affects Regulation of the Immune System, Study Finds
21 minutes ago
Views: 11 • Comments: 0
Tweets: 0 • Rating: 1

Bob Levin
B3 Time: Shirley Scott and Lockjaw Davis play a minor blues.
40 minutes ago
Views: 16 • Comments: 0
Tweets: 0 • Rating: 0

Bob Dillon
How Could Vietnam Happen? An Autopsy
46 minutes ago
Views: 15 • Comments: 0
Tweets: 0 • Rating: 1

Channeling Confucius
Study Reveals Majority of Suicides Occur While Trying to Put Fitted Sheet on Bed
4 hours, 1 minute ago
Views: 110 • Comments: 1
Tweets: 0 • Rating: 0

researchok
'Where Is Everybody Going? Guys? Guys?'
4 hours, 57 minutes ago
Views: 123 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Washington State Legislature Votes to Approve Same-Sex Marriage
4 hours, 58 minutes ago
Views: 74 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Mood of 'Despair' as Syria Bombards City of Homs for 5th Day
4 hours, 58 minutes ago
Views: 73 • Comments: 0
Tweets: 0 • Rating: 2

researchok
Canada Protests Russian Arms Support to Syria
4 hours, 58 minutes ago
Views: 92 • Comments: 0
Tweets: 0 • Rating: 2

researchok
Signs Build That Iran Sanctions Disrupt Food Imports
4 hours, 58 minutes ago
Views: 116 • Comments: 1
Tweets: 0 • Rating: 2

 Frank says:

Producing satire is kind of hopeless because of the literacy rate of the American public. -- A quote in response to criticism of "Jewish Princess" ("People" magazine, circa 1979)