Elxis CMS Forum

Support => Administration => Topic started by: ua on February 23, 2011, 12:40:49

Title: Members list shows in Users Profile
Post by: ua on February 23, 2011, 12:40:49
I do not want to let my users see the members list.
I have already unpublished the 'members list' from the usermenu. However when you click on the users profile you can see find the link to members list.

I am also aware of modifying the softdisk properties however I have not been able to find a way to disable the entire list.

Any ideas on how to achieve this?
Title: Re: Members list shows in Users Profile
Post by: webgift on February 23, 2011, 13:12:23
Welcome to Elxis Community.

Folder : components/com_user/
File : user.html.php
Line : #848

We must comment or delete that line on which returns a linkable text of Member List.
I attach this file to you. Take a backup of existing one and replace with attached one.

[attachment deleted by admin]
Title: Re: Members list shows in Users Profile
Post by: CREATIVE Options on February 23, 2011, 13:31:17
softdisk ??
Title: Re: Members list shows in Users Profile
Post by: ua on February 23, 2011, 14:04:07
Thanks @webgift - it works.

@Creative - softdisk is a component that allows you to change certain system properties without modifying code. 
Title: Re: Members list shows in Users Profile
Post by: CREATIVE Options on February 23, 2011, 14:26:45
Not only certain specific... but you can add also to modify your website without hardcode.
Title: Re: Members list shows in Users Profile
Post by: xmanhattan on February 23, 2011, 14:56:16
There is also a menu item under the user menu that can be unpublished.
Title: Re: Members list shows in Users Profile
Post by: webgift on February 23, 2011, 15:41:21
There is also a menu item under the user menu that can be unpublished.

I have already unpublished the 'members list' from the usermenu. However when you click on the users profile you can see find the link to members list.

 ;)
Title: Re: Members list shows in Users Profile
Post by: xmanhattan on February 23, 2011, 16:29:39
I just looked through the permissions access of the control panel and user list is not segregated as a function.
The only (quick and dirty) way of not showing that is to modify the \components\user.html.php file.

Otherwise I would say that datahell can offer a different idea.

Title: Re: Members list shows in Users Profile
Post by: xmanhattan on February 23, 2011, 16:39:15
I just found the lines to remove the link "Members List".
edit user.html.php
At line 848 change as follows:
         <a href="<?php //echo sefRelToAbs('index.php?option=com_user&task=list&Itemid='.$Itemid, 'members/'); ?>" target="_self" title="<?php echo _E_MEMBERS_LIST; ?>"><?php //echo _E_MEMBERS_LIST; ?></a>

You didn't say if you did not want the random user profiles to show or not but after looking at the code, you can unpublish that from the modules.



Title: Re: Members list shows in Users Profile
Post by: webgift on February 23, 2011, 17:23:03
Petro ,
I have already answered that above.  ;D!
Title: Re: Members list shows in Users Profile
Post by: timalsina on September 06, 2014, 13:10:10
Component com_user parameter allows to hide username, language, group etc., but is there a way the Member List link can be removed completely under User Central and also not accessible via user/members/ without modifying the code.
Best,