Support

  1. snehakolte
  2. Support
  3. Monday, November 24 2014, 12:00 PM
I have two types of members on my site - Male and Female. How can make sure, a male can view only profile of a female and not other male. Similarly a female should be able to view profile of a male and not another female. How can I achieve this in easy-profile ?
Accepted Answer
admin Accepted Answer
Admin
Hi,
the best way is to override our template, with override you will not lose the changes during upgrades.

Copy /components/com_jsn/views/profile/tmpl/default.php into /templates/your_template_folder/html/com_jsn/profile/default.php

You can change /templates/your_template_folder/html/com_jsn/profile/default.php and add the code to prevent to see this profile.

to get value of field please refer to this doc: https://www.easy-profile.com/docs/38-jsnuser-object.html
  1. more than a month ago
  2. Support
  3. # Permalink
snehakolte Accepted Answer
Thanks ! I will try.
  1. more than a month ago
  2. Support
  3. # 1
snehakolte Accepted Answer
Someone can play with the URL and still can view any profile.Can this be achieved by the code hack ? Where is the view profile code ?
  1. more than a month ago
  2. Support
  3. # 2
snehakolte Accepted Answer
i will try, Thanks !
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
Hi,
you can do this:
- Create usergroups "male" and "female"
- Create Access Levels for "male" and "female" groups called "Male ACL" and "Female ACL"
- Create menu item for User List (visible for male users to show female users) and set these options
Access: Male ACL
Custom SQL WHERE: gender*='female'
- Create menu item for User List (visible for female users to show male users) and set these options
Access: Female ACL
Custom SQL WHERE: gender*='male'

* replace "gender" with your gender field alias

more info to use Custom SQL parameter here https://www.easy-profile.com/docs/69-sql-custom-where-list-and-module.html
  1. more than a month ago
  2. Support
  3. # 4
snehakolte Accepted Answer
No, I am not using the Social Network Plugin.
  1. more than a month ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
Hi,
to find the best way to do this we need to know if you use Social Network Plugin.:)
  1. more than a month ago
  2. Support
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.