=== Simple Social Bookmarks === Contributors: dartiss Donate link: http://artiss.co.uk/donate Tags: Social, Bookmark, Facebook, Twitter, Buzz, Google, Yahoo, AddThis, AddToAny, Bebo, Bitacoras, Blinklist, Blogger, BobrDobr, Current, Delicious, Digg, Email, Evernote, Fark, FriendFeed, Hatena, Identica, JumpTags, LinkedIn, Mixx, Mister Wong, MrWong, MyPlace, MySpace, Netvibes, Newsvine, Ning, Orkut, PDF Online, PDF, Ping.fm, Plurk, Posterous, Print Friendly, Print, Propeller, Reader, Read It Later, reddit, SlashDot, Squidoo, StumbleUpon, Technorati, Tumblr Requires at least: 2.0.0 Tested up to: 3.0.1 Stable tag: 2.0 Simple Social Bookmarks displays icons for various popular social bookmarks sites on your posts and/or pages. == Description == **Version 2 has different default bookmarking services - please be aware of this if you use the default set** The code for Simple Social Bookmarks should be added to the bottom of appropriate post/page templates within your theme (and in the case of posts, within the loop). Here is an example... `` There are 4 parameters in total that can be specified, but all are optional. The first parameter is the URL that you wish the social sites to bookmark. If left blank (and this is probably the default for most people) it will use the URL of the current post or page. The second parameter is the text that is passed to Twitter (if you use it). If you don't specify anything then it will take you to your Twitter account and pre-fill in the status with "I'm currently reading xxx", where xxx will be the URL address of the page/post that you just came from. If, however, you'd like to define your own Twitter text, then you simply pass this as the second parameter. `%url%` must be specified within the sentence, as this specifies where you want the URL to go. You can also the tag `%title%`, which will show the post/page title in the Twitter text. So, in the example above, it will set the status to "Currently reading a blog post titled yyy - xxx", where xxx is the URL and yyy is the title. The third parameter is a style definition which applies to the bookmark icons. In the example above adds a 5 pixel padding to the left and right of each icon. Finally, the fourth parameter can contain a number of options, all of which are seperated by an ampersand. These options are as follows... **default=** : This should be 'on', 'off' or 'basic' and defines which social bookmarks should display by default. 'on' means all should display, 'off' means none should be displayed and 'basic' shows a basic few. Not specifying this sub-parameter will cause the basic set to be displayed. **iconfolder=** : By default, a set of icons in the plugin's folder will be used (many of which have been kindly provided by komodomedia.com). If, however, you'd like to use your own icons then you will need to add a sub-folder in your theme folder and then use this parameter to specify the sub-folders name. In the above example, I am specifying a sub-folder named `24x24`. **nofollow=** : If specified as `YES` this will turn on the `NOFOLLOW` attribute for the links. By default, this is switched off. **target=** : Allows you to override the standard `TARGET` of `_BLANK`. There are also options for EACH of the social bookmarking services allowing you to specify whether they should be turned on or off. So, for example, to turn Digg off, you would specify `digg=off`. So, as a further example, if you ONLY wanted the Delicious and Digg bookmarks to appear, it would be best to specify the `default` as `off` and then turn Delicious and Digg on individually, like so... `` The full list of social bookmark services are as follows... AddThis, AddToAny, Bebo, Bitacoras, Blinklist, Blogger, BobrDobr, Current, Delicious, Digg, Email, Evernote, Facebook, Fark, FriendFeed, Google Bookmarks (Google), Google Buzz (GoogleBuzz), Hatena Bookmarks (Hatena), Identica, JumpTags, LinkedIn, Mixx, Mister Wong (MrWong), MyPlace, MySpace, Netvibes, Newsvine, Ning, Orkut, PDF Online (PDF), Ping.fm, Plurk, Posterous, Print Friendly (Print), Propeller, Google Reader (Reader), Read It Later (ReadItLater), reddit, SlashDot, Squidoo, StumbleUpon, Technorati, Tumblr, Twitter, Yahoo! Bookmarks (Yahoo) and Yahoo! Buzz (YahooBuzz). If an alternative name is specified in brackets, this is the one that should be used in the aforementioned options. The basic set of services are as follows... Delicious, Digg, Email, Facebook, LinkedIn, Print Friendly (Print), reddit, StumbleUpon and Twitter. Here is a further version of the original example, but this time with a check to confirm that the plugin is active... `` `` `` It's also possible to add the Social Bookmarks to your WordPress feed. Open up your `functions.php` file within your theme folder and add the following code... `".simple_social_bookmarks('','Currently reading a blog post titled %title% - %url%','padding-left: 2px; padding-right: 2px','service=is.gd&iconfolder=16x16')."

