By Goodwin mankomba on Tuesday, 09 September 2014
Posted in General Issues
Replies 3
Likes 0
Views 572
Votes 0
Hi
Can nay one help me on how i can customise the profile header. i want to know how i can remove buttons like friends followers, or achievements

i have posted a snapshot on what am talking about

Regards
Robert
Hello Goodwin mankomba,

Sorry for late reply to this,
You can remove the code in this file JoomlaFolder\components\com_easysocial\themes\frosty\profile\default.header.php
LINE 94 - 153

<div class="es-header-stat">
<ul class="list-inline">
<li>
<a href="<?php echo FRoute::friends( array( 'userid' => $user->getAlias() ) );?>" class="btn btn-clean">
<div class="center">
<span><?php echo $user->getTotalFriends();?></span>
</div>

<div class="center stat-desc">
<span><?php echo JText::_( Foundry::string()->computeNoun( 'COM_EASYSOCIAL_FRIENDS' , $user->getTotalFriends() ) ); ?></span>
</div>
</a>
</li>

<?php if( $this->config->get( 'followers.enabled' ) ){ ?>
<li>
<a href="<?php echo FRoute::followers( array( 'userid' => $user->getAlias() ) );?>" class="btn btn-clean">
<div class="center">
<span><?php echo $user->getTotalFollowers();?></span>
</div>

<div class="center stat-desc">
<span><?php echo JText::_( Foundry::string()->computeNoun( 'COM_EASYSOCIAL_FOLLOWERS' , $user->getTotalFollowers() ) ); ?></span>
</div>
</a>
</li>
<?php } ?>

<?php if( $this->config->get('badges.enabled' ) ){ ?>
<li>
<a href="<?php echo FRoute::badges( array( 'layout' => 'achievements' , 'userid' => $user->getAlias() ) );?>" class="btn btn-clean">
<div class="center">
<span><?php echo $user->getTotalBadges();?></span>
</div>

<div class="center stat-desc">
<span><?php echo JText::_( Foundry::string()->computeNoun( 'COM_EASYSOCIAL_ACHIEVEMENTS' , $user->getTotalBadges() ) ); ?></span>
</div>
</a>
</li>
<?php } ?>

<?php if( $this->template->get( 'profile_points' , true ) && $this->config->get( 'points.enabled' ) ){ ?>
<li>
<a href="<?php echo FRoute::points( array( 'userid' => $user->getAlias() , 'layout' => 'history' ) );?>" class="btn btn-clean">

<div class="center">
<span><?php echo $user->getPoints();?></span>
</div>

<div class="center stat-desc">
<span><?php echo JText::_( 'COM_EASYSOCIAL_PROFILE_POINTS' );?></span>
</div>
</a>
</li>
<?php } ?>


</ul>
</div>

Hope this help.
·
Tuesday, 09 September 2014 23:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Is the no way i can just deactivate from the admin backend rather than editing the codes because one day i might want to use them

Regards
Goodwin
·
Wednesday, 10 September 2014 01:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Goodwin mankomba,

Sorry for late reply to this,
Yes, that have the setting to disable this except friends box.
backend > easysocial > setting > point >
backend > easysocial > setting > badges >
backend > easysocial > setting > following >
backend > easysocial > theme > select your theme > profile tab > Display Points - NO

Hope this help.
·
Wednesday, 10 September 2014 12:18
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post