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: no email address required  (Read 4304 times)

0 Members and 1 Guest are viewing this topic.

zoobie

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://funny-email.net
no email address required
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
no email address required
« Reply #1 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
Code: [Select]
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
Logged

zoobie

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://funny-email.net
no email address required
« Reply #2 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 :!:
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
no email address required
« Reply #3 on: November 28, 2003, 06:09:32 pm »

also in register.php: find
Code: [Select]
array('input', 'email', $lang_register_php['email'], 255),and replace it with
Code: [Select]
//array('input', 'email', $lang_register_php['email'], 255),GauGau
Logged

zoobie

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://funny-email.net
no email address required
« Reply #4 on: November 28, 2003, 11:16:14 pm »

I'm getting a critical error:
"Script called without the required parameter(s). (email)"
Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
no email address required
« Reply #5 on: November 29, 2003, 09:18:55 am »

try putting in something like
Code: [Select]
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
Logged

zoobie

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
    • http://funny-email.net
no email address required
« Reply #6 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 :!:
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.