Emoticons
Posted: Thu Jan 03, 2013 6:50 pm
Hi,
I'd like to edit the Emoticate Event Plugin.
I want to use more emoticons than it makes sense to display on the comments form. What I would like to do is only show 10 emoticons and then a wider selection via a popup link.
Now, I know how to insert a target=blank link but I seem to not be able to figure out how to do that in the php script. This is how it looks now:
Let's say, I want every emoticon after "happy" to not show on the comment form but be available via a popup link. What would be the best way to archive this? Editing the serendipity_event_emoticate.php seem to either not work or I try it wrong.
~eni
I'd like to edit the Emoticate Event Plugin.
I want to use more emoticons than it makes sense to display on the comments form. What I would like to do is only show 10 emoticons and then a wider selection via a popup link.
Now, I know how to insert a target=blank link but I seem to not be able to figure out how to do that in the php script. This is how it looks now:
Code: Select all
if (!isset($this->smilies)) {
$ext = $this->get_config('extension', 'gif');
$this->smilies = array(
"\\*excited\\*" => serendipity_getTemplateFile('img/emoticons/excited.'.$ext),
"\\*angry\\*" => serendipity_getTemplateFile('img/emoticons/angry.'.$ext),
"\\*faint\\*" => serendipity_getTemplateFile('img/emoticons/faint.'.$ext),
"\\*fear\\*" => serendipity_getTemplateFile('img/emoticons/fear.'.$ext),
"\\*happy\\*" => serendipity_getTemplateFile('img/emoticons/happy.'.$ext),
"\\*love\\*" => serendipity_getTemplateFile('img/emoticons/love.'.$ext),
"\\*sad\\*" => serendipity_getTemplateFile('img/emoticons/sad.'.$ext),
"\\*shock\\*" => serendipity_getTemplateFile('img/emoticons/shock.'.$ext),
);
}
~eni