TWiki

Changes Index Search

Webs Book Compare GPCE06 Gmt Gpce Gpce04 Gpce05 IFIPWG211 IPA06 Main Octave PEPM07 PEPM08 PHP Sandbox Sdf Stratego Sts TWiki Tiger Tools Transform Variability default porn free porn

Smilies Plugin

TWiki

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
:-) /pub/TWiki/SmiliesPlugin/smile.gif "smile"
:) /pub/TWiki/SmiliesPlugin/smile.gif "smile"
8-) /pub/TWiki/SmiliesPlugin/cool.gif "cool!"
:cool: /pub/TWiki/SmiliesPlugin/cool.gif "cool!"
:-I /pub/TWiki/SmiliesPlugin/indifferent.gif "indifferent"
:( /pub/TWiki/SmiliesPlugin/frown.gif "frown"
:-( /pub/TWiki/SmiliesPlugin/frown.gif "frown"
:o /pub/TWiki/SmiliesPlugin/redface.gif "embarrassment"
:D /pub/TWiki/SmiliesPlugin/biggrin.gif "big grin"
:-D /pub/TWiki/SmiliesPlugin/biggrin.gif "big grin"
;) /pub/TWiki/SmiliesPlugin/wink.gif "wink"
;-) /pub/TWiki/SmiliesPlugin/wink.gif "wink"
:p /pub/TWiki/SmiliesPlugin/tongue.gif "razz (stick out tongue)"
:rolleyes: /pub/TWiki/SmiliesPlugin/rolleyes.gif "roll eyes (sarcastic)"
:mad: /pub/TWiki/SmiliesPlugin/mad.gif "mad!"
:eek: /pub/TWiki/SmiliesPlugin/eek.gif "eek!"
:confused: /pub/TWiki/SmiliesPlugin/confused.gif "confused"

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  :cool: for :cool:

  • Set DEBUG to 1 to get debug messages in data/debug.txt. Default: 0
    • Set DEBUG = 0

  • 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" />
      * #Set FORMAT = <img src="$url" alt="$emoticon" />

Plugin Installation Instructions

  • 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
    data/TWiki/SmiliesPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/SmiliesPlugin.pm Plugin Perl module
    pub/TWiki/SmiliesPlugin/*.gif Plugin icon files
  • 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:

Plugin Info

Plugin Author: AndreaSterbini?
Plugin Version: 26 Feb 2003
Change History:  
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 -- 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
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/SmiliesPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/SmiliesPluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- AndreaSterbini? - 28 Dec 2000
-- PeterThoeny - 26 Feb 2003