By ETS-Consulting on Sunday, 12 June 2016
Posted in Technical Issues
Replies 10
Likes 0
Views 0.9K
Votes 0
hi StackIdeas,

I have upgraded EasySocial, EasyDisscuss and Komento. After upgrade I have problem with Komento attachments. I see those are correctly uploaded into media/com_komento/uploads/ directory but those are not shown on in the comment item under article.

best regards
Martin
I have checked the generated HTML and see following:

<!-- START: Pro Version Only -->
<!-- Attachment div.kmt-attachments -->
<!-- END: Pro Version Only -->
<!-- Info span.kmt-info -->

It looks like the upgrade did downgraded my Pro Version (

best regards
Martin
·
Sunday, 12 June 2016 06:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Can you provide us one of the article comment which contain these attachment so that I can look into this?

It would be best if you can provide us with your FTP access as well.
·
Sunday, 12 June 2016 17:17
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Arlex,

thanks for your answer.

Example: http://www.kuchnia-domowa.pl/przepisy/dania-glowne/425-makaron-z-serem-na-slodko#kmt-3935

I do not have ftp access but you can easily use the ProFiles component installed on my website to navigate through files and view/modify them.

best regards
Martin
·
Monday, 13 June 2016 03:32
·
0 Likes
·
0 Votes
·
0 Comments
·
hey there,

I am sorry for the delay of this reply,

I have help you reinstall the Komento 2.0.9 version in your site, it should work fine now, can you give it a check?
·
Monday, 13 June 2016 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Arlex,

yes it works now ! thanks. But .. I do no see the attachment on the EasySocial time line. Some time ago we did together extension in the file: media/com_easysocial/apps/user/komento/themes/default/streams/content.php to see attachment here as well - now it does not work anymore ... ( Do we need to make any fix in this file? Or better could you please update the Kommento app for EasySocial so that it displayes Komento attachments correctly and publish a nee version of this app ?

thanks in advance
Martin
·
Tuesday, 14 June 2016 05:30
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry for the delay of this reply,

Hm, if I recall correctly Komento stream will not show the attachment by default. Do you have customised in this before ? media/com_easysocial/apps/user/komento/themes/default/streams/content.php
·
Tuesday, 14 June 2016 10:20
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Arlex,

yes I have did it with you (with NIK FARIS) . We have included following code into this file. After last ES update it looks like this code does not work anymore. Why could you not include the feature of displaying "Komento attachments to the default Komento app? It looks like a couple of lines of code but this would really round up the integration between ES and Komento.

On 18.02.2016 Nik Faris wrote: I've fixed it for you in this file: ../media/com_easysocial/apps/user/komento/themes/default/streams/content.php and also have fixed it internally and will be included in the next release.


<?php if ($attachments) { ?>
<h4><?php echo JText::_('COM_KOMENTO_COMMENT_ATTACHMENTS');?></h4>
<hr />

<ul class="comment-attachments" style="list-style: none;margin: 0;">
<?php foreach ($attachments as $attachment) { ?>
<li style="margin-bottom: 10px;">
<?php if( $attachment->getIconType() == 'image') { ?>
<a class="attachment-image-link attachmentImageLink" href="<?php echo $attachment->getLink(); ?>" target="_blank">
<img class="comment-attachment-image" src="<?php echo $attachment->getLink();?>"/></a>
<?php } else { ?>
<a href="<?php echo $attachment->getLink(); ?>" class="attachmentDetail">
<?php echo $attachment->filename;?></a>
<i class="icon-mime type-<?php echo $attachment->getIconType(); ?>"></i>
(<?php echo round($attachment->size / 1024);?> <?php echo JText::_('kb');?>)
<?php }?>
</li>
<?php } ?>
</ul>
<?php } ?>



thanks in advance and best regards
Martin
·
Wednesday, 15 June 2016 03:39
·
0 Likes
·
0 Votes
·
0 Comments
·
I already consult with Nick, It did push in the internally repo but we didn't publish this new Komento app in public yet.

Can you try download my following Komento app then install in your Easysocial and see how it goes?
·
Wednesday, 15 June 2016 13:01
·
0 Likes
·
0 Votes
·
0 Comments
·
hi Arlex,

now it works thanks ! But could you please also include modification to display images as images and only the other attachments as files to download?

I did following modification right now which does what I mean:


<?php if ($attachments) { ?>
<h5><b><?php echo JText::_('COM_KOMENTO_COMMENT_ATTACHMENTS');?>:</b></h5>
<hr />
<ul class="comment-attachments" style="list-style: none;margin: 0;">
<?php foreach ($attachments as $attachment) { ?>
<li style="margin-bottom: 10px;">
<?php if( $attachment->getIconType() == 'image') { ?>
<a class="attachment-image-link attachmentImageLink" href="<?php echo $attachment->getLink(); ?>" target="_blank">
<img class="comment-attachment-image" src="<?php echo $attachment->getLink();?>"/></a>
<?php } else { ?>
<a href="<?php echo $attachment->getLink(); ?>" class="attachmentDetail"><?php echo $attachment->filename;?></a>
<i class="icon-mime type-<?php echo $attachment->getIconType(); ?>"></i>
(<?php echo round($attachment->size / 1024);?> <?php echo JText::_('kb');?>
<?php }?>
</li>
<?php } ?>
</ul>
<?php } ?>


thanks
Martin
·
Thursday, 16 June 2016 04:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I've discussed with our team regarding this, we only decide to show the attachment link instead of the display the image on the stream.

To fix your current requirement, you have to manually backup this file which I attached in the following the hack for display the image on the stream instead of attachment link.
·
Thursday, 16 June 2016 10:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post