Page 1 of 1

Comments - Force Use Of Email Address

Posted: Sun Jan 28, 2007 10:07 am
by jameshontishar
Hi

i am using the comments module 1.8.0 and have selected spam and email notify but have a few problems.

1. When I send a comment from my site without putting in an email address it does not notify me at the email address, but if I do put an email address in on the comments form it does email me.

Is there anyway to make them put their email address in!

2. Also how can i make it so the add a comment comes up in another page and not on the page it displays.


Thanks in advance

James

Re: Comments - Force Use Of Email Address

Posted: Fri Feb 09, 2007 7:31 pm
by Elijah Lofgren
Those things wouldn't be very hard to add/fix.

I've filed FRs to remind me to do them once I'm not so busy with college (maybe Spring break or Summer):
http://dev.cmsmadesimple.org/tracker/in ... 3&atid=172
http://dev.cmsmadesimple.org/tracker/in ... 3&atid=172

Sorry I can't help right now,

Elijah

Re: Comments - Force Use Of Email Address

Posted: Thu Apr 03, 2008 10:46 pm
by Blue Lou
Open modules/Comments/action.default.php in notepad.

Find line 176:

if ($email!='' && !$this->isValidEmail($email))

and change it to:

if (!$email || $email!='' && !$this->isValidEmail($email))

Save file and reupload

That will make sure people need to leave a valid email address.  ;D