1
tamerlo
how don't display ip adress in comments end posts
  • 2004/5/30 13:28

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


In my opinions is not good that something can obtain tha ip address of an user that post a comment, or a message in the forum area, something know how I can disable this features? There are an option to change or some code to modify?

thanks

2
Mithrandir
Re: how don't display ip adress in comments end posts

AFAIK this information is only available to administrators and not the casual user.

3
tamerlo
Re: how don't display ip adress in comments end posts
  • 2004/5/30 14:31

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


For newbb module you are in truth (sorry ) but for comments to the news I can view the IP address if I'm logged in like privileged user or normal user.

4
Mithrandir
Re: how don't display ip adress in comments end posts

I can't.

Just try the comments on this site.

5
tamerlo
Re: how don't display ip adress in comments end posts
  • 2004/5/30 19:34

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


Yes, on this site I can't see the posts'IP but on mine a unprivileged user can, and to complicate all don't ever.

6
Dave_L
Re: how don't display ip adress in comments end posts
  • 2004/5/30 20:14

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


1) You're sure the user is not in a group that has admin rights for the news module?

2) Do you have caching enabled for the news module?

7
tamerlo
Re: how don't display ip adress in comments end posts
  • 2004/5/31 13:29

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


No, the user is not in the admin group ( I'm not so stupid ), but recently I've have enabled the cache on news module and a user tell me about this problem (public IP), now I'm trying to disable the caching on modules.

8
tamerlo
Re: how don't display ip adress in comments end posts
  • 2004/5/31 13:42

  • tamerlo

  • Just popping in

  • Posts: 71

  • Since: 2004/1/30


I have disabled the cache and now the problem is dissapear. But I think that my XOOPS site can be slow, there are other solutions?

9
Dave_L
Re: how don't display ip adress in comments end posts
  • 2004/5/31 14:28

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Hmmmm ..

Caching can be selectively disabled within a module file like this:

require_once '../../mainfile.php';
$xoopsOption['template_main'] = whatever.html';
[color=ff0000]$xoopsConfig['
module_cache'][$xoopsModule->getVar('mid')] = 0; // disable caching[/color]
require_once XOOPS_ROOT_PATH . '
/header.php';


Maybe a check should be added to header.php so that caching is disabled when the current user is a module admin.

10
Mithrandir
Re: how don't display ip adress in comments end posts

I'll look into it, Dave. Can you say with absolute certainty that the page will not be cached if set to 0? (I mean, one thing is that it will not fetch the cached version if set to 0, but will it also prevent it from being cached?)

Login

Who's Online

165 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 165


more...

Donat-O-Meter

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

Latest GitHub Commits