xoops forums

CeroKool

Just popping in
Posted on: 2009/10/21 21:21
CeroKool
CeroKool (Show more)
Just popping in
Posts: 30
Since: 2007/7/17
#1

How do I disallow user info for anonymous/visitors?

I know I saw a while back how to do this. I tried searching for this and could not find this at all.

I logged out and typed .../userinfo.php?uid=1
and it was displayed. How do I prevent this for unregistered users?

Also, in an loosely related matter. How do I change a theme so that the home tab always shows, but the rest of the tabs only show to registered users?

DarinAllan

Friend of XOOPS
Posted on: 2009/10/22 2:32
DarinAllan
DarinAllan (Show more)
Friend of XOOPS
Posts: 477
Since: 2005/5/18
#2

Re: How do I disallow user info for anonymous/visitors?

Adjust permissions in the profile module ;o)

GPboarder

Friend of XOOPS
Posted on: 2009/10/22 2:36
GPboarder
GPboarder (Show more)
Friend of XOOPS
Posts: 248
Since: 2006/10/6
#3

Re: How do I disallow user info for anonymous/visitors?

What version etc are you using?

I recall something about this as well, I think when the version was 2.3.2. There was a security concern that lead to the 2.3.2b release but that was sorted out.

I can't duplicate the behaviour you are describing.

Make sure your anonymous users don't have module admin rights, just module access rights.

sailjapan

Moderator
Posted on: 2009/10/22 3:32
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#4

Re: How do I disallow user info for anonymous/visitors?

Quote:
How do I change a theme so that the home tab always shows, but the rest of the tabs only show to registered users?


Try Defacer module.

CeroKool

Just popping in
Posted on: 2009/10/22 13:17
CeroKool
CeroKool (Show more)
Just popping in
Posts: 30
Since: 2007/7/17
#5

Re: How do I disallow user info for anonymous/visitors?

I was not familiar with the User Profile module. That is why I never installed it. Thank you. I works as I was hoping. I just need to get familiar with it now.

As per my second request. Is there a code similar to
if user is registered
or
if (xoops user)

this is more or less what I wanted to do:
<ul>
<
li>home</li>
<
$if registered>
<
li>photos</li>
<
li>downloads</li>
<
$endif>
</
ul>


Thank you. I truly appreciate the help you have provided.

deka87

Friend of XOOPS
Posted on: 2009/10/22 13:39
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#6

Re: How do I disallow user info for anonymous/visitors?

it's actually

<{if $xoops_isuser}> .... <{else}>....<{/if}>

CeroKool

Just popping in
Posted on: 2009/10/22 13:43
CeroKool
CeroKool (Show more)
Just popping in
Posts: 30
Since: 2007/7/17
#7

Re: How do I disallow user info for anonymous/visitors?

thanks