1
CeroKool
How do I disallow user info for anonymous/visitors?
  • 2009/10/21 21:21

  • CeroKool

  • Just popping in

  • Posts: 30

  • Since: 2007/7/17


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?

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

Adjust permissions in the profile module ;o)

3
GPboarder
Re: How do I disallow user info for anonymous/visitors?
  • 2009/10/22 2:36

  • GPboarder

  • Friend of XOOPS

  • Posts: 248

  • Since: 2006/10/6


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.

4
sailjapan
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.

5
CeroKool
Re: How do I disallow user info for anonymous/visitors?
  • 2009/10/22 13:17

  • CeroKool

  • Just popping in

  • Posts: 30

  • Since: 2007/7/17


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>homeli>
<
$if registered>
<
li>photosli>
<
li>downloadsli>
<
$endif>
ul>


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

6
deka87
Re: How do I disallow user info for anonymous/visitors?
  • 2009/10/22 13:39

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


it's actually

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

7
CeroKool
Re: How do I disallow user info for anonymous/visitors?
  • 2009/10/22 13:43

  • CeroKool

  • Just popping in

  • Posts: 30

  • Since: 2007/7/17


thanks

Login

Who's Online

328 user(s) are online (202 user(s) are browsing Support Forums)


Members: 0


Guests: 328


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