";` ` }` ` return $content;` `}` `add_filter('the_content', 'insertRss');` `?>` Obviously, you will need to modify the parameters that are passed to the Simple Social Bookmarks plugin, to make it appropriate for yourself. In the above example you may notice that I'm using smaller icons with a small padded space between them. == URL Shortening == URL Shortening can be used with Twitter. However, you must install the [Simple URL Shortener](http://wordpress.org/extend/plugins/simple-url-shortener/ "Simple URL Shortener") plugin to be able to achieve this. If URL Shortening is in use, there are a further 5 options that can be added to the 4th parameter... **service=** : This allows you to specify a URL shortening service to be used with the URLs. See the documentation for Simple URL Shortener for a complete list of those that are available. **cache=** : Specify as `NO` to turn off the caching of short URLs **apikey=**, **login=**, **password=** : These allow optional URL shortening options to be specified (see the documentation for Simple URL Shortener for further details) == Screenshots == 1. An example of Social Bookmarks being displayed on the [artiss website](http://www.artiss.co.uk "artiss"). == Installation == 1. Upload the entire `simple-social-bookmarks` folder to your `wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. There is no options screen - configuration is done in your code. 4. Install the [Simple URL Shortener](http://wordpress.org/extend/plugins/simple-url-shortener/ "Simple URL Shortener") plugin if you wish to use URL shortening. == Frequently Asked Questions == = The Social Bookmarking site is not appearing = If you've not specified `default=on` then new sites will not appear - you will need to specifically switch it on. Here's an example of switching on Google Buzz... `` = You haven't included my favourite Social Bookmarking service = I didn't want to maintain a large number of, mainly, smaller and lesser used services. I have therefore only included those that I believe are the most popular. If, however, you think I have missed one of great importance, please get in contact with me and plead your case! = How can I get help or request possible changes = Feel free to report any problems, or suggestions for enhancements, to me either via [my contact form](http://www.artiss.co.uk/contact "Contact Me") or by [the plugins homepage](http://www.artiss.co.uk/simple-social-bookmarks "Simple Social Bookmarks"). == Changelog == = 1.0 = * Initial release = 1.1 = * Now XHTML compliant = 1.2 = * Fixed issue with ampersands (and probably other characters) in the blog title causing linking issues * Added su.pr as another URL shortening service = 1.3 = * Updated default icons to a set kindly provided by komodomedia.com (With the exception of the AddToAny and Ping.FM icons) * Added AddToAny, Ping.fm, Google Bookmarks, Google Reader and email to the list of providers. By default these will be turned off so as to not to suddenly appear on existing installs and cause problems! * Further improvement to blog title issues * Removed URL shortening on all services with the exception of Twitter, as it was not required and may have even have caused some issues (such as some services not being able to get hold of thumbnails and general page content). * Now using [Simple URL Shortener](http://wordpress.org/extend/plugins/simple-url-shortener/ "Simple URL Shortener") plugin to provide URL shortening * Caching of short URLs now takes place providing large performance improvements * NOFOLLOW and TARGET parameters added * Compressed default icons = 1.4 = * Removed caching, as this is now handled by [Simple URL Shortener](http://wordpress.org/extend/plugins/simple-url-shortener/ "Simple URL Shortener"). Please ensure you update to the latest version of this plugin to ensure that caching continues to work - once you know it does, the cache folder for this plugin can be removed. * Added additional parameter - cache= * Tidied code and updated shared functions = 1.5 = * Use different encoding for email links * Added Technorati to the list of providers. By default this will be turned off (including using the default=on option) so as to not to suddenly appear on existing installs. = 1.6 = * Added Yahoo! Bookmarks, Yahoo! Buzz and Google Buzz to the list of providers. By default these will be turned off (including using the default=on option) so as to not to suddenly appear on existing installs. = 1.7 = * Icon folders are now stored in the theme directory, to prevent them from being deleted whenever the plugin is updated * API key and user details can now be passed to shortening services * Added new 'default' parameter setting - this should not impact existing installation unless you've explicitly requested 'default=on'. = 1.8 = * Added new, official, link for Google Buzz = 2.0 = * Re-written base code * Added LOTS of new social services * Help file re-written == Upgrade Notice == = 1.5 = * Upgrade if you use the email option, as this will fix a problem with the text encoding * Also added Technorati as a social bookmarking service = 1.6 = * Upgrade if you want to use the Yahoo! Bookmarks, Yahoo! Buzz or Google Buzz social bookmarking services = 1.7 = * Upgrade if you want to use a shortening service that requires an API key or logon = 1.8 = * Upgrade is you use the Google Buzz service = 2.0 = * Upgrade for new services and to benefit from improved coding