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!
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
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.