Difference: SmiliesPlugin (r17 vs. r16)

The Smilies Plugin :-)

Render smilies as icons, like  :-)  as smile or  :eek:  as eek!

Introduction

Smilies are common in e-mail messages and bulletin board posts. They are used to convey an emotion, such as a smile :-) or a frown :-( . This plugin automatically converts certain smilies to a nice small icon.

Smilies Table

Here is the list of smilies supported by this plugin. To add others, attach new icons to this topic and tweak the table below.

You typeYou seeEmotion
:-) smile.gif "smile"
:) smile.gif "smile"
8-) cool.gif "cool!"
:cool: cool.gif "cool!"
:-I indifferent.gif "indifferent"
:( frown.gif "frown"
:-( frown.gif "frown"
:o redface.gif "embarrassment"
:D biggrin.gif "big grin"
:-D biggrin.gif "big grin"
;) wink.gif "wink"
;-) wink.gif "wink"
:p tongue.gif "stick out tongue"
:-p tongue.gif "stick out tongue"
:rolleyes: rolleyes.gif "roll eyes (sarcastic)"
:mad: mad.gif "mad!"
:eek: eek.gif "eek!"
:confused: confused.gif "confused"
 >:-) devil.gif "hehe!"
:devil: devil.gif "hehe!"
 >;-) devilwink.gif "hehe! (friendly)"
:devilish: devilwink.gif "hehe! (friendly)"
:-X sealed.gif "sealed lips"
:ok: thumbs.gif "thumbs up"
:yes: yes.gif "yes"
:no: no.gif "no"
:love: love.gif "I love it!"
:skull: skull.gif "dead!"
:red: red.gif "red"
:yellow: yellow.gif "yellow"
:green: green.gif "green"
:blue: blue.gif "blue"

SmiliesPlugin Global Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %INTERWIKIPLUGIN_SHORTDESCRIPTION%

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = Render smilies as icons, like  :-)  as smile or  :eek:  as eek!
  • The name of the topic containig your Smilies. Default: TWiki.SmiliesPlugin
  • The way the emoticon is displayed. You can use $emoticon (e.g. :D), $url (e.g. %ATTACHURL%/biggrin.gif) and $tooltip (e.g. "big grin").
    Default: <img src="$url" alt="$tooltip" title="$tooltip" border="0" />
      * Set FORMAT = <img src="$url" alt="$tooltip" title="$tooltip" border="0" />

Plugin Installation Instructions

This plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip SmiliesPlugin.zip in your twiki installation directory. Content:
    File:Description:
    data/TWiki/SmiliesPlugin.txt Plugin topic
    lib/TWiki/Plugins/SmiliesPlugin.pm Plugin Perl module
    pub/TWiki/SmiliesPlugin/*.gif Plugin icon files
  • Visit configure in your TWiki installation, and enable the plugin in the {Plugins} section.
  • Test if the plugin is correctly installed:
  • You will see a series of icons on next line:
    smile smile cool! frown embarrassment big grin wink stick out tongue roll eyes (sarcastic) mad! eek! confused hehe! hehe! (friendly) sealed lips thumbs up yes no I love it! dead! red green

Plugin Info

Plugin Author: TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny
Copyright: 2001-2007 Andrea Sterbini,
2001-2013 2001-2015 Peter Thoeny,
2001-2013 2001-2015 TWiki:TWiki.TWikiContributor
Plugin Version: 2013-01-13 2015-02-16
2013-01-13: 2015-02-16: TWikibug:Item7091 TWikibug:Item7604 : Use TWISTY in plugin settings section, Switch from GPL v2 to v3 installation instructions and change history
2011-07-09: 2013-01-13: TWikibug:Item6725 TWikibug:Item7091 : Change global package variables from "use vars" to "our" Use TWISTY in plugin settings section, installation instructions and change history
2010-09-20: 2011-07-09: TWikibug:Item6580 TWikibug:Item6725 : Added "red", "yellow", "green", "blue" smilies Change global package variables from "use vars" to "our"
2010-05-15: 2010-09-20: TWikibug:Item6433 TWikibug:Item6580 : Doc improvements; replacing TWIKIWEB with SYSTEMWEB Added "red", "yellow", "green", "blue" smilies
21 2010-05-15: Nov 2007: Doc improvements TWikibug:Item6433 : Doc improvements; replacing TWIKIWEB with SYSTEMWEB
16 Mar 2005: 21 Nov 2007: Fixed typo Doc improvements "scull"
5 16 Mar 2005: 1.004 Crawford Currie Fixed typo "scull" prepared for Dakar
21 Nov 2004: 5 Mar 2005: Added benchmarks (no code changes) 1.004 Crawford Currie prepared for Dakar
21 Aug Nov 2004: Fixed tooltip for Netscape; added Added benchmarks (no code changes) "sealed lips", "thumbs up", "yes" "no", "in love", "skull"
16 Feb 21 Aug 2004: Added "devil" and "devilwink" smilies (by Fixed tooltip for Netscape; added "sealed lips", "thumbs up", "yes" "no", "in love", "skull" TWiki:Main.CrawfordCurrie )
26 16 Feb 2003: 2004: Added "indifferent" smilie "devil" and "devilwink" smilies (by TWiki:Main.CrawfordCurrie )
20 Oct 2002: 26 Feb 2003: Fixed STDERR warning Added "indifferent" smilie for non-initialized Plugin
20 Apr Oct 2002: Improved performance; removed non-standard Fixed STDERR warning for non-initialized Plugin API dependencies; added standard plugin topic content -- TWiki:Main.PeterThoeny
23 Nov 2001: 20 Apr 2002: Added TOPIC and FORMAT setting Improved performance; removed non-standard Plugin API dependencies; added standard plugin topic content -- TWiki:Main.PeterThoeny
10 Jun 23 Nov 2001: Packaged into ZIP Added TOPIC and FORMAT setting
28 Feb 10 Jun 2001: Initial version Packaged into ZIP
28 Feb 2001: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.0
TWiki:Plugins/Benchmark: GoodStyle 96%, FormattedSearch 98%, SmiliesPlugin 96%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/SmiliesPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/SmiliesPluginDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/SmiliesPluginAppraisal

Related Topics: TWikiPreferences, TWikiPlugins

IAttachmentHistoryActionSizeDateWhoComment
GIFgif biggrin.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif blue.gif r1 manage 0.9 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif confused.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif cool.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif devil.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif devilwink.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif eek.gif r1 manage 1.2 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif frown.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif green.gif r1 manage 0.9 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif indifferent.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif love.gif r1 manage 0.4 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif mad.gif r1 manage 0.2 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif no.gif r1 manage 0.5 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif red.gif r1 manage 0.9 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif redface.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif rolleyes.gif r1 manage 1.7 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif sealed.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif skull.gif r1 manage 1.0 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif smile.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif thumbs.gif r1 manage 0.2 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif tongue.gif r1 manage 0.3 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif wink.gif r1 manage 0.1 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif yellow.gif r1 manage 0.9 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script
GIFgif yes.gif r1 manage 0.3 K 2013-01-14 2015-02-17 - 02:47 07:33 TWikiAdminUser Saved by install script

 
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.SmiliesPlugin.