coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: zoobie on November 28, 2003, 03:32:19 AM

Title: no email address required
Post by: zoobie on November 28, 2003, 03:32:19 AM
Nothing on the search...so, is there a way to eliminate the registering user having to fill in their email...yet allow a registered user to email cards and pics? Any info helpful...Thanks
Title: no email address required
Post by: Joachim Müller on November 28, 2003, 08:45:18 AM
haven't tested this in detail, but it should suffice if you edit register.php and comment out if (!eregi("^[_\.0-9a-z\-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$", $email)) $error .= '<li>' . $lang_register_php['err_invalid_email'];GauGau
Title: no email address required
Post by: zoobie on November 28, 2003, 01:55:00 PM
Ahh...Thanks
1 more related question:
How do I delete the email field on the registration page?
Thanks again :!:
Title: no email address required
Post by: Joachim Müller on November 28, 2003, 06:09:32 PM
also in register.php: findarray('input', 'email', $lang_register_php['email'], 255),and replace it with//array('input', 'email', $lang_register_php['email'], 255),GauGau
Title: no email address required
Post by: zoobie on November 28, 2003, 11:16:14 PM
I'm getting a critical error:
"Script called without the required parameter(s). (email)"
Thanks
Title: no email address required
Post by: Joachim Müller on November 29, 2003, 09:18:55 AM
try putting in something like print '<input type="hidden"  name="email" value="" />';
If this doesn't work you're on your own; I won't make up my mind in detail on this, as I find it a very silly idea to remove the email address field in the first place. If your users don't like filling in their correct email, let them just fill in foo@bar.com, it's not to much to ask in my opinion.

GauGau
Title: no email address required
Post by: zoobie on November 29, 2003, 10:47:23 PM
Thanks...Works like a charm.  8)
I had to change the config settings to "accept 2 duplicate email addresses" but it takes more than two, thankfully. I took out another form field, also. Granted, you're probably right...but I wanted super-simple registration this time. You know that feeling when you're asked for your email and you think "Oh no...Not more spam."? Well, in this case, I just took that bad feeling away.
Thanks again :!: