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.

Login

Who's Online

372 user(s) are online (299 user(s) are browsing Support Forums)


Members: 0


Guests: 372


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits