UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

BBCode emoticons

Kevin Ortman · ·
11:48 AM Wednesday, 08 January 2014
None
Emoticons in conversation messages generate invalid HTML.

FILE: administrator/components/com_easysocial/tables/conversationmessage.php
FUNCTION: getContents
SUMMARY:
parseBBCode() is called before replaceHyperlinks(), thus replaceHyperlinks() mangles the HTML tags generated by parseBBCode, including emoticons IMG tag.
I was able to work around this by changing the order (replaceHyperlinks, parseBBCode, replaceEmails), it works but has not been fully tested and may be insecure.

REPRODUCE: Create a message with an emoticon shortcut "This is a test :)".


// Apply bbcode
$message = Foundry::string()->parseBBCode( $message );

// Apply e-mail replacements
$message = Foundry::string()->replaceEmails( $message );

// Apply hyperlinks
$message = Foundry::string()->replaceHyperlinks( $message );


Regards,
Kevin
The replies under this section are restricted to logged in users or users with an active subscription with us