3
Quote:
Peekay wrote:
I found a hack to hide a XOOPS user's profile from anon site visitors, but is there a way to restrict viewing of a profile to just that user and admin only?
in userinfo.php
add:
redirect_header("index.php",3,'No Permission To View Profile');
exit();
right after (occurs twice in the 1st if() statement):
$xoopsTpl->assign('user_ownpage', false);
note. you should be able to comment out the code above the redirect you just added to the start of the else { statement also, but you can leave it in if u wish.
you could also do it via the system_userinfo.html template by using (but i find editing the php file easier as no need to worry about the redirect script then for the html page.
<{if $user_ownpage !== false}>
userinfo script........
<{else}>
page redirect script......
<{/if}>