Support

  1. jvlaming
  2. General
  3. Thursday, January 23 2014, 01:30 PM
Hello,

I have a few ("is it possible" or "how to";) questions about JSN_Profile

1) How can I have a (text) field in the profile (for any user) that is only visible to and editable by admins?
Apparently the "Access" level for a field makes a field visible only if the owner of that profile has that level. I want anyone with that level (say admin) to see that field.

2) Similarly but for the whole profile. Is it possible that Admins also edit (any) profile from the front-end? Now that edit button only appears for your own profile.

3) Is it possible/are there plans for a profile field that allows you to link any type of file (say pdf) and upload it to the server? If not, suggestions?

thanks!
Son_of_Sky Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 1
Son_of_Sky Accepted Answer
Саня Мойсеюк wrote:
but it not work for page index.php?option=com_jsn&view=profile

I don't know how i can get id of current profile by another way
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
in profile page JRequest::getVar('layout','') is always empty, so you can do this
if($item->params->get('hideowner','')==1 && JFactory::getApplication()->isSite() && JRequest::getVar('view','')=='profile' && $user->id==$prof ) return '';



to get id of current user you can do this:
$prof = JRequest::getVar('id',$user->id);

if var "id" is empty then user see own profile.
  1. more than a month ago
  2. General
  3. # 3
Son_of_Sky Accepted Answer
thank you a lot. it Working good
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
Hi,
1) if you want a text field equal for all users can use the type 'delimeter' . If you want each user to have a custom text to make this change to the file administrator/components/com_jsn/helpers/fields/text.php at line 46 add the follow code:
if($item->alias=="alias_of_your_field" && JFactory::getApplication()->isSite() && JRequest::getVar('layout','')=='edit') return '';

replace alias_of_your_field with your alias.

2) Sorry, but not possible. The Edit Profile Page is a Joomla core page, easy profile controls the fields with own user plugin.

3) Yes, I will develop in future releases.
  1. more than a month ago
  2. General
  3. # 5
jvlaming Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 6
admin Accepted Answer
Admin
I don't think that answers my question

Yes, with this mod you can hide the field only on 'profile edit' page in frontend. The user can see the value on your profile and admin can change the value on backend.

Try it.
  1. more than a month ago
  2. General
  3. # 7
Son_of_Sky Accepted Answer
Hi. Please answer, How I can hide field from profile owner for editing and for view.?
I need field for moderators like: "Info about client"
  1. more than a month ago
  2. General
  3. # 8
admin Accepted Answer
Admin
Hi,
you can set the fields to not available on registration, edit profile and profile page. Admin can see and edit these fields from backend.
  1. more than a month ago
  2. General
  3. # 9
  • 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.