Blog

All posts by Aaron Jorbin

I'm a web developer with a passion for standards, accessibility and open source software.

AddThis for WordPress 2.0.1 and Customizing Our WordPress Plugin

I just pushed live the 2.0.1 release of our WordPress plugin. In addition to a handful of bug fixes and theme compatibility issues, we’ve added a couple of filters to make it easier for you to customize your plugin. For example, it’s now easy to implement a custom toolbox. All you need to do is include a filter (learn more about how WordPress uses filters) in your theme’s functions.php file or an additonal plugin that you create. The following filters are available:

  • addthis_above_content – For the sharing buttons above the content
  • addthis_below_content – For the sharing buttons below the content
  • addthis_sidebar_style_output – For the widget sharing style

For example if you want to have three preferred services followed by the pillbox style share counter above the content, you can use:

add_filter('addthis_above_content', 'addthis_new_above_content');
function addthis_new_above_content()
{
return '<div class="addthis_toolbox addthis_default_style" %s > <a class="addthis_button_preferred_1"> <a class="addthis_button_preferred_2"> <a class="addthis_button_preferred_3"> <a class="addthis_counter addthis_pill_style"> </div>';
}

One thing to notice with this is the inclusion of %s in the container div. This allows the plugin to set the title and url for the specific post you are viewing.

Here at AddThis we love your feedback. If there are any more bugs you encounter or changes you would like to see, please don’t hesitate to visit our support forums.

Introducing AddThis for WordPress 2.0

We’re proud to introduce version 2.0 of our plug-in, AddThis for WordPress. WordPress has a mission to make it easier for anyone to publish content, while AddThis has a mission to make it easier for everyone to share content, so it only seems natural that we contribute a high quality plug-in for WordPress.

Choose the sharing widget that works best for you
Choose the sharing widget that works best for you

The updated plug-in features a number of enhancements from the last version. First, you’ll notice a redesigned settings page. This page now allows you to select from our most popular sharing tools, including multiple sizes of toolboxes, the share counter, and the pill style Like, Tweet, Share counters. You now can also easily place your sharing widget either above the content, below the content, or if you want to do what our research says is the best way to increase your number of shares, both.

You’ll also notice a preview button at the bottom of the options page that works just like the WordPress theme selector. Click preview and see how the selected options look without needing to do the save/reload the front end cycle.

The next feature you’ll notice is an updated dashboard widget that gives you a quick insight into how your content is being shared. You’ll see the share count, click count and viral lift for the past day, week and month. You’ll also see a quick visual overview of the top services people you to share your content, and the top ones at bringing content back.

Get a snapshot of how your visitors are sharing your content

Finally, there are numerous bug fixes and enhancements. We would love to improve our sharing plug-in even more. Have a feature that you would really like? Comment below and we will see about adding it to the road map. Download it today.

AddThis Developer Turns Into Speaking Machine

I’m excited to announce that I’m going to be giving three speeches in the week on completely different ends of the country. Some might call that crazy, but I’m going to call it a good time. Come say hi at either of these events and ask me any questions you have about AddThis and how to get the most out of our analytics or increase sharing on your site.

Later today I’ll be taking part in a panel discussion with the Web Content Mavens here in DC about WordPress and Drupal. Then this weekend I’ll be at WordCamp Phoenix where I’ll be giving two presentations. The first one, during the lightning talk session on Saturday, is about improving communication between developers and non-developers. I’ll then be speaking and helping run the dev day on Sunday. If you’re at either of these events, I’d love for you to come by and say hi. I’ll have some Clearspring stickers with me as well, all you have to do is ask for one.

Oh, and if you’re a WordPress user, you might want to stay tuned to this blog and our twitter stream . We’re going to have some exciting news for you very soon!

Using HTML 5 to Make the Analytics Charts

What happened when you attempted to access the old analytics on an iPhone
What happened when you attempted to access the old analytics on an iPhone.

When we decided to redesign and update our analytics, one of the first things we looked at was updating our charts. Our old charts were Flash-based and as such didn’t work on iPhones or iPads and tended to load a little slow. We wanted to fix that with this release.

I started by looking a wide range of options. The number of options for charts is staggering. In the end, we decided to implement a mixture of Flot for the daily line charts you see at the top of most pages, CSS for our bar charts, and Google Charts for our maps. Let’s see how we specifically implemented each of these.
Continue reading