Sign in to edit and +1 items.
Login required
Download

Social Sharing Plugin

(4)
Author(s) Antony Jones
Current Release 0.1   (1 year ago)
Grails Version 1.3.1 > *
Tags bookmarks  desirable-objects  javascript  sexy bookmarks  share  shareaholic  sharing  social  social media  social networking  web 2.0 
Dependency
compile ":social-sharing:0.1"
Last updated by eltonbowie 1 year ago
grails install-plugin social-sharing
Last updated by antony 1 year ago
The 100zakladok and bzzster services are currently broken. See the FAQ for more details.

What does it do?

This plugin adds Shareaholic's 'Sexy Bookmarks' to your application, which allows your users to easily share your content onto nearly 90 social bookmarking/social networking sites, and presents this functionality in a friendly, discreet, and modern format.

For more information, see: http://sexybookmarks.shareaholic.com/

Usage

Usage is easy, place the following tag in the head section of your page.

<social:initialise />

Then, add the following to your page:

<social:bookmarks permaLink="http://www.example.com/my/post" />

Tag Parameters

Available parameters to the <social:bookmarks> tag are:

  • permaLink : The permanent link to your article (required)
  • title : The title of your article (required)
  • slogan : The scribbly red text above your bookmarks, to pick a different slogan, see the FAQ for options.
  • include : A comma-separated list of bookmarks to include, all others will be excluded.
  • exclude : A comma-separated list of bookmarks to exclude, all others (at least, those enabled in your Config.groovy) will be included.
  • teaser : A short 'teaser' for your article
  • yahooCategory : The yahoo category for your article (only used by yahoo)
  • yahooMediaType : The yahoo 'media type' (only used by yahoo)
  • summary : Like the teaser, but slightly longer.
  • siteName : Your site name
  • twitterCategory : The 'twittley' category (only used by twittley)
  • tags : Tags your URL falls under (only used by twittley)
  • from : The 'source' attribute (only used by LinkedIn)
Of course, that usage is very simplistic, and most people don't want all 87 different social bookmarking services in their application! Try restricting it to just the services you want as follows:

<social:bookmarks include="digg, linkedin, facebook" />

or, take most of the plugins but just exclude a few:

<social:bookmarks exclude="gmail, plaxo, springpad, virb, box" />

Configuration

The best way to configure the service list though is via configuration. Put the following in your Config file:

sexy {
 bookmarks {
  enabled {
   yourservicename = 'true'
   yourotherservicename = 'false'
  }
 }
}

Where 'yourservicename' and 'yourotherservicename' are the names of the services you'd like to enable/disable. A full list is available in the FAQ.

To disable a service so it wont appear, use 'false', to enable it, use 'true'. You can use include="" and exclude="" in the social:bookmarks tag itself to override these values on a per-article basis.

Last updated by antony 1 year ago
What services are available?
  • scriptstyle
  • blinklist
  • delicious
  • digg
  • diigo
  • reddit
  • yahoobuzz
  • stumbleupon
  • technorati
  • mixx
  • myspace
  • designfloat
  • facebook
  • twitter
  • mail
  • tomuse
  • comfeed
  • linkedin
  • newsvine
  • googlebookmarks
  • googlereader
  • googlebuzz
  • misterwong
  • izeby
  • tipd
  • pfbuzz
  • friendfeed
  • blogmarks
  • twittley
  • fwisp
  • bobrdobr
  • yandex
  • memoryru
  • 100zakladok
  • moemesto
  • hackernews
  • printfriendly
  • designbump
  • ning
  • identica
  • xerpi
  • techmeme
  • sphinn
  • posterous
  • globalgrind
  • pingfm
  • nujij
  • ekudos
  • netvouz
  • netvibes
  • webblend
  • wykop
  • blogengage
  • hyves
  • pusha
  • hatena
  • mylinkvault
  • slashdot
  • squidoo
  • propeller
  • faqpal
  • evernote
  • meneame
  • bitacoras
  • jumptags
  • bebo
  • n4g
  • strands
  • orkut
  • tumblr
  • stumpedia
  • current
  • blogger
  • plurk
  • dzone
  • kaevur
  • virb
  • box
  • oknotizie
  • bonzobox
  • plaxo
  • springpad
  • zabox
  • viadeo
  • gmail
  • hotmail
  • yahoomail
  • bzzster
What third party code does this plugin use?

Click handler for SexyBookmarks Credit: Phong Thai Cao (http://www.JavaScriptBank.com)

JQuery Credit: The JQuery project (http://www.jquery.org)

Sexy Bookmarks (of course!) Credit: http://www.shareaholic.com/tools/wordpress/credits

Why don't 100zakladok or bzzster work?

They are special cases and need more work. I expect to have them running in 0.2

How do I get the slogans (red scribbles) above my links?

Easy, use the parameter 'slogan'.

Options available are:

  • sexy
  • caring
  • caring-old
  • love
  • wealth
  • enjoy
  • german
  • knowledge
A blank slogan parameter will result in… you guessed it! No slogan.
Last updated by antony 1 year ago