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&m=102894269924050&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.
Posts: 4
Nevermind. I see that the file I need to edit is commentdraw.inc. Got it working.