LLFJ doesn't exclude some images

3 years 10 months ago #9340 by sfg85
Hello!

I have a technical issue and would like to ask you to help me. I have a component for comments, which displays also the avatars of users. If I enable a plugin LLFJ, the avatars doesn't appear. I tried excluding the avatars by adding a preffix thumb_ in the control panel, however it doesn't help. Could you please check the issue and tell me if it's possible to resolve the issue. An example you may see at the bottom of the following page here: link

3 years 10 months ago #9341 by Vitja
Hi Philip,

the reason is that the component loads the template output via JavaScript. In this loading process all placeholders are replaced with the correct data obtained by an Ajax request:

<script type="text/template" id="ccomment-comment-template">
[...]
	<img class="ccomment-avatar" src="{{avatar}}" alt="avatar"/>
[...]

The solution would be to stop the replacement for this kind of output. I could modify the LLFJ plugin to exclude these template blocks to prevent the replacement.

I will upload a test version for you soon! :)

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
3 years 10 months ago #9342 by Vitja
This should do it:


Part of the message is hidden for the guests. Please log in or register to see it.


Please check the linked version!

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997

This message has an attachment file.
Please log in or register to see it.

3 years 10 months ago #9343 by sfg85
Good day, Vitja!

Everething is great -- the plugin works and the thumbnails appear correctly. Can I ask you if this modification will be in next versions of LLFJ, or it's a special modification only for me?

Philip
3 years 10 months ago #9344 by Vitja
Hello Philip,

I will release a new version with this new functionality today.

Thank you for your good participation!

Greetings

Kubik-Rubik Joomla! Extensions

Please support my work with a review in the Joomla! Extensions Directory: extensions.joomla.org/profile/profile/details/61997
Time to create page: 0.184 seconds