Difference: ShareMePlugin ( vs. 1)

Revision 12019-07-24 - TWikiGuest

Line: 1 to 1
Added:
>
>

Share-Me Plugin

<--
   Contributions to this plugin are appreciated. Please update the plugin page at
   http://twiki.org/cgi-bin/view/Plugins/ShareMePlugin or provide feedback at
   http://twiki.org/cgi-bin/view/Plugins/ShareMePluginDev.
   If you are a TWiki contributor please update the plugin in the SVN repository.
-->
Add a bar of icons to share a TWiki page on popular social media sites and bookmarking sites such as Digg, Facebook, StumbleUpon, Twitter.

Syntax Rules

Add %SHAREME% anywhere in a TWiki page or preferably in a TWiki skin:

Write this: Renders as: (if installed) Simulated example:
%SHAREME% %SHAREME{Delicious,Facebook,StumbleUpon,Twitter}%

Optionally, a list of social media sites (defined below) can be specified, such as:
%SHAREME{"Delicious, Facebook, StumbleUpon, Twitter"}%.

Social Media Sites

This table defines the social media sites. The following variables can be used in the URL column:

  • $link: Link of the TWiki topic
  • $title: Spaced out topic name
  • $summary: Topic summary
  • $site: Site host name (www.sprace.org.br)

