Earlier today, I took my blog offline while I experimented with the new Tweet button from Twitter and though it does look nice, I still prefer Topsy!

Saying that though I did have some fun with updating the code that is used to creat the new button from Twitter, yes I know my coding skills are nothing to boast about but if they work, that’s fine by me ;)

Anyhow this is the code that I grabbed from the Twitter Goodies page for adding the Twitter Button on my blog:

<a href=”http://twitter.com/share” data-count=”horizontal” data-via=”BlazingMinds” data-related=”RemBeatZ:For some awesome music”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>

This will place a Tweet Button like this on my blog. After adding the code I noticed that I had a few problems when the Tweet Button was on the main page of the blog, as it would only tweet the home url and not the posts url. So after plenty of playing around I updated it to.

<a href=”http://twitter.com/share” data-count=”horizontal” data-url=”<?php the_permalink(); ?>” data-text=”<?php the_title(); ?>” data-via=”BlazingMinds” data-related=”RemBeatZ:For some awesome music”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>

Now that seemed to have done the trick, what next?

My next idea was to use the post author in the Tweet Button for the related option, which seemed a bit daunting at first, but then I remembered that I had the coding already which was available in the Author box on the bottom of the blog posts, so the finished code ended up looking like this.

<a href=”http://twitter.com/share” data-count=”horizontal” data-url=”<?php the_permalink(); ?>” data-text=”<?php the_title(); ?>” data-via=”BlazingMinds” data-related=”<?php the_author_meta( ‘twitter’ ); ?>:Author of the post”>Tweet</a><script type=”text/javascript” src=”http://platform.twitter.com/widgets.js”></script>

Replacing the information in the data-related variable with php the_author_meta( ‘twitter’ ); ?>:Author of the post now pulls in the information from the authors bio, where I had added an extra field for the authors twitter name, so now when the Tweet Button is used once the tweet has been posted it will now recommend the author of the post.

So why haven’t I implemented the new button on Blazing Minds?

Well to put it in simple terms, I don’t like it, it’s good to play around with, but as I said earlier I do prefer Topsy, I noticed that the counts were different between the two Tweet Buttons, with Topsy giving a more correct amount of tweets that the Twitter button, also Topsy has that great little extra of adding a “Top” section to the Tweet Button showing how popular your tweet is with influential tweeters ;)

Now before anyone starts commenting and saying, this isn’t working or that isn’t working, don’t! As I mentioned earlier I’m NOT a coder, never having been I was just simply experimenting with the options of the new Twitter Button, so please don’t come asking me if it doesn’t work on your site!

If you enjoyed reading this post, then please remember to post a comment, Subscribe to my RSS feed.


Protected by Copyscape Plagiarism Check Software

No related posts.

Tags: , , , ,

Written by Karen (965) Published Articles

Karen is founder of the Blazing Minds blog and avid blogger of all sorts of interesting and odd things. She is also the Apollo Rhyl Film Reviewer and also a keen music producer and founding member of the electronic music duo Remergence...

Link up with Karen at @BlazingMinds | | Facebook

 
 
22 Responses to “Experimenting With The New Twitter Button!”
  1. John Sullivan
    Twitter:
    says:

    That is weird because I had almost the same exact experience and removed it. I like you use Topsy. Whenever I use anything I only ask myself one ? does this bring people to my site or take them away :)
    Stumbled :)

  2. HealthyOpal
    Twitter:
    says:

    Heya Karen,
    I haven’t tried Topsy. The Tweetbutton is the buzz in the twitter community. Yesterday, I finally got around the new button on one of my newer sites, Celebrate Life.

    I didn’t grab the code to install it, but I did snap up one of the WordPress Plug-ins that were floating around. I know I should simply add the code, and I will this week. I don’t like having too many Plugins.
    HealthyOpal recently posted..Ginger- Amazing health benefits of ginger

    • Karen
      Twitter:
      says:

      By adding the code for the tweet button instead of using “another” wordpress plugin, you would have more control over it, plus too many plugins play havoc on a site sometimes, specially when it come to updating wordpress itself ;)

  3. Ninja Saga
    Twitter:
    says:

    I’ve learned something new here. Let me try that one and report back.
    Ninja Saga recently posted..Sharingan Eye Variations

  4. cameron says:

    That is interesting that you get more accurate statistics from Topsy rather than from Twitter it’s self. I am trying really hard not to use twitter because I am already easily distracted. But the more and more I go around the net, it looks as if that will be in impossible feet. How do you manage your time with twitter constantly going off?

  5. Wayne Howard
    Twitter:
    says:

    I started using the button almost as soon as it was released and I’m loving it. I used TweetMeme before and I think the official button does a much better job at integrating the service. I especially love how it suggests that people follow me after they are done tweeting. That’s really useful to get more followers.
    Wayne Howard recently posted..Sunday Motivational 3- 7 Ways To Be Great!

  6. Kathy
    Twitter:
    says:

    I don’t use any of the Twitter buttons on my blog. I just use the Share This button and another Sharing button from Onlywire. From an visitor’s perspective though, I like that you use the Topsy button. I prefer it over TweetMeme. So if that matters or not, you have my opinion.
    Kathy recently posted..The Ultimate Method For Making Money Online

  7. Tinh
    Twitter:
    says:

    Thanks for great tips and I am using Digg Digg to to this easily :-)
    Tinh recently posted..Top 5 Affiliate Networks That Can Boost Your Sales

  8. Dennis Edell
    Twitter:
    says:

    I already use and like Topsy, so I won’t even try. I trust your judgment so you saved me some testing time; much appreciated. :)
    Dennis Edell recently posted..Update 1 – What DEDC is About

  9. Kissie
    Twitter:
    says:

    Ah, Twitter Goodies’ page. That’s a goody in itself!

    Thanks, Karen.

  10. Will
    Twitter:
    says:

    Hi Karen,

    Only just found out about the new twitter buttons yesterday –
    was never quite sure why they didn’t do it earlier

    Cheers
    Will
    P.S. Glad to see you’re a George Carlin fan too – what a man
    Will recently posted..Noaspa News – 18082010

  11. john
    Twitter:
    says:

    You are not a coder Karen but you are becoming one! Be careful :D

  12.  
Leave a Reply


Comment Policy Important Please Read

Please be aware that all comments made are moderated and SPAM will not be tolerated, make sure you use your real name (NOT A WEBSITE NAME), you can also utilise (YOURNAME @ BLOG NAME), if we deem a comment to be SPAM then it will be edited or deleted! SPAMMERS are not welcome here! Comments without a Gravatar may also be deleted! Comments without a first name will NOT be approved!

Editors have the right to moderate or delete any comment they choose.

CommentLuv badge