Quantcast ShareThis Extension for BlogEngine.NET
Internet Blu
Internet Marketing, Book Reviews, and Web Randomness

ShareThis Extension for BlogEngine.NET

Sunday, 25 January 2009 09:31 by John Callaway

Add ShareThis to any page or post!

After the great success of the my first two BlogEngine.NET extensions (Digg Button Extensions for BlogEngine.NET and jQuery Extension for BlogEngine.NET) I decided to try one more.  Several of my coworkers and I have been using BlogEngine in our off hours.  Some of the latest discussions have been around the use of extensions and user controls to eliminate the need to make any other code modifications.  This lead me to create the following ShareThis extension.  Below you will find download and installation instructions.  If you have any questions please feel free to use the Contact Form.

Installation

Download the compressed file ShareThis_Extension_v1.0.zip, then:

  1. Extract the file.
  2. Copy ShareThis.cs into /App_Code/Extensions/ folder

Configuration

The component is completely configurable valuing the following mandatory attributes :

  • Publisher ID: Your ShareThis Publisher ID.
  • ShareThis File Location: The location of the ShareThis JavaScript extension.
  • ShareThis Style: At this time ShareThis Style options are Default and Rotate.
  • Character Set: ShareThis character set.
  • Tabs: Tabs to show.
  • Services: Which services to display by default.
  • HeaderBG: Background color of the ShareThis header.
  • InactiveBG: Background color of the inactive link(s).
  • InactiveFG: Foreground color of the inactive link(s).
  • LinkFG: Foreground color of active link(s).
  • OffsetLeft: Left offset of the tabs.
  • OffsetTop: Top offset of the tabs.
  • Popup: Popup true or false.
  • Embed: Embed true or false.
  • Position: Position to display ShareThis.
  • Insert in [P]ost, P[A]ges, [B]oth: Show ShareThis in Post, Pages, or Both.
  • CSS Style Code: Add CSS Style Code to change the display.

The extension will be loaded with default options.  Don't forget to change the Publisher ID!

Additional Resources

Download

ShareThis_Extension_v1.0.zip (2.15 kb) 

Please use the Contact Form to submit any bugs or feature requests.



Related posts



Comments

January 26, 2009 16:45

Midiman

I liked the Digg button, but ShareThis isn't as good as AddtoAny or AddThis. Personally I would like to see an AddtoAny extension! http://addtoany.com Thanks!

Midiman

January 26, 2009 20:08

John Callaway

Midiman, thanks for the comment. I'll look into creating an extension for one or both.

John Callaway

January 27, 2009 11:40

traffic & seo

A good new knowledge. I still not used Addthis yet too. So this one is still very new for me. But this is very interesting. I will try to use this to my blogs.

traffic & seo

February 4, 2009 11:40

Wayne

Good stuff. I find it facsinating how many of these damn things there are. I'm currently using the Tell a friend widget, which I like a lot. Seems pretty much the same as the ShareThis widget too.

Maybe I should just base which one I go with based on the color of the logo. lol...which one fits my theme best? haha

Wayne

July 23, 2009 02:15

Cheap optimization

Excellently written article, if only all bloggers offered the same content as you, the internet would be a much better place. Please keep it up!

Cheap optimization

July 27, 2009 02:09

mengembalikan jati diri bangsa

i think this is great extension

mengembalikan jati diri bangsa

Add comment


(Will show your Gravatar icon)  

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]





Live preview

March 10, 2010 23:57