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.

Photo Albumn not showing when cloned and put into a loadposition

9 years 2 months ago
Licenses:
JomSocial Expired

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 .

9 years 2 months ago
Licenses:

Hi, Gordon.

Please, post URL of that article so I could see that module.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 2 months ago
Licenses:
JomSocial Expired

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)"

9 years 2 months ago
Licenses:

Hi, Gordon.

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
9 years 2 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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

9 years 2 months ago
Licenses:
JomSocial Expired

Hello,

Can you set your album privacy for public please? seems your album privacy right now is for friend or site members only.


Nope, I can't find where to do that.

Beside that I unable login to your frontend, can you let me know how to do this?


Go to "Contact us" Menu, then find "My Login" at the bottom.

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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!

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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');
after this code :
$extraSQL .= ' AND '. $db->quoteName('type') .' NOT LIKE '.$db->Quote('profile%');

- open this file modules/mod_community_photos/mod_community_photos.php, find this code :
$albums = $model->getAllAlbums(0, $limit, $sortBy);
replace to :
$albums = $model->getAllAlbums(0, $limit, $sortBy, 'exclude_default');

thank you!

9 years 1 month ago
Licenses:
JomSocial Expired

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

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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'); ?>
and change to :
<?php echo CRoute::_('index.php?option=com_community&view=photos&task=group'); ?>

#2 you can modify this file components/com_community/views/photos/view.html.php find this code :
$sortBy = $jinput->getString('sort', 'date');
replace to :
$sortBy = $jinput->getString('sort', 'name');

9 years 1 month ago
Licenses:
JomSocial Expired

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.

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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

9 years 1 month ago
Licenses:
JomSocial Expired

Hi,
And thanks but still no joy....

This line does not exist in default.php

<?php echo CRoute::_('index.php?option=com_community&view=photos&task=display'); ?>

So I cant replace it.
Thanks
Gordon

9 years 1 month ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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>

change to :
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=group'); ?>"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_VIEW_ALL_PHOTOS'); ?></a>

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