[Mediawiki-l] Using Smileys

Swen Wacker swen.wacker at gmail.com
Fri Nov 17 13:44:40 UTC 2006


Hi

edit the toolbar (Editpage.php) and create another button

...
'image'    =>'smiley.gif',
'open'    => '[[image:smiley.gif]]'
'close'   => ''
'sample' =>''
'tip'        =>''
'key'      =>''
...

(not tested)


HTH


Swen






2006/11/17, KlinT <klint at klintcentral.net>:
> Hi Martin,
>
> Well, http://en.wikipedia.org/wiki/Template:Emot allow me to use
> smileys ... in my WiKi ...
>
> This is a workarround, but a little bit "heavy" ... That's why I have
> post a question here :)
>
> In fact, I'd like to write an extension that parse smileys strings
> ( like :) or :-) ) and replace these strings with the correct image ...
>
> Using the same method used in Mail Link Extension is a good start
> point, but, actually, i'm not able to make it works because of a
> problem in the preg_replace function :)
>
> So, I still continue my experiments, thanks for your help Martin.
>
> If somebody can help me with the regular expression in preg_replace
> function it would be appreciated :)
>
> Best Regards,
>
> KlinT
>
> Le 17 nov. 06 à 13:36, Martin Peeks a écrit :
>
> > http://en.wikipedia.org/wiki/Template:Smiley
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list