xoops forums

Strauss

Just popping in
Posted on: 2004/2/27 10:50
Strauss
Strauss (Show more)
Just popping in
Posts: 10
Since: 2004/1/14
#1

Block access to user info

Hi! How block for anonymous users user info? I thank for assistance.

Artur Strauss

Mithrandir

XOOPS is my life!
Posted on: 2004/2/27 11:43
Mithrandir
Mithrandir (Show more)
XOOPS is my life!
Posts: 6320
Since: 2003/6/21
#2

Re: Block access to user info

at the top of userinfo.php - below the include statements - add this:
if (!$xoopsUser) {
    
redirect_header('index.php'3'You have got to register to access this page'); //Alternatively, use _NOPERM for localised message
}

This will block access for non-registered users - but any registered user will be able to see it, independent of group memberships.

Strauss

Just popping in
Posted on: 2004/2/27 12:08
Strauss
Strauss (Show more)
Just popping in
Posts: 10
Since: 2004/1/14
#3

Re: Block access to user info

It acts. I thank very much.

Best RegardsQuote:

Mithrandir wrote:
at the top of userinfo.php - below the include statements - add this:
if (!$xoopsUser) {
    
redirect_header('index.php'3'You have got to register to access this page'); //Alternatively, use _NOPERM for localised message
}

This will block access for non-registered users - but any registered user will be able to see it, independent of group memberships.