Zen Cart Logo
Forums / General Questions / Only allow logged in customers to use contact form?

Only allow logged in customers to use contact form?

Views: 620

Results 1 to 6 of 6
6 Feb 2013, 3:14 PM
#1
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

Only allow logged in customers to use contact form?

I'm having trouble with people spamming my contact form. Is there a way to make it so that anyone who uses the form has to be a logged in customer?

Thanks,
Joanne

6 Feb 2013, 4:39 PM
#3
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

Re: Only allow logged in customers to use contact form?

LOL yes I'm still using it because I'm worried that if I upgrade my modules won't work and will need to be installed all over again :(

6 Feb 2013, 5:11 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Only allow logged in customers to use contact form?

Problem is version 1.3.8 is insecure and susceptible to hackers. Better to take a good look at the mods you're using and decide if you really need them all, then upgrade, adding only those mods that seem essential.

6 Feb 2013, 6:33 PM
#5
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

Re: Only allow logged in customers to use contact form?

OK, I have a friend that does that kind of thing, so maybe I'll get her to update it for me - thanks for your help!!

Hugs,
Joanne

11 Feb 2013, 8:20 PM
#6
joannem avatar

joannem

Zen Follower

Join Date:
Jul 2009
Posts:
110
Plugin Contributions:
0

Re: Only allow logged in customers to use contact form?

stevesh:

Problem is version 1.3.8 is insecure and susceptible to hackers. Better to take a good look at the mods you're using and decide if you really need them all, then upgrade, adding only those mods that seem essential.

I was able to figure out how to make them log in to send a contact us email on my own:

In includes/modules/pages/contact_us/header_php.php

Where this code is:

    } else {
      $customer_email = NOT_LOGGED_IN_TEXT;
      $customer_name = NOT_LOGGED_IN_TEXT;

Change it to this:

    } else {
      zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));

Worked like a charm :D