ISSUE SUMMARY:
I clone(duplicate) the photos module...."mod_community_photos"
I set the properties.
"display" = "albums"
"From" = "Groups"
"sort by" = "Newest"
"Limit" = "20"
"Position" = "myphotos"
I have an article = "Website News"
in it I have {loadposition myphotos}
It displays nothing even tho there are many group albums.
If I change the properties to...
"display" = "photos"
"From" = "all"
"sort by" = "Newest"
"Limit" = "20"
I get 20 photos.
I want to display photo albums, not photos.
This is a redirected website, and therefore the admin site can only be reached from
ftlauderdaleaaca.org/site/administrator
.
Hi, Gordon.
Please, post URL of that article so I could see that module.
Ok, here is the URL of the Page, and seethe "Photos" section...
aacaftlauderdale.org/club-calendar
You can find the document in content->articles->website news
the module is named "photos (2)"
Hi, Gordon.
I assign developer to this thread.
Hi Gordon,
Can you set your album privacy for public please? seems your album privacy right now is for friend or site members only.
Beside that I unable login to your frontend, can you let me know how to do this?
thank you
Hello,
Can you set your album privacy for public please? seems your album privacy right now is for friend or site members only.
Beside that I unable login to your frontend, can you let me know how to do this?
Hi Gornod,
I got it, you dont have members album so you cant change the permission, you only have groups album. Seems this is valid bug. I will report this to our developer.
thank you!
Hi,
For fixing this,
- open this file components/com_community/models/photos.php, add this code :
}elseif($albumFilter == 'exclude_default'){
$extraSQL .= ' AND '. $db->quoteName('type') .' NOT LIKE '.$db->Quote('%avatar');
$extraSQL .= ' AND '. $db->quoteName('type') .' NOT LIKE '.$db->Quote('%cover');
$extraSQL .= ' AND '. $db->quoteName('name') .' <> '.$db->Quote('Stream Photos');
$extraSQL .= ' AND '. $db->quoteName('type') .' <> '.$db->Quote('user');
$extraSQL .= ' AND '. $db->quoteName('type') .' NOT LIKE '.$db->Quote('profile%');
$albums = $model->getAllAlbums(0, $limit, $sortBy);
$albums = $model->getAllAlbums(0, $limit, $sortBy, 'exclude_default');
Hi,
Well, it sorta worked.... I was all excited to try the fix that you sent, but there is a problem with the solution.... at the bottom of the loadposition in the article itself there is a link that says "View All Photos" (
ftlauderdaleaaca.org/site/club-calendar/photos2/display
). but when clicking on that link it goes to a page that says "No photo albums created yet", it does have 3 tabs at the top, but it is defaulting to "Member Albums", and not to "Group Albums". My users are unsophisticated and this will be confusing to them. Is there a way to fix the link so that when clicked it DEFAULTS to the "Group Albums" ,not the "Member Albums"?
Also,how would I change the sort order of the Group Albums into "sort by Name", currently they are sorted by "Date"?
Thanks
Gordon
Hi Gordon,
#1 that is a bug, since you dont have any photo on users but you only have photos on group, but the link is goes to members photos, the temp solution you can modify this file modules/mod_community_groups/tmpl/albums.php, find this code :
<?php echo CRoute::_('index.php?option=com_community&view=photos&task=display'); ?>
<?php echo CRoute::_('index.php?option=com_community&view=photos&task=group'); ?>
$sortBy = $jinput->getString('sort', 'date');
$sortBy = $jinput->getString('sort', 'name');
Hi,
Well I tried to do your fix but there is no file named modules/mod_community_groups/tmpl/albums.php in this folder modules/mod_community_groups/tmpl/
only default.php and index.html exist
The sorting fix worked fine.
Oh ya seems you are using old code, I saw on our latest code for version 4.2 lol...so please you edit default.php
Hi Gordon,
I see, please change this :
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos'); ?>"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_VIEW_ALL_PHOTOS'); ?></a>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=group'); ?>"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_VIEW_ALL_PHOTOS'); ?></a>