1
DaveHaviland
Allow anonymous users to view registered user profiles?

Sorry, I couldn't get to the FAQ mentioned above..

I want to allow an anonymous user to view (not edit of course) any registered user's profile, I know about admin-->groups-->anonymous etc.. the rest of the site is very anon-friendly, and anon's can run the search form, even see the search results, but when they click on a persons profile, it goes to the "Sorry, you don't have permission.." page.

My site ishttp://www.kxro.com any help would be greatly apprecciated

Thank you,

Dave

2
tl
Re: Allow anonymous users to view registered user profiles?
  • 2004/10/5 15:10

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


Are you sure that you are using the file came with package? The userinfo.php file came from the package will allow viewing user profiles.

Try upload a fresh version of userinfo.php file to your server.

3
DaveHaviland
Re: Allow anonymous users to view registered user profiles?

AHH Your Rock!!

I must have changed something in the userinfo.php file at some point, because I re-uploaded the original, and it works fine.

anon can search, AND VIEW our registered users.

Thank you!!

4
longhair
Re: Allow anonymous users to view registered user profiles?
  • 2004/10/5 15:27

  • longhair

  • Friend of XOOPS

  • Posts: 70

  • Since: 2004/3/29


How does one disable anyone viewing member profiles for those sites that aren't overly visitor friendly?

5
DaveHaviland
Re: Allow anonymous users to view registered user profiles?

You know, I really can't remember what I did, it must have been more than a month ago, but here's the differences between my weird userinfo.php and the original:

[php]
}
if ( !$xoopsUser ) {
redirect_header('index.php',3,_NOPERM);
exit();}

//was inserted before:

if (is_object($xoopsUser)) {

[/php]

right near the top of the file. Not sure if that's what did it, but that's the ONLY difference between original and the one that was blocking anon from viewing user profiles.


Hope that helps, sorry I don't know much.

Login

Who's Online

174 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

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

Latest GitHub Commits