Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Missing full description of activities in the notifications box

7 years 8 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

ISSUE SUMMARY:
Hi guys,
i'm using JomSocial 4.2.4 with the Socialize template on Joomla 3.6.2, when a user logs in and clicks on the notifications icon in the top bar, the pop-up shows the activities but not in full, it looks like some language file is missing or corrupted. Instead of the links or names of who did what and where i only see "liked your photo on" or "posted in the group" and that's it.



STEPS TO REPLICATE:
1. Open the website
2. Login with admin credentials
3. Click on the Notificaiton icon in the top bar

RESULT
the stream looks like this:
"liked your photo on .
25 minutes ago
liked your photo on .
48 minutes ago
liked your photo on .
1 hour 59 minutes ago
liked your .
2 hours 7 minutes ago
posted in the group."

EXPECTED RESULT
To have full description of the activity, e.g. [user] liked your photo on [album] with links to the users profile and the activity.

BROWSER
Google Chrome

7 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Christina,

Would you mind provide me phpmyadmin and FTP access, please?

thank you!

7 years 8 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

ftp and cpanel access sent

7 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Christina,

I found this is bug from us.. well actually JRegistry from Joomla change the behavior, so we need to update it..

I will let you know once the patch availbale.

thank you!

7 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Christina,

To fix this, please apply this code
- open this file components/com_community/models/notification.php, add this code after line 81 :

if($params instanceof JRegistry){
 			$params = $params->toArray();
 		}

and find this code :
$notification->params	= is_object( $params ) ? json_encode($params) : '';

replace to :
$notification->params	= is_array( $params ) ? json_encode($params) : '';

- open this file components/com_community/controllers/inbox.php, find this code - this method already applied by myself :) - :
$obj->body = json_encode($body);
replace to :
$obj->body = json_encode($body->toArray());

- open this file components/com_community/models/inbox.php, find this code - this method already applied by myself :) - :
$obj->body = json_encode($body);
replace to :
$obj->body = json_encode($body->toArray());

I hope it will work

thank you!

7 years 8 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Hi Dimas,

i've done the change in the notification.php file, tried putting the code both above and under the if($validate) code segment but it's not working. The notifications still look like "has made a comment on your . 38 minutes ago"

7 years 8 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Any news guys?

7 years 8 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Cristina,

I just checked this and its fine here



thank you!

Attachments:
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