Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Comments posted inside album page doesn't display in stream (Bump is turned ON)

6 years 11 months ago
Licenses:
JomSocial Active

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


Expected Result 1: Stream should display comment's text (like for video for example):


4) Navigate to main Stream.
5) Find activity "Super User shared 9 photos in the Public album album" (this activity doesn't display comment#1 as in Result1).
6) Post "comment#2"

Result2: Stream display only "comment#2" and doesn't display "comment#1". But if navigate to album page, we can see #1 and #2 comments.
Expected Result2: Stream should display #1 and #2 comments regardless of which way was the comment posted.

Result 3: User that posted comment#1 inside album looks at the stream and can't see his comment#1 (he think it was deleted). But comment#1 is still inside album.


I think when Bump (Order by last comment) option is turned ON, stream should display one activity "Super User shared 9 photos in the Public album album" + few latest comments. And bump this activity everytime anybody comment it (in stream or inside album).

Thanks.


Sorry for my English
Attachments:
6 years 11 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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..

6 years 10 months ago
Licenses:
JomSocial Active

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>


after this code:

<div class="joms-stream__body">


Sorry for my English
6 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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!

6 years 6 months ago
Licenses:
JomSocial Active

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.


Sorry for my English
6 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

- by default we dont show comment photo, for now we only provide the text comment only
- result 2 & result 3? which one?

6 years 6 months ago
Licenses:
JomSocial Active

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.


Sorry for my English
6 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Thank you for the explanation, that bug already added to our bug list

6 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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();
                 }

this fix only will be applied on next new comment

6 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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>

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW