Emoticate

Creating and modifying plugins.
Post Reply
Trench
Regular
Posts: 85
Joined: Fri Nov 05, 2004 11:38 am

Emoticate

Post by Trench »

I Was trying to install custom emoticons when the emoticate plugin stopped working. I reinstalled the original plug in, made it the first of my event plugins and checked all the settings and it still doesnt work. Any thoughts?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Emoticate

Post by garvinhicking »

What do you mean with "stopped working"? Your Smilies ": - )" do not get converted anymore?

Check if the emoticon image files are still in place and check if you need to "rebuild cached entries" if using entryproperties plugin.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Trench
Regular
Posts: 85
Joined: Fri Nov 05, 2004 11:38 am

Post by Trench »

Yes it stopped converting. How do I rebuild cached entries?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

If the cache is enabled you'll have a menu item for it in the admin panel near"Edit entries".If no such item can be found, you don't have the cache plugin and the error must be searched differently.

Maybe an eventplugin interferes (which ones are you using),but my main guess is that either the graphics aremissing, or you altered the file, or you placd a emoticons.inc.php in your template directory with a wrong format?

regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Trench
Regular
Posts: 85
Joined: Fri Nov 05, 2004 11:38 am

Post by Trench »

The event plugins I'm using are:

Markup: Serendipity
Markup: NL2BR
Browser Compatibility
Spam Protector
Statistics
Spartacus
Announce entries
Markup: BBCode
Markup: Emoticate
Links to next/previous entry
Extended properties for entries

I did rebuild the cacahe and that didn't help. I put the emoticate plugin at the top and neither did that. I did alter the emoticate plugin at one point but replaced it with the original and there is no emoticonc.inc.php in my template file.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Could you temprarily try to remove the "Links to next/previous entry" plugin and see if that changes things?

Else I'm really out of clues and can only help you further if you give me temporary FTP access to your machine...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Trench
Regular
Posts: 85
Joined: Fri Nov 05, 2004 11:38 am

Post by Trench »

At ine point I removed all the event plugins and still no emoticons. Oh well, thanks anyway.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

I'm sorry, but since it works on other hosts I guess that there's an error in your template, filesystem or a difference from your files to the ones delivered with a fresh Serendipity install...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
matsch

Same Problem

Post by matsch »

hi,

I have almost the same problem. my new emoticons won't be shown.
what did you mean with "wrong format of emoticons.inc.php"?

mine looks like this:

Code: Select all

<?php
$serendipity['custom_emoticons'] = array(
                "\:'\("    => serendipity_getTemplateFile('img/emoticons/cry.gif'),
                '\:\-?\)'  => serendipity_getTemplateFile('img/emoticons/smile.gif'),
                '\:\|'     => serendipity_getTemplateFile('img/emoticons/normal.gif'),
                '\:\-?O'   => serendipity_getTemplateFile('img/emoticons/eek.gif'),
                '\:\-?\('  => serendipity_getTemplateFile('img/emoticons/sad.gif'),
                '8\-?\)'  => serendipity_getTemplateFile('img/emoticons/cool.gif'),
                '\:\-?D'  => serendipity_getTemplateFile('img/emoticons/laugh.gif'),
                '\:\-?P'  => serendipity_getTemplateFile('img/emoticons/tongue.gif'),
                ';\-?\)'  => serendipity_getTemplateFile('img/emoticons/wink.gif')
    );
?>
i put the it in the root of my template dir.

my s9y install is almost fresh. i rebuild my cached entries. the emoticons are gif and somse are animated. they are also a little bigger than the orignal ones.

well, and they are shown in the emoticons plugin in the admin frontend. but unfortunately not in the entries nor comments etc.

any ideas would be highly apreciated.

thx in advance,
matsch
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Same Problem

Post by garvinhicking »

You are using regular expressions as the keys in your emoticons array. But you did not set $serendipity['custom_emoticons_regexp'] = true to indicate that.

Thus serendipity double-quotes your regular expressions and thus a smilie will never match and be replaced. Just set the variable and it should be alright.

Where did you read about the custom smilie inclusion? Then I can add a pointer to this variable if it's not already there...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
matsch

Re: Same Problem

Post by matsch »

garvinhicking wrote:You are using regular expressions as the keys in your emoticons array. But you did not set $serendipity['custom_emoticons_regexp'] = true to indicate that.
Thank you very much! That finally did the trick!

I've got the information from here http://www.s9y.org/44.html#A29

Best regards,
matsch
Post Reply