The Smilies Plugin :-)

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.

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 typeSorted descending You see Emotion
;-) wink.gif "wink"
;) wink.gif "wink"
:yes: yes.gif "yes"
:skull: skull.gif "dead!"
:rolleyes: rolleyes.gif "roll eyes (sarcastic)"
:p tongue.gif "stick out tongue"
:ok: thumbs.gif "thumbs up"
:o redface.gif "embarrassment"
:no: no.gif "no"
:mad: mad.gif "mad!"
:love: love.gif "I love it!"
:eek: eek.gif "eek!"
:devilish: devilwink.gif "hehe! (friendly)"
:devil: devil.gif "hehe!"
:D biggrin.gif "big grin"
:cool: cool.gif "cool!"
:confused: confused.gif "confused"
:-X sealed.gif "sealed lips"
:-p tongue.gif "stick out tongue"
:-I indifferent.gif "indifferent"
:-D biggrin.gif "big grin"
:-) smile.gif "smile"
:-( frown.gif "frown"
:) smile.gif "smile"
:( frown.gif "frown"
8-) cool.gif "cool!"
 >;-) devilwink.gif "hehe! (friendly)"
 >:-) devil.gif "hehe!"

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 :-) for  :-) or :eek: for  :eek:

  • The name of the topic containig your Smilies. Default: TWiki.SmiliesPlugin
  • #Set TOPIC = 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="$emoticon" title="$emoticon" border="0" />

Plugin Installation Instructions

This plugin is installed by default with a TWiki release. You should not need to install the plugin unless it is for an upgrade.
  • Download the ZIP file from the Plugin web (see below)
  • Unzip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/SmiliesPlugin.txt Plugin topic
    data/TWiki/SmiliesPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/ Plugin Perl module
    pub/TWiki/SmiliesPlugin/*.gif Plugin icon files
  • (Dakar) 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:
    :-) :) :cool: :( :o :D ;) :p :rolleyes: :mad: :eek: :confused: >:-) >;-) :-X :ok: :yes: :no: :love: :skull:

Plugin Info

Plugin Author: TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny
Copyright: © 2001-2007, Andrea Sterbini, Peter Thoeny, TWiki Contributors
Plugin Version: 21 Nov 2007
Change History:  
21 Nov 2007: Doc improvements
16 Mar 2005: Fixed typo "scull"
5 Mar 2005 1.004 Crawford Currie prepared for Dakar
21 Nov 2004: Added benchmarks (no code changes)
21 Aug 2004: Fixed tooltip for Netscape; added "sealed lips", "thumbs up", "yes" "no", "in love", "skull"
16 Feb 2004: Added "devil" and "devilwink" smilies (by TWiki:Main.CrawfordCurrie)
26 Feb 2003: Added "indifferent" smilie
20 Oct 2002: Fixed STDERR warning for non-initialized Plugin
20 Apr 2002: Improved performance; removed non-standard Plugin API dependencies; added standard plugin topic content -- TWiki:Main.PeterThoeny
23 Nov 2001: Added TOPIC and FORMAT setting
10 Jun 2001: 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:

Related Topics: TWikiPreferences, TWikiPlugins

Topic revision: r7 - 2005-03-27 - 13:14:15 - TWikiContributor

This site is powered by the TWiki collaboration platformCopyright & 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 at TWiki:TWiki.SmiliesPlugin