1
Strauss
Block access to user info
  • 2004/2/27 10:50

  • Strauss

  • Just popping in

  • Posts: 10

  • Since: 2004/1/14


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

Artur Strauss

2
Mithrandir
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.

3
Strauss
Re: Block access to user info
  • 2004/2/27 12:08

  • Strauss

  • Just popping in

  • Posts: 10

  • Since: 2004/1/14


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.