Open Aaronsss opened 8 years ago
Confirmed.
Also the newforumposts menu does not display smileys
This part was intentional. It starts to look really messy with emoticons in a menu. An option could be added if there's demand for it.
The option would be nice thought not essential, some of my smileys are used as a way of accepting, rejecting or closing things for example and the raw text looks ugly :)
@CaMer0n
Regarding the 'emoticon' as first part of the post entry not being parsed, I think the issue is in this check:
foreach($tmp as $code)
{
$img = "<img class='e-emoticon' src='".$fileloc."' alt=\"".$alt."\" />";
$this->search[] = "\n".$code;
$this->replace[] = "\n".$img;
$this->search[] = " ".$code;
$this->replace[] = " ".$img;
$this->search[] = ">".$code; // Fix for emote within html.
$this->replace[] = ">".$img;
$this->singleSearch[] = $code;
$this->singleReplace[] = $img;
}
I think we may need to add something like this:
$this->search[] = $code;
$this->replace[] = $img;
but I am not sure if this breaks other things. Also, I cannot figure out the purpose of the singleSearch/Replace...
When posting on a forum, if the first thing in the post is a smiley it just displays the text not the actual smiley. It works fine aslong as there is something else before it.
Also the newforumposts menu does not display smileys