Zen Cart Logo
Forums / All Other Contributions/Addons / reCaptcha addon not showing in page

reCaptcha addon not showing in page

Views: 8,305

Results 1 to 20 of 49
28 Feb 2011, 7:26 AM
#1
ewramos avatar

ewramos

New Zenner

Join Date:
Nov 2008
Location:
Houston, Texas USA
Posts:
33
Plugin Contributions:
0

reCaptcha addon not showing in page

I have been trying to install reCaptcha into zencart 1.3.9h. This is the current stable release. I am using a mod to zencart from pickupman located here;
bitbucket.org/pickupman/zencart-recaptcha/downloads

I was able to get the mod running, sort of, on a local install of the same ver. of zencart. My local install is with XAMPP on a Windows 7 machine. When I say 'sort of' I mean, I can get the reCaptcha to display on the Contact Us Page in zencart but not the other forms. The docs in the mod say that reCaptcha is implented on several other forms. Namely these;
advanced search
create account
login
product write review
tell a friend

It appears to work on the Contact Us Page on the local install. But dosn't show on any of the others on the local install.

My internet accessible zen store is running on a Linux server. I have looked closely at the files that were installed for the reCaptcha mod and don't see anything that might be affected by other mods I have installed. My other mods are;
zen_lightbox_1-6-1 Mod
expanded_category_list_1-01 Mod
bestsellers_scrolling_images_1-0 mod
blank_sidebox_2-0 mod (NOT WORKING)
login_box_1-5 mod

Please help!

30 Apr 2011, 2:39 AM
#2
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

I am having the same problems. I am trying to contact the person that wrote the code and hope he will fix it.

The issue is with the https pages. The captcha will not show for some reason in Firefox. In IE8 I get a warning to show non-secure items on a warning bar across the top of the browser. So if I allow it then it will show.

This is why it shows on some of your pages. Check and see, the pages it shows on I bet are http pages.

I had to turn it off on my create account page as I had potential customers calling saying they couldn't create an account due they were getting a message that the security code was incorrect. They called and said they didn't even see the code. Needless to say this was impacting my business.

This is an awesome add-on and as soon as I find a fix I will respond back...

1 May 2011, 7:45 PM
#3
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Ok there is an update here:

bitbucket.org/pickupman/zencart-recaptcha/downloads

Not sure yet if this fixes the issues...

1 May 2011, 8:28 PM
#4
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Ok the following works for me now using IE8 & Firefox4:

Enable Contact Form
Enable Login Form - except when turned off I still get error that security code wasnt entered correctly?
Enable Tell a Friend
Enable Write Product Review

Enable Create Account Form does not work for me even when I enable it. There is not a captcha shown.

1 May 2011, 8:53 PM
#5
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

Thanks Ed and Neal for taking the time to help me work on these. I am trying to figure out why the login form is not validating the security text.

I will checkout the the create account page as well, but I suspect it has to do with the same problem.

1 May 2011, 10:47 PM
#6
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

I pushed another update that fixes the login page. The recaptcha may have been called twice if you have the create account form on the same page as login.
You can see the changes at:
bitbucket.org/pickupman/zencart-recaptcha/changeset/701ebde93cf5

Grab the complete source by click on the upper right tab -> get source -> zip.

@nohart - make sure you have uploaded /templates/CUSTOM/templates/tpl_create_account_default.php to the proper directory. Looking at your page the tag isn't showing in the source of your page.

1 May 2011, 11:41 PM
#7
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

pickupman:

@nohart - make sure you have uploaded /templates/CUSTOM/templates/tpl_create_account_default.php to the proper directory. Looking at your page the tag isn't showing in the source of your page.

Ok you mean to change the file name to my custom template correct?

So it would be:

includes\templates\comstock

I very much appreciate your add-on as it cuts way back as in total stop of spam etc!

1 May 2011, 11:56 PM
#8
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Ok I uploaded the new files and for some reason it still wont work on the Log in page when I have it turned off. I still get the warning:

Error The Security Check code wasn't typed correctly. Try again.

But it works when turned on!


Also when I Enable Create Account Form, the captcha never shows on the bottom of the page so not sure what the problem is with that. I do have both Log in & Create account page on same page but it used to work just fine...

With Enable Create Account Form set to false it works so that customers can create an account. (Which is good!) but I really would like to enable the captcha for this process...

So everything is almost fixed!

2 May 2011, 12:02 AM
#9
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

@nohart - that's right. That template file needs to moved over to your template folder.

I just posted another update that address some missing configuration values from the original thread for this mod. The updated file was /admin/includes/functions/extra_functions/recaptcha_functions.php. Just re-upload that file and go to admin->configuration->reCAPTCHA. Click on link to remove/upgrade, then install. Then click on configure link, and reenter your API keys/secrets along enable the pages you want.

2 May 2011, 12:16 AM
#10
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

ok I removed and re-installed it. Then added my keys and now the only things that show up in the menu are:

reCAPTCHA Public Key ***
reCAPTCHA Private Key ***
reCAPTCHA Theme white
Enable Contact Form true

The other options are gone?

Also before this I noticed that the Enable advance search forced advance search. It would not let the regular search work normally it would automatically take me to the advance search page?

2 May 2011, 12:26 AM
#11
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

nohart:

ok I removed and re-installed it. Then added my keys and now the only things that show up in the menu are:

reCAPTCHA Public Key ***
reCAPTCHA Private Key ***
reCAPTCHA Theme white
Enable Contact Form true

The other options are gone?

Also before this I noticed that the Enable advance search forced advance search. It would not let the regular search work normally it would automatically take me to the advance search page?

