XoopsCore25 icon indicating copy to clipboard operation
XoopsCore25 copied to clipboard

Using Real Name Instead of Username

Open liomj opened this issue 5 years ago • 3 comments

Hi sometime ago i helped a friend to setup an Intranet site using XOOPS

my friend requires the username or login ID to be the staff unique private identification number eg: 800823-17-1421....

  • registration is done by admin and real name is a required field and only can be modify by admin or hr
  • i used the profile module to add all other fields such as department, job position, gender etc..
  • i set the site to closed and edit the site close template

since the id number is confidential and private and no need to be display to other users i need to display the realname instead of username in front end as example in who's online block, userinfo, pm module and other non-core modules

while in the back end for user management username and realname need to be display together

to achieved all this i have to edit many XOOPS core files...

it worked like i wanted and since then i have helped to setup many Intranet using XOOPS with same setup as above...

it would be nice and easier in the future to have an option in XOOPS preference so this can be done automatically

:-)

liomj avatar Mar 27 '20 12:03 liomj

if im not mistaken some modules have the feature to use real name instead of username such as publisher and newbb

liomj avatar Mar 27 '20 12:03 liomj

Just 1 mini comment : In my templates, i used

<{if $member_info.name}>
        <{$member_info.name}>
<{else}>
	<{$member_info.uname}>
<{/if}>	

alain01 avatar Mar 27 '20 12:03 alain01

With /modules/profile/admin/permissions.php you can modify visibilty for group, for each field.

alain01 avatar Mar 27 '20 12:03 alain01