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.

Module community_photos not displaying group photos

11 years 3 months ago
Licenses:
JomSocial Active

ISSUE SUMMARY:
Module community_photos not displaying group photos like module the community_videos module is displaying group videos.

I have changed 2 files:
1: \components\com_community\models\photos.php at line 277:
$where = ' WHERE a.`published`=' . $db->Quote(1);

if (!is_null($photoType)) {
$where .= ' AND b.`type` = ' . $db->Quote($photoType);
}
Remove line 292: $where .= ' AND a.`published`=' . $db->Quote(1);

2: In community_module -> mod_community_photos.php at line 22:
$latestPhotos = $model->getAllPhotos(null, PHOTOS_USER_TYPE, $default, 0, COMMUNITY_ORDER_BY_DESC,
changed in:
$latestPhotos = $model->getAllPhotos(null, null, $default, 0, COMMUNITY_ORDER_BY_DESC,

Best regards
Dennis





STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

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

Hi,

Actually this is our default bahavior, the photo module only for personal public photos

Thank you

11 years 3 months ago
Licenses:
JomSocial Active

Hi,

And why is the module for the videos displaying personal and group videos.
I think its the same sort of module so why different behavior?

Maybe better to make it configurable so people can decide themself.

Hoop you can make the change in community\models\photo.php, its backwordscompatible, so an upgrade will not override it.

Best regards
Dennis

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

Hi Dennis,

We will change the mayor modules functions in version 4.1, so please wait the much improvment in 4.1 :)

thank you

11 years 3 months ago
Licenses:
JomSocial Active

Ok, i will wait. For now the changes for are ok.

Thanks.

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