r1 - 27 Mar 2005 - 08:14:15 - TWikiContributorYou are here: TWiki >  TWiki Web > SmiliesPlugin

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.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 "in love"
:skull: skull.gif "skull"

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 smile 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 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
  • (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:
    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 in love skull

Plugin Info

Plugin Author: TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny
Plugin Version: 1.004
Change History:  
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: 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

About This Site

Please note that this site is a content mirror of the BNL USATLAS TWiki. To edit the content of this page, click the Edit this page button at the top of the page and log in with your BNL USATLAS account.


Attachments


gif biggrin.gif (0.1K) | TWikiContributor, 12 Dec 2003 - 03:08 |
gif confused.gif (0.1K) | TWikiContributor, 12 Dec 2003 - 03:08 |
gif cool.gif (0.1K) | TWikiContributor, 12 Dec 2003 - 03:08 |
gif eek.gif (1.2K) | TWikiContributor, 12 Dec 2003 - 03:08 |
gif frown.gif (94b) | TWikiContributor, 12 Dec 2003 - 03:09 |
gif indifferent.gif (0.1K) | TWikiContributor, 12 Dec 2003 - 03:09 |
gif mad.gif (0.2K) | TWikiContributor, 12 Dec 2003 - 03:09 |
gif redface.gif (0.1K) | TWikiContributor, 12 Dec 2003 - 03:09 |
gif rolleyes.gif (1.7K) | TWikiContributor, 12 Dec 2003 - 03:09 |
gif smile.gif (93b) | TWikiContributor, 12 Dec 2003 - 03:10 |
gif tongue.gif (0.3K) | TWikiContributor, 12 Dec 2003 - 03:10 |
gif wink.gif (0.1K) | TWikiContributor, 12 Dec 2003 - 03:10 |
gif devil.gif (0.1K) | TWikiContributor, 17 Feb 2004 - 02:16 |
gif devilwink.gif (0.1K) | TWikiContributor, 17 Feb 2004 - 02:15 |
gif sealed.gif (0.1K) | TWikiContributor, 21 Aug 2004 - 17:40 |
gif thumbs.gif (0.2K) | TWikiContributor, 21 Aug 2004 - 17:40 |
gif yes.gif (0.3K) | TWikiContributor, 21 Aug 2004 - 17:40 |
gif no.gif (0.5K) | TWikiContributor, 21 Aug 2004 - 17:40 |
gif love.gif (0.4K) | TWikiContributor, 21 Aug 2004 - 17:41 |
gif skull.gif (1.0K) | TWikiContributor, 21 Aug 2004 - 17:41 |
 
Powered by TWiki
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 TWiki.org at TWiki:TWiki.SmiliesPlugin