4
Quote:
sato-san wrote:
Add the following line to prevent Anonymous users from viewing user profiles:
$xoopsUser or redirect_header('index.php', 3, _NOPERM);
I found this code can prevent Anonymous users from viewing user profiles, but i would like to keep all userprofile as private event to other registed user. still thank for your help
Quote:
talunceford wrote:
You can also accomplish what you need by editing the userinfo.html template. By default the userinfo page is supposed to be viewable by anon users, the one thing that is NOT viewable is a persons email address.
Thank for your ideal. I would like my site profile only view by the own user, so i add this code to my userinfo.html for only own user and admin allow to view:
<{if $user_ownpage == true || $xoops_isadmin != false }>
.
.
profile table
.
.
<{/if}>
also i add this code to alert Anonymous and non own user:
<{if $user_ownpage != true}>
<center><h3>Please login to view the profileh3>center>
<{/if}>
Now there have new problem for me again. i will assign a modarator to manage all memberd list, and the "modarator" group was created, how can i add this group to have right to view the profile?