Disabling display of IP address in comments

nr

Joined: 2002-08-29
Posts: 4
Posted: Thu, 2002-08-29 00:13

I use Gallery v1.3 on my webpage. I am trying to make it so comments will not show the IP address when they are posted. <!-- BBCode Start --><A HREF="http://marc.theaimsgroup.com/?l=gallery-users&amp;m=102894269924050&amp;w=2" TARGET="_blank">This message</A><!-- BBCode End --> on the mail archive seems pretty straightforward. I changed the code in layout/commentbox.inc from:

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>From: <?= $comment->getName() ?> @ <?= $comment->getIPNumber()?>
(<?= $comment->getDatePosted() ?>) </TD></TR></TABLE><!-- BBCode End -->

to

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>From: <?= $comment->getName() ?> (<?= $comment->getDatePosted() ?>) </TD></TR></TABLE><!-- BBCode End -->

but the IP address still shows up when I submit a test comment. I know it's probably something simple, but I know almost nothing about PHP. Anyone have a fix or suggestion to disable the display of the IP address for comments?

Thanks.

 
nr

Joined: 2002-08-29
Posts: 4
Posted: Thu, 2002-08-29 03:16

Nevermind. I see that the file I need to edit is commentdraw.inc. Got it working.