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:
- Extract the file.
- 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.