By Alexandre Cayer on Sunday, 09 November 2014
Posted in Technical Issues
Replies 8
Likes 0
Views 831
Votes 0
Hi Guys

Few issues with album.

a) On dashboard, there is no way to take out the RECENT albums module beside template overriding
b) When you enable Group-album in settings but you disabled the option in ALBUM (the concept is to have only albums available for groups)... wellll a few errors happen.
i) off the bat, that option doesn't work by itself (a group album only)
ii) the way it is working right now, when you turn off ALBUM, it shut it off in the whole system EVEN if i have turned it on in GROUP... however the widget in header so as the CREATE ALBUM under MANEGE GROUP are still present (so as the module in the sidebar too) and when you try to do something with one of those.... you received an error... if its totally disable, we shouldn't be allowed to see anything

SOLUTION:

a) Setting-ALBUM: ENABLE the feature in the whole system
b) i) Setting-ALBUM-PROFILE: Enable feature for profile (which disable if a is off)
b) ii) Setting-ALBUM-GROUP: Enable feature for profile (which disable if a if off)
c) i) Theme-PROFILE: Enable album module(s) visibility etc
d) ii) Theme-GROUP: Enable album module(s) visibility etc
Hi Alex,

I am sorry for the delay of this reply.

After these two, am I correct to assume that only the Toolbar is left ?


I am sorry but currently you cant turn off the 'Photos' link from the toolbar. You will need to manually take out the link. To do this, open the file 'JOOMLA/components/com_easysocial/themes/wireframe/toolbar/default.profile.php' and remove the below code from line 59 ~ 65:


<?php if ($this->config->get('photos.enabled')){ ?>
<li>
<a href="<?php echo FRoute::albums(array('uid' => $this->my->getAlias() , 'type' => SOCIAL_TYPE_USER));?>">
<i class="ies-picture ies-small mr-5"></i> <?php echo JText::_('COM_EASYSOCIAL_TOOLBAR_PROFILE_PHOTOS');?>
</a>
</li>
<?php } ?>


Hope this help and have a nice day!
Sam
·
Monday, 10 November 2014 19:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I am sorry for the delay of this reply.

a) On dashboard, there is no way to take out the RECENT albums module beside template overriding


You can actually unpublish this recent album module from your Joomla module manager.

b) When you enable Group-album in settings but you disabled the option in ALBUM (the concept is to have only albums available for groups)... wellll a few errors happen.
i) off the bat, that option doesn't work by itself (a group album only)


When you say ALBUM, do you mean the EasySocial backend setting -> photos? If yes, then disable the photos option will actually disable your entire EasySocial photos feature.

ii) the way it is working right now, when you turn off ALBUM, it shut it off in the whole system EVEN if i have turned it on in GROUP... however the widget in header so as the CREATE ALBUM under MANEGE GROUP are still present (so as the module in the sidebar too) and when you try to do something with one of those.... you received an error... if its totally disable, we shouldn't be allowed to see anything


Regarding the above, I've fixed the issue internally and the fix will be added into next release of EasySocial. For the quick fix, download the attached two php file and place the file at below folders:

1. Copy 'view.html.php' to folder JOOMLA/media/com_easysocial/apps/group/photos/widgets/groups/ and overwrite the existing view.html.php.

2. Copy 'item.header.php' to folder JOOMLA/components/com_easysocial/themes/wireframe/groups/ and overwrite the existing file.

Remember to backup the original files first before you apply the fix.

Hope this help and have a nice day!
Sam
·
Sunday, 09 November 2014 15:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Sam,

Last point, how to disable albums in profile and enable it in group ? (as of my SOLUTION in first post)

Alex
·
Monday, 10 November 2014 12:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alex,

To disable the Album widget in your profile page, you can disable it via EasySocial backend under Applications -> User - Albums -> Widgets and disable the option 'Show Recent Albums Widget' and 'Show Album Count'. Please see http://screen.stackideas.com/2014-11-10_1307.png

You can do the same for the photo widget in user profile page. Applications -> User - Photos -> Widgets and disable the option 'Display Widget In Profile'.

Hope this help and have a nice day!
Sam
·
Monday, 10 November 2014 13:10
·
0 Likes
·
0 Votes
·
0 Comments
·
After these two, am I correct to assume that only the Toolbar is left ?

Alex
·
Monday, 10 November 2014 13:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sam, just found another bug related you should not forget. I tried the module in group or album after updating the cover it created an album... I press in the module and gave me the system error for image. If system image is out, the module shall be too
·
Wednesday, 12 November 2014 14:55
·
0 Likes
·
0 Votes
·
0 Comments
·
eeee and so these 2 other places... a little clear up in general should be done
·
Wednesday, 12 November 2014 14:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

Thanks for pointing out the issue with the group albums. Ideally if your group is an open group, user should be able to see the albums. I've fixed this internally and the fix will be added into next release of EasySocial.

For the quick fix, open the file 'JOOMLA/administrator/components/com_easysocial/models/albums.php' and look for line at 249:


$group = Foundry::group($album->uid);
$add = $group->isMember() || FD::user()->isSiteAdmin();


and replace the above with:


$group = Foundry::group($album->uid);
if ($group->isOpen()) {
$add = true;
} else {
$add = $group->isMember() || FD::user()->isSiteAdmin();
}


Hope this help and have a nice day
Sam
·
Wednesday, 12 November 2014 17:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post