Hello. This topic a little bit related with another "Bump (Order by last comment) create 2 activity in streamwhen user post video-comment":
www.jomsocial.com/forum/profile-universa...ost-video-com#174154
Steps:
1) Turn ON "Order by last comment" option in backend (Bump function)
2) Navigate to album page "Public album"
3) Post comment#1
Result 1: Stream display "Super User commented on the album Public album" but doesn't display comment-text
Hi,
The deleted comment on that order stream config is a issue from jomsocial, we already set it as valid bug, but since our system cant fix it on current code so we pending to fix it..
I will try to follow up this issue again :) i hope can be fixed soon..
Hello.
To fix this: "Result 1: Stream display "Super User commented on the album Public album" but doesn't display comment-text"
www.jomsocial.com/media/kunena/attachmen...83/Screenshot_28.jpg
I had to edit file: html/com_community/layouts/activities.albums.php
and add
<p><span>
<?php
$comment = JHTML::_('string.truncate', $wall->comment, $config->getInt('streamcontentlength'));
$comment = CActivities::format($comment);
echo $comment;
?>
</span></p>
<div class="joms-stream__body">
Hi,
Thank you for the code, it will be usefull for another customers, and please you override that modification..so it will be safe on next upgrade, because we cant promise it will be implemented it soon.
thank you!
Hello. Can you please bump this bug?
In my previous message was provided code to display comment's text - it allow to fix problem described in "Result 1".
But there is related problem: if user also attached photo to his comment, stream will display only text (without photo-thumb).
Also problems described in "Result2" and "Result3" are still there - users still continue thinking thet ther comments are deleted (because they can't find them in stream), but all comments stored inside album page.
Thanks.
Hi,
- by default we dont show comment photo, for now we only provide the text comment only
- result 2 & result 3? which one?
Hi. Like in first post.
Result 1: Stream display "Super User commented on the *** album" activity but it doesn't display comment-text (no text).
Result2/3: Stream display only "comment#2" that was posted by stream and doesn't display "comment#1" that was posted inside album. But if navigate to album page, we can see #1 and #2 comments.
But with video it works very well - doesn't matter how user posted comment for video:
way 1) in stream
way 2) in single video page / videos's modal window
=> stream display all comments, that was posted by way 1 and 2.
Thanks.
Thank you for the explanation, that bug already added to our bug list
to fix the comment album on stream
- open this file components/com_community/controllers/photos.php
- add this code after line 1897
// add activity id if stream exist for this album comment
$wallModel = CFactory::getModel('wall');
$comments = $wallModel->getAllPost('albums', $uniqueId);
foreach ($comments as $comment) {
$commentparams = new CParameter($comment->params);
if ($commentparams->get('activityId', 0)) {
$activityId = $commentparams->get('activityId', 0);
break;
}
}
if (isset($activityId) && $activityId > 0) {
$wallParam = new CParameter('');
$wallParam->set('activityId', $activityId);
$wallTable = JTable::getInstance('Wall', 'CTable');
$wallTable->load($wall->id);
$wallTable->params = $wallParam->toString();
$wallTable->store();
}
To fix comment content on album stream
- open this file components/com_community/templates/jomsocial/layouts/activities.albums.php
- add this code after line 91
<p>
<span>
<?php
$comment = JHTML::_('string.truncate', $wall->comment, $config->getInt('streamcontentlength'));
$comment = CActivities::format($comment);
echo $comment;
?>
</span>
</p>