Page 1 of 1

Other emoticons in serendipity_event_emoticate

Posted: Sun Feb 25, 2007 7:55 pm
by Oldenzaaltjuh
Hello,

First of all I want to say my English is very bad. I hope you understand me ;)

I try to change the emoticons in the plugin: serendipity_event_emoticate

I must change it here i think but it don't work. For example the first one must be:

8- ) (no spaces) becomes Image

Code: Select all

if (!isset($this->smilies)) {
            $ext = $this->get_config('extension', 'png');
            $this->smilies = array(
                "\:\'("    => serendipity_getTemplateFile('img/emoticons/cry.'.$ext),

                '\:\-?\)'  => serendipity_getTemplateFile('img/emoticons/smile.'.$ext),

                '\:\|'     => serendipity_getTemplateFile('img/emoticons/normal.'.$ext),

                '\:\-?O'  => serendipity_getTemplateFile('img/emoticons/eek.'.$ext),

                '\:\-?\('  => serendipity_getTemplateFile('img/emoticons/sad.'.$ext),

                '8\-?\)'  => serendipity_getTemplateFile('img/emoticons/cool.'.$ext),

                '\:\-?D'  => serendipity_getTemplateFile('img/emoticons/laugh.'.$ext),

                '\:\-?P'  => serendipity_getTemplateFile('img/emoticons/tongue.'.$ext),

                ';\-?\)'  => serendipity_getTemplateFile('img/emoticons/wink.'.$ext),
            );
        }
I can't find the map where the emoticons are. The 'img/emoticons'

I hope you can help me :)

Re: Other emoticons in serendipity_event_emoticate

Posted: Mon Feb 26, 2007 9:47 am
by garvinhicking
Hi!

Please check out the documentation here:

http://www.s9y.org/44.html#A15

So you would add a rule like

Code: Select all

"8\-\)" => 'http://www.oldenzaaltjuh.nl/images/smilie/cool.gif'
HTH,
Garvin