create new tag
, view all tags

Archive of SmiliesPluginDev Discussions

How about using the ones GAIM uses - http://gaim.sourceforge.net/ ? They're pretty cool :-)

This is a fun plugin so I'm installing this one.

-- MichaelSparks - 06 Mar 2001

I'm getting a strange error when I try to use the plugin (using latest CVS source as of this morning). Here's the message:

Software error:

Can't locate TWiki/Plugins/SmiliesPlugin.pm in @INC (@INC contains: ../lib . /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at (eval 20) line 1.

For help, please send mail to the webmaster (you@yourPLEASENOSPAM.address), giving this error message and the time and date of the error. Content-type: text/html

Software error:

[Sun Sep 9 11:29:08 2001] view: Can't locate TWiki/Plugins/SmiliesPlugin.pm in @INC (@INC contains: ../lib . /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl) at (eval 20) line 1. BEGIN failed--compilation aborted at (eval 20) line 1.

Any ideas?

-- DavidWeller - 09 Sep 2001

I had the same problem, and I chmod'ed twiki/lib/Plugins/SmiliesPlugin.pm to 755, but that broke the whole twiki site - when you viewed any pages it just brought up the html of the page, to fix this I deleted SmiliesPlugin.pm!

-- PaulWickham - 26 Sep 2001

Is the spelling correct? ;-) Other places talk about Smiley and Smileys.

It would be nice to allow stop characters like '.,?' after the smiley.

-- PeterThoeny - 14 Nov 2001

I'd like it if the plugin used the original text for the alt tag. The current alt tags are far too big and disturb the layout.

-- JoachimDurchholz - 19 Nov 2001

Not sure I know what you mean. On IE 5.5 the alt tags are normal sized, what are you using?

-- MartinCleaver - 19 Nov 2001

What I meant was that it's better to have alt=":p" instead of alt="razz (stick out tongue)". If the browser doesn't display grafics, the long alt tags are just too long and disruptive.

"Disturb the layout" may have been a bit too vague - it's not a technical problem (technically, everything seems OK to me), it's a problem of "look and feel". If I see something like (boxes around not-yet-loaded graphic symbols indicated by [])

  Flames to /dev/nul or your local equivalent [razz (stick out tongue)]
this doesn't have the same conciseness as
  Flames to /dev/nul or your local equivalent [:p]
Besides, the "razz (stick out tongue)" explanation forces an interpretation on the reader even if reader and writer have a different understanding of what exactly :p should mean, and that's undesirable. Ambiguity has always been a part of the "emoticon" culture, and the long explanations are disabling it (which may be a Good Thing or Bad Thing, so YMMV :) ).

-- JoachimDurchholz - 19 Nov 2001

I supporse it's easy to change for yourself, but I thoroughly agree with Joachim above. Especially with emoticon replacements, spelling out what they're supposed to be kinda defeats the purpose of a little non-textual human contact. Or whatever. It is an "emoticon culture" argument in good part, so if you dismiss that, maybe it's not a big deal...but that's what culture is about, isn't it. Besides, I can't recall the last time I "razzed" someone...

I'm writing mainly 'cause the Plugins in general are bothering me. Particularly as an NP.

I just replaced all my scripts with the 20 Nov 2001 beta, installed Smilies, but it went crazy. Sometimes just wasn't found, then turned off the other plugins, or brought up a download file dialog... Maybe it's the weather. I deleted it for now. Linux/Apache up-to-date environment.

But IN GENERAL, Plugins don't work consistently. TOC was fine on its own page, but not on others. TWikiDraw was...temperamental. LocalTime stopped working. And now, some new versions want to install their own data/Plugins directory? Compared to all other TWiki features, Plugins have always been way more unreliable. I get the feeling that, overall, something is a little shaky in the Plugin area, like all the players aren't in quite the same game (a non-technical analysis!). Or is it ME? :scowl:

-- MikeMannix - 22 Nov 2001

On the bugs ... it works for me on the last release ... could you try again?

On the ALT tag, I have added a plugin variable named FORMAT so that you decide.

