Partilhando informação que encontrei e que
resolve o meu problema
Editar o ficheiro
message-parser.php
Código: Selecionar todos
function prepare_bbcodes()
{
// Ok, seems like users instead want the no-parsing of urls, smilies, etc. after and before and within quote tags being tagged as "not a bug".
// Fine by me ;) Will ease our live... but do not come back and cry at us, we won't hear you.
/* Add newline at the end and in front of each quote block to prevent parsing errors (urls, smilies, etc.)
if (strpos($this->message, '[quote') !== false && strpos($this->message, '[/quote]') !== false)
{
$this->message = str_replace("\r\n", "\n", $this->message);
// We strip newlines and spaces after and before quotes in quotes (trimming) and then add exactly one newline
$this->message = preg_replace('#\[quote(=".*?")?\]\s*(.*?)\s*\[/quote\]#siu', '[quote\1]' . "\n" . '\2' ."\n[/quote]", $this->message);
}
*/
$this->message = str_replace(":club:", " :club:", $this->message);
$this->message = str_replace(" :club:", " :club:", $this->message);
$this->message = str_replace(":diamond:", " :diamond:", $this->message);
$this->message = str_replace(" :diamond:", " :diamond:", $this->message);
$this->message = str_replace(":heart:", " :heart:", $this->message);
$this->message = str_replace(" :heart:", " :heart:", $this->message);
$this->message = str_replace(":spade:", " :spade:", $this->message);
$this->message = str_replace(" :spade:", " :spade:", $this->message);
// Add other checks which needs to be placed before actually parsing anything (be it bbcodes, smilies, urls...)
}
Assim ficamos todos a saber...