Tech Note: The Retweet Button

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

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.

Pump up the bass, Qusay.

TwitterFacebook
LGF Pages
Recent Pages

Daniel Ballard
Iran Hit With 'Flame,' the Most Sophisticated Spy Virus Ever - May. 30, 2012
1 hour, 48 minutes ago
Views: 43 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Romney and Trump
3 hours, 19 minutes ago
Views: 57 • Comments: 0
Tweets: 0 • Rating: 0

ggt
Leona's Sister Gerri
4 hours, 23 minutes ago
Views: 59 • Comments: 0
Tweets: 0 • Rating: 1

I AM BREITBART!
Seattle Manhunt Launched After Deadly Cafe Shootings, Carjacking
6 hours, 33 minutes ago
Views: 100 • Comments: 1
Tweets: 0 • Rating: 2

Shiplord Kirel
Dragon to Depart Station Thursday
7 hours, 44 minutes ago
Views: 53 • Comments: 0
Tweets: 0 • Rating: 1

Randall Gross
Citadel Malware Delivers Reveton Ransomware in attempts to extort money
8 hours, 37 minutes ago
Views: 140 • Comments: 0
Tweets: 0 • Rating: 3

Channeling Confucius
From the previous Diamond Jubilee: Kipling's 'Recessional'
9 hours, 8 minutes ago
Views: 88 • Comments: 0
Tweets: 0 • Rating: 0

Bob Dillon
REVEALED: Hundreds of Words to Avoid Using Online if You Don't Want the Government Spying on You
10 hours, 12 minutes ago
Views: 213 • Comments: 3
Tweets: 0 • Rating: 2

Learned Mother of Zion
Native Americans Have Jewish DNA!
10 hours, 32 minutes ago
Views: 331 • Comments: 10
Tweets: 1 • Rating: 8

Eclectic Infidel
Mitt Romney for a better Amercia!
10 hours, 37 minutes ago
Views: 150 • Comments: 1
Tweets: 0 • Rating: 0

 Frank says:

Did everyone hear the great news today? Jimmy Swaggart, under investigation. One day every one of those cocksuckers will get caught.