Make sure you have downloaded the latest copy from:
https://bitbucket.org/pickupman/zencart-recaptcha

The other values should be getting installed.

2 May 2011, 2:35 AM
#12
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Ok I went to this page:

bitbucket.org/pickupman/zencart-recaptcha/downloads

and downloaded the latest update - ac54a4b0d8f4 and this got the menus working again.

  1. But still if I enable advance search it breaks the regular search and forces the advance search page to come up with the captcha in it. It will turn off though.

  2. Also on the login page it works but I cannot disable it. The captcha goes away but when I try to log in I get the notice that the security code is wrong. So it is not turning off completely. So to make the login page work I have to leave the captcha turned on.

  3. And the last issue I think is the Create account form does not turn on. With it off the good thing is that it is off so in the mean time customers can still create an account until this all gets fixed.

2 May 2011, 3:40 AM
#13
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

nohart:

Ok I went to this page:

bitbucket.org/pickupman/zencart-recaptcha/downloads

and downloaded the latest update - ac54a4b0d8f4 and this got the menus working again.

  1. But still if I enable advance search it breaks the regular search and forces the advance search page to come up with the captcha in it. It will turn off though.

  2. Also on the login page it works but I cannot disable it. The captcha goes away but when I try to log in I get the notice that the security code is wrong. So it is not turning off completely. So to make the login page work I have to leave the captcha turned on.

  3. And the last issue I think is the Create account form does not turn on. With it off the good thing is that it is off so in the mean time customers can still create an account until this all gets fixed.

  1. This was the anticipated behavior. I have had the quick search result attacked by spammers, and shut down my server before. It is a bit of a nuisance, but the only way to protect repetitive request to multiple requests in succession. You can pick how you want to use it.
  2. Fixed this with latest update. Didn't tag a new revision yet, but fixed /includes/modules/pages/login/header_php.php. I had missed a conditional check when disabled.
  3. The create account works similar to advanced search. The recpatcha will not be shown on the login/create account page. This is due to the fact by including the recaptcha on ?main_page=login the recaptcha is run twice which will always fail. The captcha will not be shown until the form is submitted, and then when the page ?main_page=create_account is shown the captcha will be displayed.
2 May 2011, 4:17 AM
#14
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Ok thank you so much.

So If I understand you correctly if I want the captcha to show on the create account page I have to split the page?

split login? configuration->layout settings -> enable to true

Because before it showed up when the login & create page was stacked all on one page.

Either way now it adds one more click that the customer has to make in order to create an account. I did split the page and the captcha shows on the page, vice when the page is stacked. It brings the create account page up again with a warning that the security code wasn't entered correctly. Even though it never showed before allowing the customer to even fill in the code?

I am just one that tries to keep the clicking process to a minimum for my customers...

The way I had it before was the page was stacked with login and create account page together and the login captcha was turned off and the captcha for the create account page turned on and it showed up underneath or at the bottom of the page. There isn't any way of making that work like that anymore?

Like a condition that if the login captcha is off to display the captcha on the stacked page at the bottom... This way it is not trying to show twice on the same page. (at the top under login and at the bottom under create account)

2 May 2011, 4:32 AM
#15
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Another note is that when I do spit the page and with the login captcha enabled it shows the captcha but it lays the display with half of it laying on top of the side boxes.

I guess I could always try to go in and make it so the login page didn't show the right sideboxes on the login page...

3 May 2011, 5:05 PM
#16
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

I have updated the login page to allow captcha to be shown on the login page with a non-split login page. A button when click will load the recaptcha code in the appropriate form. Clicking on either button will toggle the recaptcha between forms.

If you have either login page or create account set to false, the recaptcha will be displayed without any user interaction in the proper place.

Example: Enable Login = false Enable Create Account = true
Recaptcha will be displayed automatically at bottom of page

Example: Enable Login = true Enable Create Accout = true
Button will be displayed in both form, when clicked will load the recaptcha in that form. Clicking on the other form will remove the previous recaptcha and insert new one in other form

When split page is enabled, the recaptcha will be displayed automatically if enabled.

https://bitbucket.org/pickupman/zencart-recaptcha

3 May 2011, 7:48 PM
#17
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Awesome! It works great! Thank you so much for your add-on and spending time to fix it! I so much appreciate you!

That is so trick how you made the button to display the security code!

3 May 2011, 8:20 PM
#18
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

Thanks Neil for helping me test this out. Glad it is working now for you.

19 May 2012, 6:11 PM
#19
papamelon avatar

papamelon

New Zenner

Join Date:
Nov 2006
Posts:
15
Plugin Contributions:
0

Re: reCaptcha addon not showing in page

Hi, I'm using Contact Us ReCaptcha 1.1 and it works great except for the alignment using Firefox 12.0.
It aligns to the right edge and underneath an image. Very strange.
http://splashpoolparts.com/contact_us.html
I tried from another thread, div class="recaptcha" align="left" to no avail.
Any ideas on a quick fix?
Thanks,
Mike

20 May 2012, 10:55 PM
#20
pickupman avatar

pickupman

New Zenner

Join Date:
Jun 2009
Posts:
83
Plugin Contributions:
2

Re: reCaptcha addon not showing in page

papamelon:

Hi, I'm using Contact Us ReCaptcha 1.1 and it works great except for the alignment using Firefox 12.0.
It aligns to the right edge and underneath an image. Very strange.
http://splashpoolparts.com/contact_us.html
I tried from another thread, div class="recaptcha" align="left" to no avail.
Any ideas on a quick fix?
Thanks,
Mike
Seems if you apply the following rules to your stylesheet should correct this.

.recaptcha { overflow:hidden;}
#recaptcha_area {float: left;}