coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Ecards & Email => Topic started by: ReneZ on April 19, 2005, 03:22:10 PM

Title: Remove recipient´s name and eMail adress
Post by: ReneZ on April 19, 2005, 03:22:10 PM
Hi,

how do i remove the recipient´s name and email adress field and put in a constant with my email adress eg rene@example.com?

Furthermore i´d like to leave the senders field empty (not display username)

Thank you very much for your help.

René
Title: Re: Remove recipient´s name and eMail adress
Post by: Nibbler on April 19, 2005, 03:36:24 PM
Ignoring the fact this makes no sense,

ecard.php, add:

disabled="disabled"

into the input tags that you want to disable, and change the value attributes to what you want to be constant.
Title: Re: Remove recipient´s name and eMail adress
Post by: ReneZ on April 19, 2005, 03:46:30 PM
Quote from: Nibbler on April 19, 2005, 03:36:24 PM
Ignoring the fact this makes no sense,

ecard.php, add:

disabled="disabled"

into the input tags that you want to disable, and change the value attributes to what you want to be constant.

To me this makes perfect sense, i can use coppermines ecard feature to give my web-visitors the possibility to sent me an email.
so I don´t need recipients Name and email adress and the senders name field should be empty since i only have users w/o registrtion (anonymous)

René
Title: Re: Remove recipient´s name and eMail adress
Post by: Tranz on April 19, 2005, 03:59:36 PM
So are you trying to do a report to moderator type thing?
Title: Re: Remove recipient´s name and eMail adress
Post by: ReneZ on April 19, 2005, 08:31:19 PM
Quote from: TranzNDance on April 19, 2005, 03:59:36 PM
So are you trying to do a report to moderator type thing?

exactly...

Title: Re: Remove recipient´s name and eMail adress
Post by: Tranz on April 20, 2005, 01:40:49 AM
Then that makes sense. That function is included in the next coppermine version.
Title: Re: Remove recipient´s name and eMail adress
Post by: ReneZ on April 20, 2005, 02:10:21 AM
Hi,
I´m almost there  :):

below the lines
$recipient_name = get_post_var('recipient_name');
$recipient_email = get_post_var('recipient_email');

i add:
$recipient_email = 'mymail@example.com';

delete the lines
<td class="tableb" valign="top" width="40%">
                        {$lang_ecard_php['rcpt_name']}<br />
                </td>
                <td valign="top" class="tableb" width="60%">
                        <input type="hidden" class="textinput" name="recipient_name"  value="$recipient_name" style="WIDTH: 100%;"><br />
                </td>

and

<td class="tableb" valign="top" width="40%">
                        {$lang_ecard_php['rcpt_email']}<br />
                </td>
                <td valign="top" class="tableb" width="60%">
                        <input type="hidden" class="textinput" name="recipient_email"   value="$recipient_email" style="WIDTH: 100%;"><br />
                       
                        $recipient_email_warning
                </td>

done  ;D :D

René