Support

  1. HairyDogDigital
  2. Support
  3. Wednesday, December 16 2015, 01:14 AM
I have several fields that users are not permitted to edit, but I still want to display the field on the edit page so that the user can see the field value in context with the editable fields. I see how I can remove the field from the edit page, but how do I go about including it but making it non-editable. The only thing I could think to do this was to dynamically set the "enabled" properly of the target fields on page load. I'm hoping there is a more elegant way to handle this. Please advise.
admin Accepted Answer
Admin
Hi,
sorry for late reply, it was night for us :D

you can use Delimiter field type with Content Plugin.

Example
-Create a field (only available in edit profile) of type Delimiter
-In description put this code:
{user firstname}

Now in your edit profile you will see a field with firstname, you can change firstname with some other Field Alias.

if you want a readonly input you can put in description something like this
<input type="text" value="{user firstname}" readonly="readonly" />

this create a text input with non editable value

{user firstname} syntax become from our Content Plugin, docs at http://docs.easy-profile.com/index.php/article/content-plugin
  1. more than a month ago
  2. Support
  3. # 1
HairyDogDigital Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi Robert,
only one thing: syntax like "{user firstname}" show firstname of current user, so if you edit some other user from frontend (with your admin acocunt) you will see your admin data. Try to use something like this
{user firstname displayedOrMe}

it's better ;)
  1. more than a month ago
  2. Support
  3. # 3
HairyDogDigital Accepted Answer
Hi JSN,

After trying to implement one of the solutions you indicated, I realized it did not completely solve my issue, because there was more to it than met the eye.

Here is a more complete explanation of my use case. My website has a hierarchy of user groups:

public

registered

member

officer

[/list]
[/list]
[/list]

General registered users are permitted to edit most of their profile fields, whereas member groups (or higher) are not allowed to edit many fields. The reason for this is that some of the membership data is maintain external to the Joomla site and then automatically synchronized to Joomla database.

As a simple example, one data field is phone number. When a non-member, site visitor registers for an account, once the account is activated, they are free to edit their phone number. A user who is a member can only view their phone number.

I created a delimiter field of "phone_readonly" and can get it to display on the member user edit page, but I cannot get the regular phone field to NOT display on that same page.

Is this possible?

My only other thought was to NOT nest the member (and higher) groups as a subset of the registered user group. However, I am not certain what issues I may introduced in Joomla and other extensions by NOT having the group under the registered user groups.

Any thoughts?
  1. more than a month ago
  2. Support
  3. # 4
HairyDogDigital Accepted Answer
Sorry... the message board did not nest the lists as I thought it would. See the attached image that shows a good representation of the group structure.
  1. more than a month ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
Hi,
you can't make a field available for all users and editable only for some usergroup.

But you can do something like this:
You can create 2 phone number fields,
- Phone number 1 available only for normal users and editable
- Phone number 2 available only for members and not editable
  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 Online

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.