View source for Wiki Edit

{{anchor href="top"}}
Hits :  **{{hits}}**


The original page is here: http://wackowiki.org/Dev/PatchesHacks/EmotionImage

#||
||== WikiEdit: ~emotion image == 
bugs: 
Compatible with: !!(green)**R4.2**!! and !!(red)**4.3 svn**!!
Current version: 4.3 svn
Credits: //Evaggelos Balaskas//
|{{toc numerate="1"}} ||
||#

##~emotion image##

~WackoWiki ~WikiEdit

=== Documentation ==

  * First you must find the emotion image you want to add. eg. The Smile Face. You should try to find a gif image. Put the smileface.gif under to wacko/images/wikiedit/ .
  * Edit wacko/js/wikiedit2.js file to add a code line like the below :
%%
this.addButton("smileface","Smile Face","':)',''");
%%

to add the smile face button.

  * Next you have to edit the wacko/formatters/classes/WackoFormatter.php to add the action of the emotion image. 
In this case you want to add an html image src to your page.

%%
else if (preg_match("/:\)/", $thing, $matches)) {
  return "<img src=\"images/wikiedit/smileface.gif"."\" alt=\"Smile Face\" />";
}%%

But before this you must add the formatter string to **$this->LONGREGEXP** value. I simple add this :
%%
":\)|".
%%

That's all

=== How To ==

How to add an emotion image to WikiEdit ?
- very easy

=== Screen Shot ==

https://balaskas.gr/img/wackowiki.01.jpg
https://balaskas.gr/img/wackowiki.02.jpg

=== Localization ==

There is no need for any

=== To Do ==

  * To add the basic emotion images

{{backlinks}}