Add Tweet This Without a Plugin!

byebyetweetthis

****************UPDATE****************

I’ve created a MUCH BETTER VERSION here.

****************UPDATE****************

I have a few goals in mind when I design blogs and one of them is speed. It have to make the blog as fast-loading as humanly possible. I don’t want anyone to have to wait for anything, if I can help it.

The second goal is aesthetic appeal and simplicity in that design schematic. I don’t like things that “break” the flow of the design aesthetic or that “interrupt” the experience. Again, if I can help it.

Tweet This, a very nice WordPress Plugin, has been breaking both of these rules… but no more. I’ve decided to get rid of it completely and replace it with a very simple and clean design aesthetic, right where it should be.

tweet_thisSee? Very nice. I like it.

I’ve now completely gotten rid of what I consider a “bloated” and “heavy” plugin and with one small line of code have provided my readers with the same functionality without having this honking “TWEET THIS” image to detract from the experience.

That’s speed. That’s design aesthetic. That’s appeal. That’s smoothe. That’s… uh. epic?

Puaha.

Want to do the same thing? Just add this line of code in your single.php file (inside the “loop”) and you’re good to go.

<a href=”http://twitter.com/home?status=I just read <?php the_permalink(); ?> on www.Human3rror.com!” title=”Send this Post to Twitter!” target=”_blank”>Tweet This Post on Twitter!!!</a>

Word.

Filed under: Technology, Wordpress | Tagged: Technology, Wordpress

28 Responses to “Add Tweet This Without a Plugin!”

  1. fmckinnon February 27, 2009 at 3:05 PM #

    John,
    Cool – how does that work w/ the TweetSuite plugin (which though I have installed has never seemed to ever work, for whatever reason) … TweetSuite already has this "Be the first to tweet this post" … would you recommend ditching that, and just doing this? (especially since tweetbacks have yet to ever appear on my blog, even though I know they have been tweeted). Maybe the tweetback issue and the syncing issue w/ IntenseDebate are related. I dunno.

    • human3rror February 27, 2009 at 3:17 PM #

      tweetsuite is terrible.

      • fmckinnon February 27, 2009 at 3:20 PM #

        So, tell me how you REALLY feel! (de-activating and doing your thang now … it never worked for me regardless, plus, could never get an @reply or help from the developer, either)

        • human3rror February 28, 2009 at 9:53 AM #

          ;) puaha. i'm a nice guy, for serious!

      • Jim February 28, 2009 at 2:18 PM #

        tweetsuite sucked that first day i was sitting in an ocean of spam.i'd rather be in a bucket of BACON

    • human3rror February 28, 2009 at 9:53 AM #

      fred, do you have time for a friday 5 post sometime?

      • fmckinnon February 28, 2009 at 2:59 PM #

        Absolutely … hit me up via Twitter or IM

        • human3rror February 28, 2009 at 10:02 AM #

          can you send me your email? i'll post in the q's

    • Horror October 27, 2009 at 11:02 AM #

      I don’t think IntenseDebate has anything to do with it, but that’s just me. Tweetback has always been a problem for me.
      Hope you find a solution.
      Cheers!

  2. Jim February 27, 2009 at 3:09 PM #

    i'm hacking now

    • human3rror February 28, 2009 at 9:54 AM #

      you're a hacker extra-ordinaire.!

  3. fmckinnon February 27, 2009 at 3:37 PM #

    John – ok, so I did this, but my tweets are inserting the %20 for spaces – how can I prevent that – when you click my link, you get this: I%20just%20read%20http://www.fredmckinnon.com/myblog/2009/02/27/the...

    I know that %20 is code for a space … how can I not make that happen, since you have spaces in your code as well? Is this an encoding issue on my server?

    • human3rror February 28, 2009 at 9:53 AM #

      DOH! yeah. who's your host again fred?

    • fmckinnon February 28, 2009 at 2:59 PM #

      John, it's the company I owned and built for years, HPP Christian Web Solutinos – http://www.hppchristianhosting.com … I started it in my garage, and it was acquired about a year and a half of ago by hostek in Tulsa … still an awesome company. I know those servers inside and out, typicaly was running RHEL4 and Plesk 7 or Plesk 8 back then. I just don't have the keys to the boxes anymore, of course!

  4. Graham Brenna February 27, 2009 at 3:41 PM #

    probably a dumb question but what is the "loop"?

    • human3rror February 28, 2009 at 9:52 AM #

      wordpress.org… check out the docs!

  5. Ancoti February 27, 2009 at 6:03 PM #

    Want to do the same thing? Just add this line of code in your single.php file (inside the “loop”) and you’re good to go.

    If I actually knew what that meant I might try it.

  6. KC Clark February 28, 2009 at 1:05 AM #

    "LOOP" ? ? ? ?

  7. BeyondRandom February 28, 2009 at 2:53 AM #

    I have been using a similar code but I have mine saying this "Currently @beyondrandom reading (here is where I put the call for permalink). That in turn shows off my Twitter account to the "tweeters" followers. I have been reading your site for a few days now and Im become a big fan! Thanks for sharing! oh and P.S. I love the theme! lol

  8. human3rror February 28, 2009 at 2:45 PM #

    :) ! word up!

  9. human3rror February 28, 2009 at 9:47 AM #

    oh… the “loop” is the wordpress function call for the content of the post.

  10. human3rror February 28, 2009 at 2:50 PM #

    dude. you make me laugh. perhaps you need to migrate first…? i can help!

    ;)

    • Ancoti February 28, 2009 at 2:55 PM #

      We need to talk directly. I would do it, but I am concerned I would make my whole blog world crash down around me.

      • human3rror February 28, 2009 at 9:58 AM #

        dude. let's rock it.

        • Ancoti February 28, 2009 at 3:03 PM #

          You got my email. Drop me a line when it would be a good time to talk.

  11. mathew May 3, 2009 at 12:29 PM #

    Great.thx for your info

  12. Manhattan NY May 8, 2009 at 12:15 AM #

    I am just following steps of your post.It is ok for me.Great tip,thx a lot.

  13. linkbuildingservices May 8, 2009 at 2:50 AM #

    Useful info for me.thanks for sharing.

  14. NEW York May 12, 2009 at 12:40 PM #

    Nice.I don’t know there is a good way to add tweet without a plugin.

  15. interesting facts June 4, 2009 at 9:42 AM #

    haa cant believe they had a plugin for such a simple line of code – well its less stress on wordpress backend I guess

  16. Illusiv June 25, 2009 at 12:19 PM #

    You rock man, this is so much better then using a Wordpress plugin! Kudos!

  17. Tom Smith December 1, 2009 at 3:43 AM #

    Very helpful information!

Trackbacks/Pingbacks:

  1. ‘Tweet This’ Using TinyURL and NO Plugin v2.0 - March 4, 2009

    [...] 1.0 of “Tweet This Without a Plugin” was pretty awesome, but it wasn’t [...]

  2. When URL Shorteners Die … | FredMcKinnon.Com - July 4, 2009

    [...] error codes because of my “TweetThis” plugin.  (I just wasn’t able to get John’s TweetThis without a plugin to work on my server, [...]

Leave a Reply: