1
hooperman
user info
  • 2004/9/22 13:54

  • hooperman

  • Just popping in

  • Posts: 31

  • Since: 2004/9/20


Non members can view my site's registered users when they click on their name the userinfo.php page is displayed
Is there anyway to disable this as some of my punters do not want their site contributions being made public


2
Mithrandir
Re: user info

userinfo.php:
$xoopsOption['pagetype'] = 'user';
include 
'mainfile.php';

//insert these lines:
if (!$xoopsUser) {
    
redirect_header('javascript:history.go(-1)'2_NOPERM);
}

3
hooperman
Re: user info
  • 2004/9/22 14:16

  • hooperman

  • Just popping in

  • Posts: 31

  • Since: 2004/9/20


Thanks thats the business
One prob tho
If i click the members name
i am told i cant access the page then sent here
http://www.armchaircelts.co.uk/java%20script:history.go(-1)
the page cant be found

4
Dave_L
Re: user info
  • 2004/9/22 14:48

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I prefer this instead:

$xoopsUser or redirect_header('index.php'3_NOPERM); #*#NOVIEW_USER_PROFILE#

5
Mithrandir
Re: user info

Quote:

hooperman wrote:
Thanks thats the business
One prob tho
If i click the members name
i am told i cant access the page then sent here
http://www.armchaircelts.co.uk/java%20script:history.go(-1)
the page cant be found

remove the space between "java" and "script"

Login

Who's Online

349 user(s) are online (272 user(s) are browsing Support Forums)


Members: 0


Guests: 349


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