Zen Cart Logo
Forums / All Other Contributions/Addons / Installing old Google ReCaptcha addon - ZC1.50

Installing old Google ReCaptcha addon - ZC1.50

Views: 1,148

Results 1 to 2 of 2
25 Feb 2012, 11:55 PM
#1
miff avatar

miff

Zen Follower

Join Date:
Sep 2010
Location:
Stoke-on-Trent, Staffordshire. UK
Posts:
131
Plugin Contributions:
0

Installing old Google ReCaptcha addon - ZC1.50

Hello.
I recently began creating a new site based on the 1.50 version of Zen. To prevent spam and automated account creations, etc, I have always used Googles Re-Captcha, however I was surprised to see that It was not yet posted as being updated for 1.50. There are other possible add ons that could be used however, I have always felt Recaptcha was one of the best. Also Recaptcha settings are built into a couple of other add-on modules I use, so it would be nice to keep it.
Im sure that this is a very popular module and was wondering if anyone had, or had any information on how to, install Recaptcha successfully within ZC1.50.
Any help at tho point is highly appreciated. Thank you!

28 Feb 2012, 6:37 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Installing old Google ReCaptcha addon - ZC1.50

I may be speaking out of turn but I can't actually see any reason why this would not work with 1.5.

Except the obvious about not being able to see the admin pages. That being the case you should be able to register the admin pages using the feature in the admin access menu.

Or you can create a new entry in the admin_pages table using phpMyAdmin by just copying and editing one of the existing configuration tables.

Or even better you can work out how to change the sql statement so that an admin page is created when it is run and then if it all works re-submit the module as working with 1.5 and you have made your first contribution :clap:

To do that you would add something like:

SELECT (@sort_order:=MAX(sort_order)+1) FROM admin_pages WHERE menu_key='configuration';
INSERT INTO admin_pages (page_key, language_key, main_page, page_params, menu_key, display_on_menu, sort_order) VALUES ('ConfigRecaptcha', 'BOX_CONFIG_RECAPTCHA', 'FILENAME_CONFIGURATION', CONCAT('gID=', @t4), 'configuration', 'Y', @sort_order);

to the end of the sql statement.

You would also need to create a new language file which defined the new constant BOX_CONFIG_RECAPTCHA. Somehting like:

<?php

define('BOX_CONFIG_RECAPTCHA', 'Recaptcha Settings')

And that will get saved with any file name you want in admin/includes/languages/english/extra_definitions

I am doing this off the top of my head so there may be errors in there so back up everything before you give it a whirl :smile: