By James on Tuesday, 31 October 2017
Posted in General Issues
Replies 4
Likes 0
Views 486
Votes 0
When photos are disabled in EasySocial Settings the menu for them is still active in the ES Mobile Template.

Thanks,
James
Thanks James! By the way, my files are restored now and here's a quick fix, edit the file /templates/esmobile/index.php and locate the codes below at line 165:

[gist]
<?php if ($this->my->id) { ?>
<div class="es-mobile-menu__item">
<a href="<?php echo ESR::albums(array('uid' => $this->my->getAlias(), 'type' => SOCIAL_TYPE_USER));?>">
<i class="fa fa-photo"></i>
<span><?php echo JText::_('COM_EASYSOCIAL_TOOLBAR_PROFILE_PHOTOS');?></span>
</a>
</div>
<?php } ?>
[/gist]

Replace it with,

[gist]
<?php if ($this->config->get('photos.enabled') && $this->my->id) { ?>
<div class="es-mobile-menu__item">
<a href="<?php echo ESR::albums(array('uid' => $this->my->getAlias(), 'type' => SOCIAL_TYPE_USER));?>">
<i class="fa fa-photo"></i>
<span><?php echo JText::_('COM_EASYSOCIAL_TOOLBAR_PROFILE_PHOTOS');?></span>
</a>
</div>
<?php } ?>
[/gist]
·
Tuesday, 31 October 2017 01:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks James, logged this down into our internal issue tracker. My mac just gave way again and I am now restoring my files, so I don't have the files with me yet.
·
Tuesday, 31 October 2017 00:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Sounds good and no problem.

I'll continue to post as I come across technical issues and usability issues.

Thanks,
James
·
Tuesday, 31 October 2017 01:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post