I have added also the TOPIC variable (internally view as SMILIESPLUGIN_TOPIC) to specify where the icons are listed/attached.

On the shakyness of Plugins ... You can bet that the Plugins are more "fuzzy" than the main release ... there is just not enough time to try all the Ideas I like ...

My personal model of development is: "jot the idea - release it - get feedback and bug fixes"

Added a "Enter at your own risk" notice on the web homepage :-)

-- AndreaSterbini - 22 Nov 2001

Andrea, I wasn't thinking when I commented above that you are the original driving force behind Plugins - I'm glad your joie de vivre is expansive enough not to take such little things personally <g> - it certainly wasn't meant to be! Your notice on the Plugins page is funny!

It's really too bad I'm an NP... I'd love to help with the API, and checking submissions. But this is all tied in with a general TWikiOO / modularization effort, no? Plugins are great, and it seems that TWiki is at the point where Plugins ideally would be the main new features mechanism. (I was just reading your original TWiki OO outline from 1999...)

I'll keep trying the Plugins (I'm stubborn, I always do). Cheers!

-- MikeMannix - 22 Nov 2001

:confused: I just installed this plugin, and it works fine... except for its entry in the TextFormattingRules. For some reason, the smilies do not appear there (but they do appear when viewed in SmiliesPlugin). Has anybody seen this?

Also, the installation file puts stuff into the Plugins web, instead of the TWiki web where I imagine most people will want it.

Finally, the installation is missing RCS files.

...But I love it!

-- JonReid - 20 Dec 2001

(thanks :o )

Perhaps I forgot to include the SHORTDESCRIPTION?

We have not yet decided if all plugins should be placed in TWiki or in Plugins ... I use the second and this is why my plugins falls always in Plugins :-) .

-- AndreaSterbini - 23 Dec 2001

It looks like the latest plugin expands smilies in commonTagsHandler. This means that smilies are also expanded inside <verbatim> tags.

The proper way is to expand variables like %SMILIES% in commonTagsHandler and to do regular formatting in outsidePREHandler. See support request SmiliesPluginBrokeWithVerbatim.

-- PeterThoeny - 22 Jan 2002

Smilies are very cool :cool: ... However, they are currently breaking TWiki.org's RSS feeds on one topic, see SmiliesBreakRssFeed. The solution is quite simple - the plugin just needs to generate XHTML, i.e. to put a "/>" at the end of the <img> tag and all should be well.

-- RichardDonkin - 18 Feb 2002

At TWiki.org (not the plugin in the Plugins web) I changed the plugin to produce XHTML. It also generates full URLs, including host, probably needed for the RSS feed.


$_[0] =~ s/(\s|^)$p(\s|$)/"$1<img alt=\"$emotion\" src=\"$TWiki::urlHost$TWiki::pubUrlPath\/$installWeb\/SmiliesPlugin\/$url\" \/>$2"/ge;

-- PeterThoeny - 18 Feb 2002

I did some overhaul on this plugin, mainly because I wanted to install it on my daytime job and performance was not good enough. So I rewrote parts to bring the performance up to near the same as without plugin. Benchmarks:

Type of topic Plugin not installed Original plugin New version
Big topic with smilies: 1.22 1.51 1.23
Small topic without smilie: 1.10 1.32 1.12

I removed non-standard Plugin API dependencies as well.

Andrea: I attached the package to this dev topic since you are the author of the plugin. Can you update the SmiliesPlugin topic with the new text (from TWiki.SmiliesPlugin) and the package?

-- PeterThoeny - 20 Apr 2002

Peter, thanks a lot for your update!!! ... I will upload it this weekend.

-- AndreaSterbini - 24 Apr 2002

My weekends seems to last almost a month ... :o

I have updated the page and moved the zip file there.

-- AndreaSterbini - 19 May 2002

Would you please make the plugin case insensitive? Sometimes I use :Cool: instead of :cool: by typo, then I have to modify it again after the topic saved. Thanks.

-- SimonLei - 17 Oct 2002

Fixed a small problem encountered with mailnotify where the STDOUT had uninitialized error messages due to an uninitialized $allPattern. New version posted.

