By Georges LEGER on Thursday, 19 January 2017
Posted in General Issues
Replies 1
Likes 0
Views 104
Votes 0
Hello,

Do you know if it's possible to hide users profiles at the subscription and on the website. We want to keep profiles actives but we don't want users to see them on the website.

Thanks in advance for your help.

Georges
Do you mean you just want to hide them in the users listing? Edit the file /components/com_easysocial/themes/wireframe/users/default/default.php using the template editor at the back end of EasySocial and remove the codes below,

[gist]
<?php if ($profiles) { ?>
<div class="es-side-widget">
<?php echo $this->html('widget.title', 'COM_EASYSOCIAL_USERS_BROWSE_BY_PROFILES'); ?>

<div class="es-side-widget__bd">
<ul class="o-tabs o-tabs--stacked">
<?php foreach ($profiles as $profile) { ?>
<li class="o-tabs__item has-notice filter-item<?php echo $filter == 'profiletype' && $activeProfile->id == $profile->id ? ' active' : '';?>" data-filter-item data-type="profiles" data-id="<?php echo $profile->id;?>">
<a href="<?php echo ESR::users(array('filter' => 'profiletype', 'id' => $profile->getAlias()));?>" class="o-tabs__link">
<?php echo $profile->get('title'); ?>
<div class="o-tabs__bubble"><?php echo $profile->totalUsers;?></div>
</a>
<div class="o-loader o-loader--sm"></div>
</li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>

[/gist]
·
Thursday, 19 January 2017 01:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post