By Daniel Ribeiro on Monday, 18 January 2016
Posted in General Issues
Likes 0
Views 660
Votes 0
Good morning!

My community will not count with Events, Groups, Friends, Videos and Photos. So I disabled all three applications about Events, both applications about Groups, three about Videos, the one about Friends and all three about Photos - on “Applications” list.

Events and Groups are gone - I believe.

But Friends are still hanging firmly at some places…
I renamed via ftp all the button related .php files (located at /com_easysocial/themes/wireframe/profile) and the “add friend” button disappeared from all profiles. Good.
But, in every profile, I still see (below Avatar) the number of friends each person have (and it’s a clickable link to it’s friends list - which I don’t need to exist anymore). Please, how can I hide/delete it? Also, the number of “Videos” the user have… wish it was not there as Videos are disabled on the backend.

When I click on my user on the Toolbar to see the menu that pops up, it still lists Friends, Photos and Videos - even being all of them disabled at the backend. Is there a way for it to not show anymore?

Finally, the "Friend Requests" icon from Toolbar…

I think that’s it!

Thank you veeeery much in advance, and wish you all a nice morning!!
Hey Daniel,

You can't actually "disable" friends and I believe we don't have a settings for this. To remove the friends below the avatar, edit the file /components/com_easysocial/themes/wireframe/profile/default.header.php and remove the codes below:


<span>
<a href="<?php echo FRoute::friends( array( 'userid' => $user->getAlias() ) );?>">
<i class="fa fa-users"></i>
<?php echo JText::sprintf( FD::string()->computeNoun( 'COM_EASYSOCIAL_GENERIC_FRIENDS' , $user->getTotalFriends() ) , $user->getTotalFriends() ); ?>
</a>
</span>


When videos is disabled, the video counter below the profile avatar shouldn't show up (This is what I see from the code)


As for toolbar popup, you can remove codes that you do not want by editing the file /components/com_easysocial/themes/wireframe/toolbar/default.profile.php


<li>
<a href="<?php echo FRoute::friends();?>">
<?php echo JText::_('COM_EASYSOCIAL_TOOLBAR_PROFILE_FRIENDS');?>
</a>
</li>


To remove the friend notifications counter, edit the file /components/com_easysocial/themes/wireframe/toolbar/default.php and remove the codes below:


<?php if ($friends) { ?>
<?php echo $this->loadTemplate('site/toolbar/default.friends', array('requests' => $newRequests)); ?>
<?php } ?>
·
Monday, 18 January 2016 12:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Man... you are GREAT!

It's all done and working beautifully! Thank you very very much!
·
Monday, 18 January 2016 13:27
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Daniel Glad that your issues are resolved now.
·
Monday, 18 January 2016 15:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post