-- PeterThoeny - 20 Oct 2002

I just found two that are missing! :-D should be synonymous with :D. There's also the >:-) one that's fun.

Keep up the good work!

-- GrantBow - 15 Jan 2003

Being British, I make frequent use of sarcasm; can we please, please, please have >:-) (horny devil - sarcastic remark) and >;-) (sarcastic remark but I'm not being nasty, honest)? How about

  • for >:-)
  • for >;-)

-- CrawfordCurrie - 20 Jan 2004

You mean all along that was sarcasm? I remain perpetually amazed and astounded! What!
Cheers :D

-- SteveRJones - 23 Jan 2004

Thanks Crawford and Steve. I converted both bitmaps to transparent gifs (bmp does not work in all browsers), and I also renamed the file to devil.gif since horny has a different meaning in American English >;-)

I had to make a small enhancement to the code since <nop>>:-) would not render correctly. The Plugin now accepts also a leading &nbsp; in the smilies table, e.g. | <nop>&nbsp;>:-) | displays the smilie escaped as expected.

-- PeterThoeny - 17 Feb 2004

non-maintainer update synchronized cvs with released zip version, which was ahead of the cvs version

Internal plugin version: 16 Feb 2004
Zip version: 1.7

-- MattWilkie - 02 Apr 2004

The smiles still not working if a stop character appear after. Like PeterThoeny seed in 14 Nov 2001: "It would be nice to allow stop characters like '.,?' after the smiley."


Code Result Coment
:-) :-) pure...
:-), :-), normal use
:-). :-). normal use
:-)! :-)! normal use
:-)? :-)? normal use
"bla :-)" "bla :-)" some use
'bla :-)' 'bla :-)' low use
[bla :-)] [bla :-)] on a link
[:-)] [:-)] alone on a link
(bla :-)) (bla :-)) on a coment

I think it will help some people who don't know how it works and disappoints with it.

-- AurelioAHeckert - 19 Aug 2004

I've set format in TWiki.SmiliesPlugin (which takes persidence over Plugins.SmiliesPlugin) to:

      * Set FORMAT = <img src="$url" alt="$tooltip" title="$emoticon $tooltip" align="middle" border="0" />
the alt tag is used by IE as a tooltip if no title tag is present but mozilla will only use alt tags if images aren't loaded, so it's best to specify both.

-- SamHasler - 19 Aug 2004

New Plugin version is released, adding title attribute by default and with additional smilies.

Sam: I removed the align attribute since it looks really odd in Netscape. Example screenshot: Image20.gif

-- PeterThoeny - 21 Aug 2004

That was something AurelioAHeckert put in. I wasn't sure so I left it in.

-- SamHasler - 22 Aug 2004

My Company has installed SmiliesPlugin on our Intranet TWiki. It's a very cute option but an undesirable default.

Please provide a personal preference variable to allow users like me to turn this OFF.

Thank you.

-- VickiBrown - 02 Dec 2004

You should be able to turn it off with a DISABLEDPLUGINS setting in your home page. Make sure to disable the Plugins listed in DISABLEDPLUGINS of your TWikiPreferences as well.

-- PeterThoeny - 04 Dec 2004

Okaaaaay. That sounds reasoonable. So what am I doing wrong?

I tried both of the below

      * Set DISABLEDPLUGINS = TWiki.SmiliesPlugin
      * Set DISABLEDPLUGINS = SmiliesPlugin
and neither appears to work.

As an additional test, I also added

      * Currently activated plugins: %ACTIVATEDPLUGINS%
to see what was happening and it (still) lists SmiliesPlugin as activated.

-- VickiBrown - 16 Dec 2004

New Plugin version is released, fixing typo (skull vs scull)

-- PeterThoeny - 16 Mar 2005

The ZIP-file contains more smiley GIFs than the SVN version. The same holds for the SpreadSheetPlugin too! These inconsistencies should be cleaned up soon.

-- FranzJosefSilli - 03 Aug 2005

Topic revision: r1 - 2006-04-23 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.