So, I have been trying out Twitter's new Follow buttons, even though browsing ZDNet.com, I observed that within their author bios, they've follow buttons for every author. Oddly enough, the button would change based on who the writer was. Here's a good example: http://www.zdnet.com/blog/btl/sony-predicts-32-billion-loss-following-psn-hacking-japan-earthquake.

I attempted copying exactly the same idea on my small blog LonePlacebo.com, with moderate success.

The code below is my author bio section with a couple PHP. I made use of some if claims to determine the author, also it did make the dynamic button when i was wishing for. However, additionally, it output the author's title two times in plain text.

    <?php if ( arras_get_option('display_author') ) : ?>
                    <div class="about-author clearfix">
                        <?php echo get_avatar(get_the_author_meta('ID'), 48); ?>
                        <h4>Written by: <?php the_author(); ?></h4>
                        <?php the_author_meta('description'); ?>
                        <!--check if author is Tony -->
                    <?php if (the_author() == "Tony Hue") : ?>
                        <a href="http://twitter.com/tonykhue" class="twitter-follow-button">Follow @tonykhue</a>
                        <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
                    <?php endif; ?>                     
                        <!--check if author is Joseph-->
                    <?php if (the_author() == "Joseph Chang") : ?>
                        <a href="http://twitter.com/ballinacup" class="twitter-follow-button">Follow @ballinacup</a>
                        <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
                    <?php endif; ?>                     
                    </div>
    <?php endif; ?>

Any help could be appreciated. Thanks!

Update I have attempted upgrading the code in order to permit more author's later on. The phone call to obtain_author_meta() within the up-to-date code below returns the data provided within the author's profile within the Twitter area. I would like the code to show a default Follow button to @loneplacebo when the author hasn't provided any Twitter info, but when they did, display a control button connecting for their Twitter account.

Problem though is when no Twitter account is supplied, the code gives return the default button not surprisingly. Any ideas how you can solve that one?

<?php if ( the_author_meta('twitter', $current_author->ID) ) : ?> 
          <!--if no Twitter info provided -->
         <a href="http://twitter.com/loneplacebo" class="twitter-follow-button">Follow @loneplacebo</a>
         <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>                      
<?php else : ?> 
          <!--else, link to author's twitter account-->
          <a href="<?php the_author_meta('twitter', $current_author->ID); ?>" class="twitter-follow-button">Follow @tonykhue</a>
              <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
<?php endif; ?>

Rather than the_author() use get_the_author(). the_author() prints the title, latter returns the title.