By Constantin Romankiewicz on Monday, 07 March 2016
Posted in Technical Issues
Replies 3
Likes 0
Views 1K
Votes 0
I'm experiencing this issue with Joomla! 3.4.8 and Komento 2.0.5.

If there are multiple images in one comment, the BBCode doesn't get replaced correctly. For example, a comment containing
[img ]alpha.jpg[/img ][img ]beta.jpg[/img ]
leads to this output:
<img src="/alpha.jpg[/img][img]beta.jpg" />


Example: here

The pattern in helpers/comment.php, line 275 seems to be to greedy, grabbing everything between the first [ img ] and the last [ /img ].
Hello,

Please replace the attached file in: ../components/com_komento/helpers/comment.php and see how it goes.
·
Tuesday, 08 March 2016 11:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Nick,
thank you for your reply! Your file repairs my original problem, but enforces another issue, for which I'll open another ticket.

Best regards,
Constantin
·
Tuesday, 08 March 2016 21:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Constantin
·
Wednesday, 09 March 2016 05:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post