Before we inform you that Social Network Plugin have a possibility to override template files to not loss your changes when you upgrade/reinstall the plugin, see these steps to understand now to do this:
- Access to Admin panel (
http://docs.easy-profile.com/index.php/article/social-network-configuration)
- Go to Theme Manager
- Choose "SocialNetwork Theme"
- Choose your file to override on left menu
- Click on button "Copy" and copy it in "Blue Theme"
- Come back and choose "Blue Theme"
- You will see your override to customize in files list
"Social Network theme" is a system theme, so it will be overwritten every upgrade/install of this plugin
"Blue Theme" is an example theme and you can customize without loss your modifications on upgrade/install of this plugin
Button "Add as Friend" come from different files, you need to remove this button if user not have permissions:
- Elements/cover.ctp (profile page) - You can skip this file because normal users can't see this page, you have already restricted this page
- Elements/misc/user_mini.ctp (this is shown in some user list)
- Elements/misc/users_list_bit.ctp (this is shown in People section)
- Blogs/view.ctp (this is a user box in Blogs article)
TIP
to get user access levels you can use function
getAuthorisedViewLevels, see this example:
$jUser=JFactory::getUser();
$acl=$jUser->getAuthorisedViewLevels();