Recently, There have been many FreelanceEngine owners asked us How to make their profile be restricted? How to prevent non-logged in user from viewing details of the profile in FreelanceEngine? It means only those, who registered on FrE website can see the information of the employers and freelancers. Guests or Visitors can only view at homepage and can not view all the details of the profiles. This tutorial can help you modify that that feature.
To do this request, you have to customize the code a little bit.The profile’s code is in author.php file. You may copy this file to freelanceengine-child/folder then check code on this file and use the condition if (is_user_logged_in() ) {…} to check whether current user logged in,displayed information or hid the information from visitors/guests
Ex:
if ( is_user_logged_in() ) {
/// show information.
} else {
echo 'You do not have permission to access this page';
}
(more…)