Page 1 of 1
Emoticate
Posted: Sat May 28, 2005 11:41 pm
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?
Re: Emoticate
Posted: Sun May 29, 2005 2:39 am
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
Posted: Sun May 29, 2005 2:49 am
by Trench
Yes it stopped converting. How do I rebuild cached entries?
Posted: Sun May 29, 2005 3:00 am
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
Posted: Sun May 29, 2005 2:24 pm
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.
Posted: Mon May 30, 2005 11:29 am
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
Posted: Mon May 30, 2005 3:57 pm
by Trench
At ine point I removed all the event plugins and still no emoticons. Oh well, thanks anyway.
Posted: Mon May 30, 2005 3:59 pm
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
Same Problem
Posted: Wed Oct 26, 2005 12:15 am
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
Re: Same Problem
Posted: Wed Oct 26, 2005 10:47 am
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
Re: Same Problem
Posted: Wed Oct 26, 2005 12:52 pm
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