Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Remove recipientīs name and eMail adress  (Read 10011 times)

0 Members and 2 Guests are viewing this topic.

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Remove recipientīs name and eMail adress
« 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é
Logged

Nibbler

  • Guest
Re: Remove recipientīs name and eMail adress
« Reply #1 on: April 19, 2005, 03:36:24 pm »

Ignoring the fact this makes no sense,

ecard.php, add:

Code: [Select]
disabled="disabled"
into the input tags that you want to disable, and change the value attributes to what you want to be constant.
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Remove recipientīs name and eMail adress
« Reply #2 on: April 19, 2005, 03:46:30 pm »

Ignoring the fact this makes no sense,

ecard.php, add:

Code: [Select]
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é
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Remove recipientīs name and eMail adress
« Reply #3 on: April 19, 2005, 03:59:36 pm »

So are you trying to do a report to moderator type thing?
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Remove recipientīs name and eMail adress
« Reply #4 on: April 19, 2005, 08:31:19 pm »

So are you trying to do a report to moderator type thing?

exactly...

Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Remove recipientīs name and eMail adress
« Reply #5 on: April 20, 2005, 01:40:49 am »

Then that makes sense. That function is included in the next coppermine version.
Logged

ReneZ

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Remove recipientīs name and eMail adress
« Reply #6 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é
« Last Edit: April 20, 2005, 03:18:59 pm by ReneZ »
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 16 queries.