xoops forums

DaveHaviland

Just popping in
Posted on: 2004/10/5 14:38
DaveHaviland
DaveHaviland (Show more)
Just popping in
Posts: 42
Since: 2004/10/5
#1

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 is http://www.kxro.com any help would be greatly apprecciated

Thank you,

Dave

tl

Friend of XOOPS
Posted on: 2004/10/5 15:10
tl
tl (Show more)
Friend of XOOPS
Posts: 999
Since: 2002/6/23
#2

Re: Allow anonymous users to view registered user profiles?

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.

DaveHaviland

Just popping in
Posted on: 2004/10/5 15:19
DaveHaviland
DaveHaviland (Show more)
Just popping in
Posts: 42
Since: 2004/10/5
#3

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!!

longhair

Friend of XOOPS
Posted on: 2004/10/5 15:27
longhair
longhair (Show more)
Friend of XOOPS
Posts: 70
Since: 2004/3/29
#4

Re: Allow anonymous users to view registered user profiles?

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

DaveHaviland

Just popping in
Posted on: 2004/10/5 15:36
DaveHaviland
DaveHaviland (Show more)
Just popping in
Posts: 42
Since: 2004/10/5
#5

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.