Name Image URL
Delicious delicious.png http://delicious.com/post?url=$link&title=$title&notes=$summary
Digg digg.png http://digg.com/submit?phase=2&url=$link&title=$title&bodytext=$summary
E-mail email.png mailto:?subject=$title&amp;body=$link
Facebook facebook.png http://www.facebook.com/share.php?u=$link&t=$title
FriendFeed friendfeed.png http://www.friendfeed.com/share?title=$title&link=$link
Google Plus googleplus.png https://plus.google.com/share?url=$link
Google Bookmarks googlebookmark.png http://www.google.com/bookmarks/mark?op=edit&bkmk=$link&title=$title&annotation=$summary
LinkedIn linkedin.png http://www.linkedin.com/shareArticle?mini=true&url=$link&title=$title&source=$site&summary=$summary
Live live.png https://favorites.live.com/quickadd.aspx?marklet=1&url=$link&title=$title
MisterWong misterwong.png http://www.mister-wong.com/addurl/?bm_url=$link&bm_description=$title&plugin=soc
Mixx mixx.png http://www.mixx.com/submit?page_url=$link&title=$title
NewsVine newsvine.png http://www.newsvine.com/_tools/seed&save?u=$link&h=$title
Ping.fm ping.png http://ping.fm/ref/?link=$link&title=$title&body=$summary
Posterous posterous.png http://posterous.com/share?linkto=$link&title=$title&selection=$summary
Reddit reddit.png http://reddit.com/submit?url=$link&title=$title
RSS rss.png https://www.sprace.org.br/twiki/bin/view/TWiki/WebRss
Simpy simpy.png http://www.simpy.com/simpy/LinkAdd.do?href=$link&title=$title
Slashdot slashdot.png http://slashdot.org/bookmark.pl?title=$title&url=$link
StumbleUpon stumbleupon.png http://www.stumbleupon.com/submit?url=$link&title=$title
Technorati technorati.png http://technorati.com/faves?add=$link
Twitter twitter.png http://twitter.com/home?status=$title%20-%20$link
Yahoo! Bookmarks yahoomyweb.png http://bookmarks.yahoo.com/toolbar/savebm?u=$link&t=$title&opener=bm&ei=UTF-8&d=$summary
Yahoo! Buzz yahoobuzz.png http://buzz.yahoo.com/submit/?submitUrl=$link&submitHeadline=$title&submitSummary=$summary&submitCategory=science&submitAssetType=text

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, such as %SHAREMEPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Icon bar to share TWiki pages on popular social media sites such as Facebook, StumbleUpon, Twitter

  • Topic that defines the social media sites: (default: This topic)

  • Default site icons shown in %SHAREME%, subset of the ones defined in the Social Media Sites section:
    • Set DEFAULTSITES = Twitter, Delicious, Digg, Facebook, Google Bookmarks, LinkedIn, Reddit, StumbleUpon

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the TWiki server.

  • Download the ZIP file from the Plugin Home (see below)
  • Unzip ShareMePlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/ShareMePlugin.txt Plugin topic
    data/TWiki/ShareMePlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/ShareMePlugin.pm Plugin Perl module
    pub/TWiki/ShareMePlugin/*.png 16x16 pixel icons of social networking sites
  • Configure the Plugin:
    • Run the configure script to enable the plugin
    • Overload the plugin settings as needed. Do not change the plugin page, but create settings in the TWikiPreferences page. For example, to overload the DEFAULTSITES setting, create a SHAREMEPLUGIN_DEFAULTSITES in the TWikiPreferences page.
  • Test if the installation was successful: %SHAREME%

Plugin Info

Plugin Author: TWiki:Main.PeterThoeny, TWiki.org
Copyright: © 2010-2012 TWiki:Main.PeterThoeny
© 2010-2012 TWiki:TWiki.TWikiContributor
License: GPL (GNU General Public License)
Plugin Version: 2012-12-01
Change History:
<-- versions below in reverse order -->
 
2012-12-01: TWikibug:Item6962: Add Google+ share icon & link
2012-11-15: TWikibug:Item7020: Categorize SHAREME TWiki Variable
2011-07-10: TWikibug:Item6725: Change global package variables from "use vars" to "our"
2010-12-04: TWikibug:Item6616: Fix to use BASETOPIC instead of TOPIC when referencing topics. This allows to add SHAREME in an included topic, such as TopMenuSkinTopBar of TWiki:Plugins.TopMenuSkin
2010-06-06: XHTML validation fixes; moving CSS to HTML head using TWiki::Func::addToHEAD
2010-01-16: Doc fixes
2010-01-09: Initial version
TWiki Dependency: $TWiki::Plugins::VERSION 1.1
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.008
Benchmarks: GoodStyle 99%, FormattedSearch 100%, ShareMePlugin 100%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/ShareMePlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/ShareMePluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/ShareMePluginAppraisal

This plugin is inspired by Sociable plugin for WordPress. Some GPLed icons have been taken from that plugin.

Related Topics: VarSHAREME, TWikiPlugins, DeveloperDocumentationCategory, AdminDocumentationCategory, TWikiPreferences

META FILEATTACHMENT attachment="delicious.png" attr="h" comment="" date="1262853889" name="delicious.png" path="delicious.png" size="103" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="digg.png" attr="h" comment="" date="1262853914" name="digg.png" path="digg.png" size="223" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="email.png" attr="h" comment="" date="1262855502" name="email.png" path="email.png" size="823" user="TWikiContributor" version="2"
META FILEATTACHMENT attachment="facebook.png" attr="h" comment="" date="1262853956" name="facebook.png" path="facebook.png" size="149" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="linkedin.png" attr="h" comment="" date="1262853978" name="linkedin.png" path="linkedin.png" size="674" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="reddit.png" attr="h" comment="" date="1262854005" name="reddit.png" path="reddit.png" size="645" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="stumbleupon.png" attr="h" comment="" date="1262854024" name="stumbleupon.png" path="stumbleupon.png" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="technorati.png" attr="h" comment="" date="1262854043" name="technorati.png" path="technorati.png" size="283" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="twitter.png" attr="h" comment="" date="1263277220" name="twitter.png" path="twitter.png" size="503" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="googlebookmark.png" attr="h" comment="" date="1262854072" name="googlebookmark.png" path="googlebookmark.png" size="758" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="googleplus.png" attr="h" comment="" date="1354409903" name="googleplus.png" path="googleplus.png" size="694" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="live.png" attr="h" comment="" date="1262931398" name="live.png" path="live.png" size="4574" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="misterwong.png" attr="h" comment="" date="1262854162" name="misterwong.png" path="misterwong.png" size="668" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="ping.png" attr="h" comment="" date="1262854181" name="ping.png" path="ping.png" size="673" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="rss.png" attr="h" comment="" date="1262854201" name="rss.png" path="rss.png" size="827" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="yahoomyweb.png" attr="h" comment="" date="1262854811" name="yahoomyweb.png" path="yahoomyweb.png" size="606" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="posterous.png" attr="h" comment="" date="1262931540" name="posterous.png" path="posterous.png" size="1024" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="friendfeed.png" attr="h" comment="" date="1262931703" name="friendfeed.png" path="friendfeed.png" size="816" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="yahoobuzz.png" attr="h" comment="" date="1262931765" name="yahoobuzz.png" path="yahoobuzz.png" size="684" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="newsvine.png" attr="h" comment="" date="1262931805" name="newsvine.png" path="newsvine.png" size="131" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="slashdot.png" attr="h" comment="" date="1262932925" name="slashdot.png" path="slashdot.png" size="111" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="simpy.png" attr="h" comment="" date="1262933558" name="simpy.png" path="simpy.png" size="543" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="mixx.png" attr="h" comment="" date="1262935490" name="mixx.png" path="mixx.png" size="134" user="TWikiContributor" version="1"
META FILEATTACHMENT attachment="twiki-logo-80x40-t.gif" attr="h" comment="" date="1263025495" name="twiki-logo-80x40-t.gif" path="twiki-logo-80x40-t.gif" size="1999" user="TWikiContributor" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.ShareMePlugin.

antalya escort bursa escort eskisehir escort istanbul escort izmir escort