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 type | You see | Emotion |
|---|
| :-) |  | "smile" |
| :) |  | "smile" |
| 8-) |  | "cool!" |
| :cool: |  | "cool!" |
| :-I |  | "indifferent" |
| :( |  | "frown" |
| :-( |  | "frown" |
| :o |  | "embarrassment" |
| :D |  | "big grin" |
| :-D |  | "big grin" |
| ;) |  | "wink" |
| ;-) |  | "wink" |
| :p |  | "stick out tongue" |
| :-p |  | "stick out tongue" |
| :rolleyes: |  | "roll eyes (sarcastic)" |
| :mad: |  | "mad!" |
| :eek: |  | "eek!" |
| :confused: |  | "confused" |
| >:-) |  | "hehe!" |
| :devil: |  | "hehe!" |
| >;-) |  | "hehe! (friendly)" |
| :devilish: |  | "hehe! (friendly)" |
| :-X |  | "sealed lips" |
| :ok: |  | "thumbs up" |
| :yes: |  | "yes" |
| :no: |  | "no" |
| :love: |  | "I love it!" |
| :skull: |  | "dead!" |
| You type | You see | Emotion |
|---|
| :-) |  | "smile" |
| :) |  | "smile" |
| 8-) |  | "cool!" |
| :cool: |  | "cool!" |
| :-I |  | "indifferent" |
| :( |  | "frown" |
| :-( |  | "frown" |
| :o |  | "embarrassment" |
| :D |  | "big grin" |
| :-D |  | "big grin" |
| ;) |  | "wink" |
| ;-) |  | "wink" |
| :p |  | "stick out tongue" |
| :-p |  | "stick out tongue" |
| :rolleyes: |  | "roll eyes (sarcastic)" |
| :mad: |  | "mad!" |
| :eek: |  | "eek!" |
| :confused: |  | "confused" |
| >:-) |  | "hehe!" |
| :devil: |  | "hehe!" |
| >;-) |  | "hehe! (friendly)" |
| :devilish: |  | "hehe! (friendly)" |
| :-X |  | "sealed lips" |
| :ok: |  | "thumbs up" |
| :yes: |  | "yes" |
| :no: |  | "no" |
| :love: |  | "I love it!" |
| :skull: |  | "dead!" |
SmiliesPlugin Global Settings
Plugin settings are stored as preference settings. To reference a plugin setting of this plugin write %<plugin>_<setting>%, for example, %SMILIESPLUGIN_TOPIC%
- One line description, shown in the TextFormattingRules topic:
- Set SHORTDESCRIPTION = Render smilies as icons, like
for :-) or
for :eek:
- The name of the topic containig your Smilies. Use format
web.topic. Default: System.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 Foswiki 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
SmiliesPlugin.zip
in your Foswiki installation directory. Content: | File:
| Description:
|
|---|
data/System/SmiliesPlugin.txt | Plugin topic |
data/System/SmiliesPlugin.txt,v | Plugin topic repository |
lib/Foswiki/Plugins/SmiliesPlugin.pm | Plugin Perl module |
pub/System/SmiliesPlugin/*.gif | Plugin icon files |
- Visit
configure in your Foswiki 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:

Plugin Info
| Copyright: | Copyright (C) 2001-2007 Andrea Sterbini, Peter Thoeny, peter@thoeny.org and TWiki Contributors. Copyright (C) 2008-2009 Foswiki Contributors |
| License: | GPL (GNU General Public License) |
| Plugin Version: | 04 Jan 2009 |
| Change History: | |
| 04 Jan 2009: | Foswiki version - Fixed the use of SMILIESPLUGIN_TOPIC so you can create your own smily collection that does not get overwritten when upgrading Foswiki |
| 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.008 |
| Plugin Home: | http://foswiki.org/Extensions/SmiliesPlugin |
| Feedback: | http://foswiki.org/Extensions/SmiliesPluginDev |
| Copyright: | Copyright (C) 2001-2007 Andrea Sterbini, Peter Thoeny, peter@thoeny.org and TWiki Contributors. Copyright (C) 2008-2009 Foswiki Contributors |
| License: | GPL (GNU General Public License) |
| Plugin Version: | 04 Jan 2009 |
| Change History: | |
| 04 Jan 2009: | Foswiki version - Fixed the use of SMILIESPLUGIN_TOPIC so you can create your own smily collection that does not get overwritten when upgrading Foswiki |
| 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.008 |
| Plugin Home: | http://foswiki.org/Extensions/SmiliesPlugin |
| Feedback: | http://foswiki.org/Extensions/SmiliesPluginDev |
Related Topics: DefaultPreferences, SitePreferences, Plugins
