By Fagault Eric on Wednesday, 18 July 2018
Posted in General
Likes 0
Views 435
Votes 0
Hello,
I just checked the changelog of the new update (2.2.3) I see that the files:
users / default / default.php
and
toolbar / default.php

Have been modified.
I use these files in the custom template, could you tell me what has been changed so that I can replicate it in the files I use in the custom?

Best regards.

Eric
Hi there,

For ../components/com_easysocial/themes/wireframe/toolbar/default.php files, we have added followers and friends links in it as you can check on codes below.
[gist type="php"]
<?php if ($this->config->get('friends.enabled')) { ?>
<li class="<?php echo $highlight == 'friends' ? 'is-active' : '';?>">
<a href="<?php echo ESR::friends();?>"><?php echo JText::_('COM_ES_MY_FRIENDS'); ?></a>
</li>
<?php } ?>
<?php if ($this->config->get('followers.enabled')) { ?>
<li class="<?php echo $highlight == 'followers' ? 'is-active' : '';?>">
<a href="<?php echo ESR::followers();?>"><?php echo JText::_('COM_ES_MY_FOLLOWERS'); ?></a>
</li>
<?php } ?>

[/gist]

For components/com_easysocial/themes/wireframe/users/default/default.php fiels, we have added some checking for blocked users as you can see on codes below.

[gist type="php"]
<?php if (ES::config()->get('users.blocking.enabled') && $this->my->id) { ?>
<li class="o-tabs__item <?php echo $filter == 'blocked' ? 'active' : '';?>" data-filter-item data-type="users" data-id="blocked">
<a href="<?php echo ESR::users(array('filter' => 'blocked'));?>" class="o-tabs__link" title="<?php echo JText::_( 'COM_EASYSOCIAL_PAGE_TITLE_USERS_BLOCKED' , true );?>"><?php echo JText::_('COM_ES_USERS_FILTER_BLOCKED');?>
</a>
<div class="o-loader o-loader--sm"></div>
</li>
<?php } ?>

[/gist]
·
Wednesday, 18 July 2018 16:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank You
·
Wednesday, 18 July 2018 16:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Wednesday, 18 July 2018 16:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post