e-card From field e-card From field
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

e-card From field

Started by tatapx, March 05, 2004, 12:54:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tatapx

Just finished to search but didn't find it.

I am testing Coppemine now and wanted to fix the problem so I can replace my current gallery "Gallery".

The problem is users can send an ecard and use the webmasters or other users email addy.

Is it possible to automatically fill the "Your email address" field with their email address as they are members of my board (IPB).  Or if it is not possible, can it be configured not to allow to send using the webmasters mail address in "Your email address" field?

Regards
 :roll:

Joachim Müller

restrict sending of ecards to registered users onyl (in the groups panel of coppermine admin menu) and edit ecards.php - find<input type="text" class="textinput" name="sender_email"  value="$sender_email" style="WIDTH: 100%;">and replace with<input type="hidden" class="textinput" name="sender_email"  value="$sender_email" />This way, your users won't be able to edit the sender_email value.

GauGau

tatapx

Thank you for your quick reply.

It did prevent to edit the sender email value but when I click the button to send I got...

Warning : invalid email address !

Joachim Müller

this hack only works if the $sender_email actually contains the correct value, e.g. if the user's email address is being written into the hidden field. If it doesn't, then this'll require some additional coding...

GauGau

jarekn

Can the same be done with vBulletin 3.4?

What would the line be?

jarekn

Hello GauGau.

Can the same be done with vBulletin 3.4?

What would the line be?

Quote from: "gaugau"this hack only works if the $sender_email actually contains the correct value, e.g. if the user's email address is being written into the hidden field. If it doesn't, then this'll require some additional coding...

GauGau

tatapx

Quote from: "gaugau"this hack only works if the $sender_email actually contains the correct value, e.g. if the user's email address is being written into the hidden field. If it doesn't, then this'll require some additional coding...

GauGau

Thanks again, I hope this hack will be in your list on the next CPG upgrdade. I am not good with php, so I'll just wait.

More power to CPG!

photoman13

What I did was used GauGau's suggestion and also added:
<input type="hidden" class="textinput" name="sender_email" value="$sender_email" /><b>Can't Edit!</b><br>To change email address see your profile.
So that when the go to send an ecard, they won't just get a 'blank' and also know where to change their email address at. :)

Also I noticed that this works great with Members, but me as an Admin it won't fill in the email address automatically. (I guess cause when we first signed up after the install, it didnt' 'email verify' us like it does for the members. Also, there is no place in 'My Profile' to add the email address, like there is for members. When I try to edit, it tells me I can't, since it's my profile, I have to goto "My Profile Link" to edit any info, but the email address field is not there.

photoman13

Quote from: "photoman13"Also I noticed that this works great with Members, but me as an Admin it won't fill in the email address automatically. (I guess cause when we first signed up after the install, it didnt' 'email verify' us like it does for the members. Also, there is no place in 'My Profile' to add the email address, like there is for members. When I try to edit, it tells me I can't, since it's my profile, I have to goto "My Profile Link" to edit any info, but the email address field is not there.

Found a work around for that... just create new account and make it an admin. There you can edit the normal "admin" email account. And then it's fixed :)

tatapx

Thanks, I'll try it this week.