coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 ecards & email => Topic started by: cavok on May 09, 2006, 12:50:57 PM

Title: Remove address IP on Ecard
Post by: cavok on May 09, 2006, 12:50:57 PM
Hello,
I use Coppermine 1.4.5
I want to remove display Address IP on Ecard send.
With old Coppermine version I remove in file ecard.php "from IP {$_SERVER['REMOTE_ADDR']}".
But in the latest version, I don't find it.
On line 129 ther is:
        $message .= sprintf($lang_ecard_php['ecards_footer'], $sender_name, $_SERVER['REMOTE_ADDR'], localised_date(-1,$comment_date_fmt));
                                $subject = sprintf($lang_ecard_php['ecard_title'], $sender_name);

if I remove only "$_SERVER['REMOTE_ADDR'], ", all feet is not display.
So I would like to remove only address IP not all of the feet.

Thank's for your help.
Sorry for my english!

Title: Re: Remove address IP on Ecard
Post by: Abbas Ali on May 09, 2006, 02:04:22 PM
Edit ecard.php

Replace


$message .= sprintf($lang_ecard_php['ecards_footer'], $sender_name, $_SERVER['REMOTE_ADDR'], localised_date(-1,$comment_date_fmt));


with


$message .= sprintf($lang_ecard_php['ecards_footer'], $sender_name, localised_date(-1,$comment_date_fmt));


then edit lang/yourlang.php (english.php in most cases)

Replace


'ecards_footer' => 'Sent by %s from IP %s at %s (Gallery time)', //cpg1.4


with


'ecards_footer' => 'Sent by %s at %s (Gallery time)', //cpg1.4



HTH
Abbas
Title: Re: Remove address IP on Ecard
Post by: cavok on May 09, 2006, 08:37:54 PM
Quote from: Abbas Ali on May 09, 2006, 02:04:22 PM

Thank's Abbas, it's marvellous, that functions with wonder.

Thank you again for this fast and effective answer.