By Tony Zee on Monday, 14 April 2014
Posted in Technical Issues
Replies 5
Likes 0
Views 1.2K
Votes 0
Hi Guys,

We are using Easydiscuss 3.2.9385 with Joomla 3.2.3 and Jomsocial 3.1.1

We have found that when we post from Easydiscuss with a smiley face, the HTML from the emoticon image breaks the template on the Jomsocial Activity stream page (we are using a yootheme theme).

We have changed the editor to JCE however the posts then contain HTML, which doesn't break anything, but just looks ugly).

Can you please look to fix this issue?

Thanks and regards.
Hello Tony,

Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?
·
Monday, 14 April 2014 10:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Unfortunately I cannot provide you with access. This is a private site and we are not authorised to provide access to third parties.

I'm sure you will be able to replicate the issue on your side, we've tried on 2 different installations and have the same problem.

Kind regards.
·
Monday, 14 April 2014 14:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony zee,

We are very sorry, but can you give us a screenshot of the issues on your site. This will helps us narrowing the possibility of the issues and helping us to find the needle in a haystack.

Please be advise.
Thanks.
·
Monday, 14 April 2014 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
What we think is happening is that the truncate function is truncating html tags. It seems that you run the text through the bbcode converter then truncate it to whatever the setting is in the back end which truncates tags and if it happens to remove say a </span tag then it can mess up the html.

We think you need to add something to not truncate tags or change the order of operation.

The issue could be in helpers/jomsocial.php around line 119
$content = EasyDiscussParser::bbcode( $content );
$content = strip_tags( $content );
$content = JString::substr( $content , 0 , $config->get( 'integration_jomsocial_activity_content_length') ) . '...';


I hope this helps.

Please let me know what you find?
·
Tuesday, 15 April 2014 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony,

I am sorry for the delay of this reply.

$content = strip_tags( $content );


The above code should remove any html tags from the content so it should be safe to truncate the content after strip_tags().
Anyway, i try to replicate your issue from my end but I cannot reproduce the issue. Please see:

http://screencast.com/t/rdoDOKam1y
http://screencast.com/t/FHwJsunIjidv

I appreciate if you can pass us your Joomla admin access and your ftp account so that we can investigate your issue further.
Please advise.
Sam
·
Tuesday, 15 April 2014 18:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post