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.

Filtered by: status display profile picture update activity

7 years 11 months ago
Licenses:
JomSocial Active

Hello.

1) Navigate to backend and turn ON "Change Profile Picture" user points.
2) In frontend upload new avatar
3) Set in main stream "Filtered by: status"
Result: stream display "Super User has a new avatar." activity.



Expected Result: filtered stream should not display "Super User has a new avatar." becouse it is not "status".
"Super User has a new avatar." should be displed in "Filtered by: photos"


Thanks.


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

Hi,

Nice found, this is valid bug..

thank you!

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

to fix this open this file components/com_community/models/activities.php, find this code :

$andWhere[] = ' ( a.' . $db->quoteName('app') . ' REGEXP \'' . implode("'|",
$filters['apps']) . '\' ) ';
replace to
// remove avatar stream item if filtered by Status
                     if (isset($filters['apps'][0]) && $filters['apps'][0] == 'profile') {
                         $andWhere[] = ' ( a.' . $db->quoteName('app') . ' REGEXP \'' . implode("'|",
                             $filters['apps']) . '\' AND a.' . $db->quoteName('app') . ' NOT REGEXP \'avatar\' ) ';
                     } else {
                         $andWhere[] = ' ( a.' . $db->quoteName('app') . ' REGEXP \'' . implode("'|",
                              $filters['apps']) . '\' ) ';
                     }

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