1. siptec
  2. Support
  3. Tuesday, April 19 2022, 12:11 AM
I was having to use the Joomla base system for user fields, but didn't want other users seeing personal information by clicking on the user profile in the list module. So, I couldn't use the field control found in EasyProfile. I used a CSS mouse disable, but really need a better solution.

Downloaded the module with FTP. Copied the default.php and edited it saving it as nolink.php. Removed the


<a href="/<?php echo $user->getLink(array('Itemid'=>$params->get('profile_menuid', ''))); ?>">

and

</a>


Then selected the User list module > Advance tab and selected the "nolink" in the Layout dropdown.

Not sure if there's a better way.
Accepted Answer
admin Accepted Answer
Admin
Hi,
sorry for late response.
Here some solution for you:

1) Remove Link from User list module
- Go to Extensions->Templates->Templates
- Choose your template
- Choose section "Create Overrides"
- In the column "Modules" click to "mod_jsnusers" it will create a new file in templates/theme-folder/html/mod_jsnusers/default.php
- Open the new file with a editor (FTP) or via Joomla backend (Extensions->Templates->Templates->Choose your template->Choose Section "Editor"->Navigate to path /html/mod_jsnusers/default.php)
- Remove links from the code (remove lines 49,53,62,64)

2) Remove Joomla fields from other profiles (a owner still can see these fields in own profile page):
- Go to Extensions->Templates->Templates
- Choose your template
- Choose section "Create Overrides"
- In the column "Components" click to "com_jsn"->"profile" it will create a some new files in templates/theme-folder/html/com_jsn/profile/
- Open the file templates/theme-folder/html/com_jsn/profile/default_fields.php with a editor (FTP) or via Joomla backend (Extensions->Templates->Templates->Choose your template->Choose Section "Editor"->Navigate to path /html/com_jsn/profile/default_fields.php)
- In the opened file at line 24 add following code
if (JFactory::getUser()->id != $this->data->id) {
unset($fieldsets['fields-0']); /* This remove all custom fields not related to a fieldgroup*/
unset($fieldsets['fields-1']); /* This remove all custom fields related to a fieldgroup with ID 1 */
unset($fieldsets['fields-2']); /* This remove all custom fields related to a fieldgroup with ID 2 */
}
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
in. Easy Profile options you can set the profile visibility:
- Go to Components->Easy Profile
- Click to "Option" button
- Set the options called "Visibility Profiles" to "Private"
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 1
siptec Accepted Answer
Pro
Hi,
in. Easy Profile options you can set the profile visibility:
- Go to Components->Easy Profile
- Click to "Option" button
- Set the options called "Visibility Profiles" to "Private"

Doesn't work in my site. Only "Site Members" keeps the general public out. I have 2.10.0 on a 3.10.6 site. The three other states do nothing.
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
if you set it to "Private" then the profile page should not be available, It is not so?

Also there is another way to hide parameter, you can set the "visibility for" option for each field to be visible only for Special users, see screenshot.
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 3
siptec Accepted Answer
Pro
Hi,
if you set it to "Private" then the profile page should not be available, It is not so?

Also there is another way to hide parameter, you can set the "visibility for" option for each field to be visible only for Special users, see screenshot.


Yes, if I were using the fields generated by EasyProfile, I could use the visibility option, but I'm using the Joomla field system for other reasons.

Yes, it seems only the "Site Members" selection restricts the general public. All other selections have no effect.

I've had easyprofile in this system for quite a few updates, it could be possible I need to completely uninstall and reinstall to clear the issue. For now, my fix above is doing what I need.
  1. more than a month ago
  2. Support
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.