WikiSmileys

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


Goal

Add graphical smileys to the wiki markup.

Solution

Attach:smileys.zip - complete zip archive including gif images
Attach:smileys.php - PHP code

Discussion

WikiSmileys allow graphical smileys to be inserted into documents. Markups such as :-) are converted to graphical images like :-). The complete set of defined smileys are:

Enter markupto display this smiley
:) or :-) or {:) or {:-):-)
;) or ;-) or {;) or {;-){;)
:( or :-( or {:( or {:-({:(
:p or :-p or {:p or {:-p{:p
:o or :-o or {:o or {:-o{:o
:D or :-D or {:D or {:-D{:D
{cool}{cool}
{confused}{confused}
{eek}{eek}
{angry}{angry}
{rolleyes}{rolleyes}

Installation

Unpack the Attach:smileys.zip file into your pmwiki directory. The smiles.php file should go in your local/ directory and the smiley images should go into pub/smileys. Then add the line

   include_once("local/smileys.php");

to your local/config.php file. That should do it for most installations. If you end up with broken images in the output instead of smileys, you may need to set the value of $SmileysFolder to be the URL prefix to where the smileys images are located.

See Also

  • SmileysPlusPlus - extended smileys list

Contributors

  • Janice Heinold
  • Eike Decker (zet)
  • Pm

Comments, Bugs

It should probably be pointed out that if one types the markup for some of the above smileys in the beginning of a row, they won't show up.

This doesn't semms to work on my wiki site ... and on this one if you take a look below, what can i do ?? pmwiki-2.3.33 -- Last modified by {{Dweezil}}?

from IP: 85.171.160.186 ip should be disabled by default for security reasons