JomSocial On Joomla 4. What to expect? More Details

Support Forum

Welcome! Support Forums have been reactivated

Support Times

Support team is available Monday to Friday
From 12AM to 4PM (UTC Time)

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 months 2 weeks ago
  • SleepyMan's Avatar
    Topic Author
  • SleepyMan
  • Online
  • Junior Boarder
  • Posts: 864
  • Thank you received: 23
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:

Please Log in or Create an account to join the conversation.

6 months 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Offline
  • User is blocked
  • Posts: 13234
  • Thank you received: 3392
Licenses:
JomSocial Active GURU Active Publisher Expired AdAgency Expired iSEO Expired Socialize Active

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

Please Log in or Create an account to join the conversation.

6 months 1 week ago
  • SleepyMan's Avatar
    Topic Author
  • SleepyMan
  • Online
  • Junior Boarder
  • Posts: 864
  • Thank you received: 23
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

Please Log in or Create an account to join the conversation.

6 months 1 week ago
  • Dimas's Avatar
  • Dimas
  • Offline
  • User is blocked
  • Posts: 13234
  • Thank you received: 3392
Licenses:
JomSocial Active GURU Active Publisher Expired AdAgency Expired iSEO Expired Socialize Active

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!

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
  • SleepyMan's Avatar
    Topic Author
  • SleepyMan
  • Online
  • Junior Boarder
  • Posts: 864
  • Thank you received: 23
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

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
  • Dimas's Avatar
  • Dimas
  • Offline
  • User is blocked
  • Posts: 13234
  • Thank you received: 3392
Licenses:
JomSocial Active GURU Active Publisher Expired AdAgency Expired iSEO Expired Socialize Active

Hi,

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

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
  • SleepyMan's Avatar
    Topic Author
  • SleepyMan
  • Online
  • Junior Boarder
  • Posts: 864
  • Thank you received: 23
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

Please Log in or Create an account to join the conversation.

1 month 3 weeks ago
  • Dimas's Avatar
  • Dimas
  • Offline
  • User is blocked
  • Posts: 13234
  • Thank you received: 3392
Licenses:
JomSocial Active GURU Active Publisher Expired AdAgency Expired iSEO Expired Socialize Active

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

Please Log in or Create an account to join the conversation.

1 month 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Offline
  • User is blocked
  • Posts: 13234
  • Thank you received: 3392
Licenses:
JomSocial Active GURU Active Publisher Expired AdAgency Expired iSEO Expired Socialize Active

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

The following user(s) said Thank You: Vladimir

Please Log in or Create an account to join the conversation.

1 month 2 weeks ago
  • Dimas's Avatar
  • Dimas
  • Offline
  • User is blocked
  • Posts: 13234
  • Thank you received: 3392
Licenses:
JomSocial Active GURU Active Publisher Expired AdAgency Expired iSEO Expired Socialize Active

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>

The following user(s) said Thank You: Vladimir

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum