-
CAPTCHA Anti-Robot Mod
This is the support thread for the Updated CAPTCHA Anti_Robot Modification.
I have updated it to work with PHP 1.3.9x and PHP 5.3x
I also added it to the Tell A Friend page so if you allow Guests to use Tell A Friend, Robots will not be able to send spam messages.
-
Re: CAPTCHA Anti-Robot Mod
Hi JTheed,
I checked everything again, I have loaded all the files in the right place and loaded the scripts as directly, but it is letting me proceed with checkout even when I enter the wrong captcha.
I have Fast and Easy checkout add-on but I am testing with the create an account flow.
~Heritage
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
heritage
Hi JTheed,
I checked everything again, I have loaded all the files in the right place and loaded the scripts as directly, but it is letting me proceed with checkout even when I enter the wrong captcha.
I have Fast and Easy checkout add-on but I am testing with the create an account flow.
~Heritage
Did you get this resolved?
-
Re: CAPTCHA Anti-Robot Mod
Just a couple questions ...
The directory:
/includes/functions/extra_functions
is an auto loading directory, meaning you add a file there and it will automatically load after the functions_general.php on the Catalog or after the general.php on the Admin ...
You are calling this function file in:
/includes/modules/pages/create_account/header_php.php
Perhaps that is not needed?
You also have the file:
includes/modules/pages/create_account/jscript_form_check.php
which appears to be the same as the original file ... was this just accidentally included in the add on? :unsure:
-
Re: CAPTCHA Anti-Robot Mod
Thanks for the tips, you are correct on both accounts. I am putting together an updated package to upload to zen cart now.
-
Re: CAPTCHA Anti-Robot Mod
I do not know if there were any other issues, those just happened to catch my attention ... :smile:
-
Re: CAPTCHA Anti-Robot Mod
any way to add to the contact us
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
letsmod
any way to add to the contact us
Yes and I just uploaded an update for it that includes the contact_us page. It may take a while to show up here, but you can get it from My Mods Site now. It has Upgrade Instructions if you have installed Version 1.2b and want to just add the contact page. Remember to turn it on in the configuration screen.
-
Re: CAPTCHA Anti-Robot Mod
I love this mod. I only have 1 minor issue with it. On my pages, it is displaying the text to enter on 2 lines....is there a way to force this to put it all on the same line? You can see what I'm talking about here: http://funkymunkys.ca/index.php?main...create_account
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
FunkyPapa
I love this mod. I only have 1 minor issue with it. On my pages, it is displaying the text to enter on 2 lines....is there a way to force this to put it all on the same line? You can see what I'm talking about here:
http://funkymunkys.ca/index.php?main...create_account
In your stylesheet.css file on or around you have the input label set to 85%, change it to 95% and this will put it on the next line. I don't know if this will effect other inputs though.
-
Re: CAPTCHA Anti-Robot Mod
Sorry it took me a few days to respond to you. I thought I had subscribed to this thread when I posted in it :blush:. I changed that to 95 and it looked great on the create account page. but still had one letter on the first line on the contact us page. I played around with numbers and 99% fixed it fine on all the pages I see it on currently. Thank you for the help :clap:
-
Re: CAPTCHA Anti-Robot Mod
Hi, I just installed this and I'm having the same problem as FunkyPapa. I adjusted the "inputlabel" and changed it to 99% which fixed the layout problem on the create account page, but it is still an issue on the tell a friend and contact us pages... Anyone know what part of the CSS needs to be adjusted to fix these pages?
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
ehinchman
Hi, I just installed this and I'm having the same problem as FunkyPapa. I adjusted the "inputlabel" and changed it to 99% which fixed the layout problem on the create account page, but it is still an issue on the tell a friend and contact us pages... Anyone know what part of the CSS needs to be adjusted to fix these pages?
A link to your site would be helpful in finding an answer for you.
-
Re: CAPTCHA Anti-Robot Mod
Just loaded this on a test site and the one issue I found was the captcha div does not show when registering on first try. It does redirect back showing the proper error and then the captcha div and all appropriate fields show to be entered.
http://www.kroghfamilyranch.com/cart if you want to see
just fyi.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
richphitzwell
Just loaded this on a test site and the one issue I found was the captcha div does not show when registering on first try. It does redirect back showing the proper error and then the captcha div and all appropriate fields show to be entered.
http://www.kroghfamilyranch.com/cart if you want to see
just fyi.
It was setup to use the Split Login Page. Turn that on and you will be ok. I'll add it to the login page without split login in the next release.
Thanks for the info.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
richphitzwell
Just loaded this on a test site and the one issue I found was the captcha div does not show when registering on first try. It does redirect back showing the proper error and then the captcha div and all appropriate fields show to be entered.
http://www.kroghfamilyranch.com/cart if you want to see
just fyi.
After looking over that part of the Code, there is quick fix for this if you do not want to use the Split Login Screen.
Look for this in includes/templates/YOUR-TEMPLATES/tpl_modules_create_account.php around line 189:
Code:
<?php
if (strstr($_SERVER['REQUEST_URI'],'create_account') && CREATE_ACCOUNT_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && LOGIN_VALIDATION == 'true') {
?>
Change it to this
Code:
<?php
if (strstr($_SERVER['REQUEST_URI'],'create_account') && CREATE_ACCOUNT_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && CREATE_ACCOUNT_VALIDATION == 'true') {
?>
In the next release, I will make this a toggle as well.
-
Re: CAPTCHA Anti-Robot Mod
Just wanted to say, thanks for the contribution.
It was a breeze to install and, it works!
-
Re: CAPTCHA Anti-Robot Mod
Agreed, and thanks for letting us know the code for non split screen.
-
Re: CAPTCHA Anti-Robot Mod
This mod works great on such pages as Contact Us, but there's no Captcha image or input area showing up on the main login/register page. http://www.tarbstrading.com/index.php?main_page=login
How do I add a Captcha there?
(It's ZC 1.3.9f btw.)
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
JayMot
Look back up 3 to 4 messages.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
JTheed
Look back up 3 to 4 messages.
Yeah, I just found that out on my own. :) I went ahead and created my test user account and it said I'd entered an invalid captcha code, then there it was! The trouble is, it still does the same thing every time which might annoy potential customers and make them go away. I want the validation code portion of the registration screen to always be visible, not just appear as previously-hidden, required field after someone's already tried to register. Any ideas how?
-
Re: CAPTCHA Anti-Robot Mod
Switch your login screen, to Split Screen. Located in Admin, Configuration, Layout Settings, Use split-login page (set to TRUE). With this setting, when someone clicks to create account from the split-login screen, the validation code will show at the bottom of the following screen, and they will be required to enter the verification code to create account.
Does this help to answer your question?
-
Re: CAPTCHA Anti-Robot Mod
Ah, there we are! Funny, my Zen Cart installation used to be set to split screen but it got changed somehow, Thanks a million!
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
JayMot
Ah, there we are! Funny, my Zen Cart installation used to be set to split screen but it got changed somehow, Thanks a million!
Also, if you had modified your file as it said in that previous message that you found on your own, you would also see it at the Non-Split screen.
-
Re: CAPTCHA Anti-Robot Mod
My captcha doesn't work for some reason. It does show where it supposed to be and seems to be ok, but it doesn't actually do anything. You can leave the validation code box empty or write anything into it and the message still gets delivered from Contact us -page (same thing on Create account -page and I don't use Tell a friend -option).
If you don't manage to send the message for some other reason, for example if you leave the email box empty, then also catpha error will appear if needed.
So when email box is empty and validation code box is also empty or code is incorrect, two errors is displayed:
"You have entered an incomplete or incorrect validation (CAPTCHA) code."
"Sorry, my system does not understand your email address. Please try again."
And if validation code is correct, only the email error is displayed.
So captcha seems to work in the way that it understands whether the code is correct or not, but it just doesn't stop the procedure in incorrect case and message gets delivered anyway.
Does anyone have a clue what could be the problem?
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
Finezzer
My captcha doesn't work for some reason. It does show where it supposed to be and seems to be ok, but it doesn't actually do anything. You can leave the validation code box empty or write anything into it and the message still gets delivered from Contact us -page (same thing on Create account -page and I don't use Tell a friend -option).
If you don't manage to send the message for some other reason, for example if you leave the email box empty, then also catpha error will appear if needed.
So when email box is empty and validation code box is also empty or code is incorrect, two errors is displayed:
"You have entered an incomplete or incorrect validation (CAPTCHA) code."
"Sorry, my system does not understand your email address. Please try again."
And if validation code is correct, only the email error is displayed.
So captcha seems to work in the way that it understands whether the code is correct or not, but it just doesn't stop the procedure in incorrect case and message gets delivered anyway.
Does anyone have a clue what could be the problem?
Did you just copy the files or merge them in? If you just copied them in, then possibly one did not get copied. best to rename the originals and them copy the new ones in and when it works, you can remove the renamed ones. If you merged them, you missed some of the code.
Did you rename the YOUR_TEMPLATE folders under modules and templates to the name of the template you are using?
Lastly, did you go into the Admin/Configuration/Captcha page and turn them on?
I just tried what you were saying on my site which is running 1.3.9f and it works as advertised.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
JTheed
Did you just copy the files or merge them in? If you just copied them in, then possibly one did not get copied. best to rename the originals and them copy the new ones in and when it works, you can remove the renamed ones. If you merged them, you missed some of the code.
Did you rename the YOUR_TEMPLATE folders under modules and templates to the name of the template you are using?
Lastly, did you go into the Admin/Configuration/Captcha page and turn them on?
I just tried what you were saying on my site which is running 1.3.9f and it works as advertised.
Thanks JTheed, but no matter what I enter I get "You did not enter the validation code correctly. Please, try again" www.marinemagik.com. please give it a look see. Thanks
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
JTheed
Did you just copy the files or merge them in? If you just copied them in, then possibly one did not get copied. best to rename the originals and them copy the new ones in and when it works, you can remove the renamed ones. If you merged them, you missed some of the code.
Did you rename the YOUR_TEMPLATE folders under modules and templates to the name of the template you are using?
Lastly, did you go into the Admin/Configuration/Captcha page and turn them on?
I just tried what you were saying on my site which is running 1.3.9f and it works as advertised.
Quote:
Originally Posted by
gearheadniko
Thanks JTheed, but no matter what I enter I get "You did not enter the validation code correctly. Please, try again"
www.marinemagik.com. please give it a look see. Thanks
Update: The Tell a Friend works, Contact us works, but no go on Create an Account
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
gearheadniko
Update: The Tell a Friend works, Contact us works, but no go on Create an Account
Ok, once again. Make sure you have renamed BOTH folders from YOUR_TEMPLATE in the modules and templates folder to whatever the name of your template is. If no custom template, it would be classic.
Rename your modules/pages/create_account/header_php.php to something else and then copy the file over again.
I know it works as you can try it on my system at My Mods Site and you will see that it does.
-
Re: CAPTCHA Anti-Robot Mod
Thanks for the response. I have no doubt that it works fine, I just can't seem to get it to work for me. I did as you said above but still no go, same message. I really appreciate your effort here.
Niko
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
gearheadniko
Thanks for the response. I have no doubt that it works fine, I just can't seem to get it to work for me. I did as you said above but still no go, same message. I really appreciate your effort here.
Niko
Is it possible that you have more than one template and it's not getting into the correct one?
-
Re: CAPTCHA Anti-Robot Mod
Also I only found one folder to rename not two, I got includes\templates\custom_template which one did I miss?
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
gearheadniko
Also I only found one folder to rename not two, I got includes\templates\custom_template which one did I miss?
There should be one under includes/modules/YOUR_TEMPLATE
If not, then download the latest one from My Mods Site and update your files with that one.
-
Re: CAPTCHA Anti-Robot Mod
-
Re: CAPTCHA Anti-Robot Mod
That did it you are a great help. Thank you for giving so much of your time.
Best regards
Niko
-
Re: CAPTCHA Anti-Robot Mod
Problems solved!
Create account -page didn't work because the captcha version I downloaded from Zen Cart's "Free software add ons" didn't mention about that other YOUR_TEMPLATE folder. So I downloaded the one from JTheed's "My mods site", followed its instructions and captcha started to work just fine.
The problem with contact us -page was that I had done one file merge wrong.
Thanks for your help, JTheed!
-
Re: CAPTCHA Anti-Robot Mod
I just installed the latest version, 08/11/2010.
The create an account page works fine.
But the tell a friend and contact pages are allowing me to proceed through even though I entered an invalid captcha verification code.
Has anyone experienced this? any suggestions?
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
Finezzer
The problem with contact us -page was that I had done one file merge wrong.
I encounter same issue. Which file merge had you done wrong which caused the problem with contact us -page?
Amanda
-
Re: CAPTCHA Anti-Robot Mod
Hello,
I see two "CAPTCHA Validation" under Configuration. When I click the second one, it's blank. How do I remove the second link from the menu? Thank you.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
nycxkkoma
Hello,
I see two "CAPTCHA Validation" under Configuration. When I click the second one, it's blank. How do I remove the second link from the menu? Thank you.
You probably have 2 entries in your database configuration_group table. You will have to edit your database and find the 2nd CAPTCHA Validation entry and delete it.
To get the correct one, note down the configuration_group_id of each one and then search that id in the configuration group. The one that is there is the one you want to keep.
-
Re: CAPTCHA Anti-Robot Mod
Thank you for the reply.
Can you be a little bit more specific (where the database file is located and how I find the ID for each?) since I am new at editing this from zencart. Thank you.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
nycxkkoma
Thank you for the reply.
Can you be a little bit more specific (where the database file is located and how I find the ID for each?) since I am new at editing this from zencart. Thank you.
The easiest way for you to correct this would be to delete it all from your database.
BACKUP your DATABASE FIRST!!
Edit the UnInstall_CAPTCHA.sql file and remove the LIMIT 1 from this line only. Make sure you leave the ; at the end of the line.
Code:
DELETE FROM configuration_group WHERE configuration_group_title = 'CAPTCHA Validation' LIMIT 1;
Check your Admin/Configurartion screen that all of the CAPTCHA entries are gone.
Now re-run the Install_CAPTCHA.sql file and there should only be one entry now.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
JTheed
After looking over that part of the Code, there is quick fix for this if you do not want to use the Split Login Screen.
Look for this in includes/templates/YOUR-TEMPLATES/tpl_modules_create_account.php around line 189:
Code:
<?php
if (strstr($_SERVER['REQUEST_URI'],'create_account') && CREATE_ACCOUNT_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && LOGIN_VALIDATION == 'true') {
?>
Change it to this
Code:
<?php
if (strstr($_SERVER['REQUEST_URI'],'create_account') && CREATE_ACCOUNT_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && CREATE_ACCOUNT_VALIDATION == 'true') {
?>
In the next release, I will make this a toggle as well.
This is an error actually the file to be amended is /includes/modules/create_account.php
There is no such code in tpl_modules_create_account.php
save you some head scratching :P
-
Re: CAPTCHA Anti-Robot Mod
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
aozhaver
This is an error actually the file to be amended is /includes/modules/create_account.php
There is no such code in tpl_modules_create_account.php
save you some head scratching :P
Maybe in someone else's version but I am looking at mine and in tpl_modules_create_account.php at line 189 and it is there, not in create_account.php . Also, in my current version create_account.php would be located in modules/YOUR_TEMPLATE/create_account.php
-
Re: CAPTCHA Anti-Robot Mod
Well then you must have changed it since when I downloaded it (which was only about 2 weeks ago).
My version readme states "Last Updated: 08/11/2010"
I checked both the original CAPTCHA files and the FEC create_account files all the references to that code is in the modules files and yes your fix works even there.
Great simple fix to a great big problem that was driving me mad:P
-
Re: CAPTCHA Anti-Robot Mod
By the way is there anywhere I can download an alternative image file for the anti-robot challenge images? I find the current format quite confusing even to humans :P
I guess thats a matter of opinion but if you could point me in the right direction I'd like to see all my options.
Cheers!:D
-
Re: CAPTCHA Anti-Robot Mod
I reinstalled CAPTCHA today on my site to add the 'Contact Us' page functionality. I see the option in my Admin, just not seeing it on the site, until I attempt to send a message then it shows up ?
http://bbmetalfab.com/metalart
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
robinsonjas
I reinstalled CAPTCHA today on my site to add the 'Contact Us' page functionality. I see the option in my Admin, just not seeing it on the site, until I attempt to send a message then it shows up ?
http://bbmetalfab.com/metalart
I think it has to do with the Magic SEO URL add-on. When I disable it temporarily the CAPTHCA works on Contact Us page.
Any ideas?
-
Re: CAPTCHA Anti-Robot Mod
Got it, the code looks for 'contact_us' and the URL translation was 'contact-us'...I changed the underbar to a hyphen and all good now.
-
Re: CAPTCHA Anti-Robot Mod
zen cart 1.3.9h
hey this is awesome...thanks so much...
my only advice as a newbie to newbies, is break out the pen and paper and take your time, ensure to follow it to the letter...
make a note of every change, and if you haven't read the article about templates and making your own template, don't attempt this mod because you'll make a balls of it..there is a couple of steps that are a little tricky, knowing how you make your own template is a must...
keep the faith...
thanks so much for a great add on...
donal:clap:
-
Re: CAPTCHA Anti-Robot Mod
I posted my question in the wrong Captcha Thread it seemed,
http://www.zen-cart.com/forum/showpo...&postcount=152 can you read my post there ?
I don't want to risk reprimand for posting it all again here.
In a nutshell:
I made the error of installing the Captcha.sql forgeting to add the prefix.
Uninstalled and reinstalled with prefix , yet it seems my table prefix is being automatically added on the config queries.
should I just add it to the Delete query at the end only as that was the only one to error when first installed?
-
Re: CAPTCHA Anti-Robot Mod
I've reinstalled the Captcha.sql without adding prefix as the DB prefix 'znc_' as is being self generated somehow . Had No installed errors.
Captcha Validation is showing in Admin>> Configuration as it should.
However on contact page I have this error where the Captcha verfication should be:
1146 Table 'db_name.table_anti_robot_registration' doesn't exist
in:
[DELETE FROM TABLE_ANTI_ROBOT_REGISTRATION WHERE timestamp < '1289554348' OR session_id = 't723jl488tgfc08m1agml8stq5']
I've checked the phpMyAdmin the table:znc_anti_robotreg is there
so was created on istall of patch
It appears that there is a prefix 'table' being added to a table name which is now anti_robot_registration rather than anti_roboterg which was the name of the table created on the Install_captcha.sql
How do I fix this?
:cry:
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
pippa_oz
I've reinstalled the Captcha.sql without adding prefix as the DB prefix 'znc_' as is being self generated somehow . Had No installed errors.
Captcha Validation is showing in Admin>> Configuration as it should.
However on contact page I have this error where the Captcha verfication should be:
1146 Table 'db_name.table_anti_robot_registration' doesn't exist
in:
[DELETE FROM TABLE_ANTI_ROBOT_REGISTRATION WHERE timestamp < '1289554348' OR session_id = 't723jl488tgfc08m1agml8stq5']
I've checked the phpMyAdmin the table:znc_anti_robotreg is there
so was created on istall of patch
It appears that there is a prefix 'table' being added to a table name which is now anti_robot_registration rather than anti_roboterg which was the name of the table created on the Install_captcha.sql
How do I fix this?
:cry:
Check to make sure that the file anti_reg_filenames.php is in the /includes/extra_datafiles location as it defines the tables. You will see in this file that is it defined as anti_robotreg:
Code:
define('TABLE_ANTI_ROBOT_REGISTRATION', DB_PREFIX . 'anti_robotreg');
It adds the prefix as long as it is defined in your configure.php file.
-
Re: CAPTCHA Anti-Robot Mod
Thanks,
Yes I did upload to includes/ extra_datafiles
Checked the anti_reg_filemanes.php and had seen that
define('TABLE_ANTI_ROBOT_REGISTRATION', DB_PREFIX . 'anti_robotreg');
was defined there.
So I went to PhpMyAdmin and manually dropped the existing znc_anti_robotreg table and recreated it manually and now it works fine.
Goodness knows why it didn't work the first time.
I don't care - It works! :clap:
Thanks for a great addon. and your help
I'm off to buy zencart a coffee!
-
Re: CAPTCHA Anti-Robot Mod
Hi,
After install magic seo url the validation captcha don't work. I am using 1.39h.
Any idea please?
Cheers!
-
Re: CAPTCHA Anti-Robot Mod
my captcha was working fine, but now it's not. the input boxes still show up (enter validation code) but the little letters are not there. i've got them in /store/images/validation/ and i've re-uploaded them, but still no love. any ideas? i took the captcha down for now, but can put it back up if it helps someone see what's wrong.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
fontaholic
my captcha was working fine, but now it's not. the input boxes still show up (enter validation code) but the little letters are not there. i've got them in /store/images/validation/ and i've re-uploaded them, but still no love. any ideas? i took the captcha down for now, but can put it back up if it helps someone see what's wrong.
Hi Emily,
Re-check permission from validation folder. Test it.
Do you have new mods installed??
Cheers!
-
Re: CAPTCHA Anti-Robot Mod
where is the proper place to insert this code
Code:
if (TELL_A_FRIEND_VALIDATION == 'true') {
include_once(DIR_WS_FUNCTIONS . 'extra_functions/' . FILENAME_ACCOUNT_VALIDATION);
into the 1.3.9h
\includes\modules\pages\tell_a_friend\header_php.php ?
*there is a lot of additional spam prevention code not included in the supplied file.
thanks.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
gsdcypher
where is the proper place to insert this code
Code:
if (TELL_A_FRIEND_VALIDATION == 'true') {
include_once(DIR_WS_FUNCTIONS . 'extra_functions/' . FILENAME_ACCOUNT_VALIDATION);
into the 1.3.9h
\includes\modules\pages\tell_a_friend\header_php.php ?
*there is a lot of additional spam prevention code not included in the supplied file.
thanks.
It is meant to REPLACE the original files as the spam prevention is in the file under modules/YOUR_TEMPLATE/tell_a_friend.php.
If you look in that file you will see the same Spam Prevention code in it.
JT
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
fontaholic
my captcha was working fine, but now it's not. the input boxes still show up (enter validation code) but the little letters are not there. i've got them in /store/images/validation/ and i've re-uploaded them, but still no love. any ideas? i took the captcha down for now, but can put it back up if it helps someone see what's wrong.
Did you get this working?
JT
-
Re: CAPTCHA Anti-Robot Mod
Hi JTheed
The 3 files supplied:
includes/modules/pages/contact_us/header_php.php
includes/modules/pages/create_account/header_php.php
includes/modules/pages//tell_a_friend/header_php.php
are supposed to go in
includes/modules/my_template/pages/contact_us/header_php.php
includes/modules/my_template/pages/create_account/header_php.php
includes/modules/my_template/pages/tell_a_friend/header_php.php
and override/merge correct?
and the 3 supplied files:
* includes/modules/your_template/contact_us.php
* includes/modules/your_template/create_account.php
* includes/modules/your_template/tell_a_friend.php
are supposed to go in and override/merge correct?
* includes/modules/my_template/contact_us.php
* includes/modules/my_template/create_account.php
* includes/modules/my_template/tell_a_friend.php
just trying to get this strait because i am removing the previous version that didn't use overrides and i have fec and cowa...
thanks
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
gsdcypher
Hi JTheed
The 3 files supplied:
includes/modules/pages/contact_us/header_php.php
includes/modules/pages/create_account/header_php.php
includes/modules/pages//tell_a_friend/header_php.php
are supposed to go in
includes/modules/my_template/pages/contact_us/header_php.php
includes/modules/my_template/pages/create_account/header_php.php
includes/modules/my_template/pages/tell_a_friend/header_php.php
and override/merge correct?
and the 3 supplied files:
* includes/modules/your_template/contact_us.php
* includes/modules/your_template/create_account.php
* includes/modules/your_template/tell_a_friend.php
are supposed to go in and override/merge correct?
* includes/modules/my_template/contact_us.php
* includes/modules/my_template/create_account.php
* includes/modules/my_template/tell_a_friend.php
just trying to get this strait because i am removing the previous version that didn't use overrides and i have fec and cowa...
thanks
I may be wrong, but I don't think that the pages folder are part of the override system. What do you think they are saying in this tutorial.
https://www.zen-cart.com/tutorials/i...hp?article=143
Your 2nd part is correct.
JT
-
Re: CAPTCHA Anti-Robot Mod
close.... but alignment issue.
if set to four letters the first letter is on one line and the other 3 are down below.
if set to five letters the first letter is on one line and the other 4 are down below,
etc. etc.
Validation Code
Please enter the following validation code in the box provided: L
Ogg
please advise. thanks
-
Re: CAPTCHA Anti-Robot Mod
follow up.
i fixed by editing tpl_contact_us_default.php with <br class="clearBoth: /> after </label>
<fieldset>
<legend><?php echo CATEGORY_ANTIROBOTREG; ?></legend>
<label class="inputLabel" for="antirobotreg"><?php echo ENTRY_ANTIROBOTREG ?></label>
<br class="clearBoth" />
cheers
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
gsdcypher
follow up.
i fixed by editing tpl_contact_us_default.php with <br class="clearBoth: /> after </label>
<fieldset>
<legend><?php echo CATEGORY_ANTIROBOTREG; ?></legend>
<label class="inputLabel" for="antirobotreg"><?php echo ENTRY_ANTIROBOTREG ?></label>
<br class="clearBoth" />
cheers
Thanks for the update. I turn off the right column to give it more room, but your way is better.
JT
-
Re: CAPTCHA Anti-Robot Mod
Hey!
I have some trouble installing the SQL Patch.
When I try to update my DB, I always get the following error:
Code:
SQL-Befehl:
INSERT INTO `configuration_group`
VALUES (
NULL , 'CAPTCHA Validation', 'Anti-Robot Registration/Verification', @sortorder +1, 1
);
MySQL meldet:
#1136 - Column count doesn't match value count at row 1
I'm using PHP 5.3 and MySQL 5.0.51a.
Of course I already tried to copy & paste the whole SQL stuff.
Would be great, if someone could help me with this!
-
Re: CAPTCHA Anti-Robot Mod
No one here who can help me? :(
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
pititis
Hi Emily,
Re-check permission from validation folder. Test it.
Do you have new mods installed??
Cheers!
Quote:
Originally Posted by
JTheed
Did you get this working?
JT
Hi, thanks for the poke. No I actually haven't figured it out yet. The permissions on the images are all set to 777 and I can browse to them (http://store.inspiritcommon.com/imag...lidation_r.gif) directly, so i'm not sure what's going on. Is there another directory I should check?
It's hard to say what mods I've installed since... I'm not sure exactly when it stopped working.
Right now I have the mod disabled. But when it's on, the box shows with the instructions and the form box, but no little letters.
Blessings!
:) emily
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
fontaholic
The permissions on the images are all set to 777
doing a bit more reading, i tried changing the image permissions to 644, to no avail. i can still browse directly to the image, but cannot see them in the captcha box when the mod is enabled.
*sigh*
-
Re: CAPTCHA Anti-Robot Mod
Hello,
After installing this module on my newly updated Zencart the catcha not showing up on any pages, however each of the pages claim when you try to submit the page that "invalid Captcha code"
Where can the problem be?
I used a previous version of this module with luck for years, now I can't get it to work again...
It's like the Captcha is hidden from the page... For now I turned it off and I can live without it but can anybody hint what might be wong here?
-
Re: CAPTCHA Anti-Robot Mod
The Discussion here is excellent Thanks to all
casino en ligne
-
Re: CAPTCHA Anti-Robot Mod
Oxxyfx and fontaholic,
Did you rename the folders under includes/modules/YOUR_TEMPLATE and includes/templates/YOUR_TEMPLATE to the actual name of your template that you are using?
Did you verify that the SQL installed correctly?
JT
-
Re: CAPTCHA Anti-Robot Mod
Thanks JT, I E-mailed you and you helped me over the E-mail already. THe problem was that some of the files on my system got coped into the wrong directory on the server.
-
Re: CAPTCHA Anti-Robot Mod
Hmmm- well, I certainly did try to install with care.
I installed the SQL patch by copying the statements rather than uploading a file- tables are structured just like they should be once the statements were executed. I've verified that my database has the anti_robot_reg table added.
I can see the CATCHPA menu choice in the admin configuration & have everything set to true/on.
I've tried both split log-in and vertical log-in.
My zen cart is in a subfolder, so I added the validation pictures to public_html/images/validation.
And yep, I've added the 3 tpl files (tpl_contact_us_default, tpl_modules_create_account, and tpl_tell_a_friend_default) to BOTH my default template and the template I'm currently using.
Still don't see a thing on the front side, and I'm not stopped when I try to register a new customer without a catchpa. What did I miss?
-
Re: CAPTCHA Anti-Robot Mod
My mistake. Double checked, and I'd uploaded the wrong tpl file. Got as far as seeing letters, although if I enter the wrong catchpa, no error is thrown. I'll go back and recheck my installation, see what I might've missed.
-
Re: CAPTCHA Anti-Robot Mod
Okay, uninstalled, reinstalled, double checked, triple checked. All files are where they should be, database looks like it ought to. Catchpa letters show up fine, but if I enter the wrong letters, no error takes place. Any pointers as to what part of the code I should look at?
-
Re: CAPTCHA Anti-Robot Mod
Finally got this. Had to reinstall a few times, but it's working now. THANKS- it's a really helpful mod.
-
Re: CAPTCHA Anti-Robot Mod
Is it possible to add the Captcha form to a custom page?
For instance I have a page containing only a form which allows others to send link requests to me at http://www.divatoys.com/links/ I have the Captcha mod working on Contact Us etc but wondered whether I could manually add it to this page and if so, how?
Thanks.
-
Re: CAPTCHA Anti-Robot Mod
I installed it yesterday with an older version without the contact form. So I completely uninstalled it, including form the Database. I reinstalled it today without any major issues. Just let people know in the instructions that they need to create the name of their template inn the modules section if they do not have one.
Also, please update the downloads section with the new version. Thanks for a great addon.
-
Re: CAPTCHA Anti-Robot Mod
Ok, I tried searching all of these forums and cannot find an answer specific to my issue, and I think this is the right thread to reply in.
I am trying to use the standard CAPTCHA Anti-Robot Registration
by JT of GTI Custom ver 1.3, zencart ver 1.3.9h
Installed, and the Captcha works on the contact us (except that it erases your message if you type the wrong captcha phrase, any way to keep this from happening?), and the tell a friend, but on the create account page there is nothing there until you hit submit, then it says you didnt enter the proper phrase, then it shows up at the bottom.
So, the first time you go into the create account page it is just normal until you try to submit, then it errors and shows up.
I can go into the configuration and disable it on the create account page and then you can create an account fine, but no captcha, so it kind of defeats half the purpose of having it.
Earlier in this thread, JT is telling people to make sure that they have renamed the folders to your template name (Labeled Your_template), but in the add on download under modules there is no template folder at all, and the template folder places them under template_default. Am I supposed to chage the template_default to my skin name?
Any ideas?
Thanks a bunch for the mod though, if I can get it working fully it will be great.
-
Re: CAPTCHA Anti-Robot Mod
Hi JTheed,
This module is working well. But i want to put a button beside this capcha to refresh it. Please help me how to do it.
Thanks and best regards
-
Re: CAPTCHA Anti-Robot Mod
Can this mod work with Ask a Question mod? How?
-
Re: CAPTCHA Anti-Robot Mod
Nevermind, I got the other captcha working with Ask a Question mod.
-
Re: CAPTCHA Anti-Robot Mod
I have installed the mod to work with the contact_us page. Everything appears to be installed correctly and have doubled checked that everything went into the correct folders. I set it as TRUE for tell a friend for now to test it and I get the following:
1. It shows on the page but no images instead there are the words "Enable this picture" with a "redraw" tab next to the words.
2. Box underneath this with words next to it "verification code".
When I type in a dummy code it says that I have entered the wrong code... all good. But, how can I get the images to show up.
This is from the source code:
<img id="captcha-img" src="https://www.website.com.au/captcha_img.php?zenid=a415850a70e41b43d68907faedc2f4c8&rand=0.322064001307450238 " alt="Enable this picture" title=" Enable this picture " width="240" height="50" /><input type="image" src="includes/templates/my_template/buttons/english/button_redraw.gif" alt="Redraw Capture Image" title=" Redraw Capture Image " onclick="document.getElementById('captcha-img').src='https://www.website.com.au/captcha_img.php?zenid=a415850a70e41b43d68907faedc2f4c8&rand='+Math.random();retu rn false;" /><br class="clearBoth" />
<label for="captcha">Verification code:</label>
<input type="text" name="captcha" id="captcha" /> <span class="alert">* (case insensitive)</span><br class="clearBoth" />
What should the CHMOD be for images/verification folder?
When I call us the captcha_img.php file in the browser I get the following:
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
* Please contact the web site owners to inform them of this problem.
Could it be the https in the code that is causing the images not to show?
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
JTheed
Oxxyfx and fontaholic,
Did you rename the folders under includes/modules/YOUR_TEMPLATE and includes/templates/YOUR_TEMPLATE to the actual name of your template that you are using?
Did you verify that the SQL installed correctly?
JT
Work fine on tell a friend and contact us. But I don't see on registration. I believe installed correct includes/.
How to verify SQL correct?
-
Re: CAPTCHA Anti-Robot Mod
dont see on registration page either ?
anything worth checking
thanks
bryan
-
Re: CAPTCHA Anti-Robot Mod with CEON URL
just an update for anyone using ceon url mapping add no,
i was getting no captcha showing at all
in /includes/templates/YOURTEMPLTE/ tpl_modules_create_account.php
at line 189
change to
PHP Code:
<?php
if (strstr($_SERVER['REQUEST_URI'],'create-account') && CREATE_ACCOUNT_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && CREATE_ACCOUNT_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'create_account') && CREATE_ACCOUNT_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || (strstr($_SERVER['REQUEST_URI'],'create-account')) || (strstr($_SERVER['REQUEST_URI'],'login')) || (strstr($_SERVER['REQUEST_URI'],'create_account'))) {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
this works for me and lets you use captcha if ceon is on or off
and in includes/templates/YOURTEMPLATE/tpl_contact_us_default.php at line 83 change to
PHP Code:
<?php
if (strstr($_SERVER['REQUEST_URI'],'contact-us') && CONTACT_US_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'contact_us') && CONTACT_US_VALIDATION == 'true' || strstr($_SERVER['REQUEST_URI'],'login') && LOGIN_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || (strstr($_SERVER['REQUEST_URI'],'contact-us')) || (strstr($_SERVER['REQUEST_URI'],'contact_us')) || (strstr($_SERVER['REQUEST_URI'],'login'))) {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
again this should let you use captcha with ceon offf or on.
hope this helps someone
bryan
-
Re: CAPTCHA Anti-Robot Mod
Why no captcha showing on Ask a question about this product?
Why no CAPTCHA showing once an item enabled CEON url mapping? But without CEON.
How to fix them? Thank you!
-
1 Attachment(s)
Re: CAPTCHA Anti-Robot Mod
hi,
after a bit of help over a ceon support thread from conor i ended up changing code slightly from above
in tpl_modules_create_account.php
use code
PHP Code:
<?php
if ($_GET['main_page'] == 'create_account' && CREATE_ACCOUNT_VALIDATION == 'true' || $_GET['main_page'] == 'login' && LOGIN_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || $_GET['main_page'] == 'create_account' || $_GET['main_page'] == 'login') {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
and in tpl_contact_us_default.php
PHP Code:
<?php
if ($_GET['main_page'] == 'contact_us' && CONTACT_US_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || $_GET['main_page'] == 'contact_us' || $_GET['main_page'] == 'login') {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
and in tpl_tell_a_friend_default.php
PHP Code:
<?php
if ($_GET['main_page'] == 'tell_a_friend') {
?>
<?php
if ($is_read_only == false || $_GET['main_page'] == 'tell_a_friend') {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
i have placed these in my includes/templates/TEMPLATE_NAME/templates folder
they can be seen working over at www.onyourbike.co.uk. i dont use the tell a friend but it definitely works, i have included the 3 files im using,
thanks bryan
-
Re: CAPTCHA Anti-Robot Mod
Hi Bryan,
Downloaded your template.zip
fixed on tell a friend.
But other two files seem like missing some code. Causes right sideboxes dispear and still no CAPTcha.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
bn17311
hi,
after a bit of help over a ceon support thread from conor i ended up changing code slightly from above
in tpl_modules_create_account.php
use code
PHP Code:
<?php
if ($_GET['main_page'] == 'create_account' && CREATE_ACCOUNT_VALIDATION == 'true' || $_GET['main_page'] == 'login' && LOGIN_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || $_GET['main_page'] == 'create_account' || $_GET['main_page'] == 'login') {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
thanks bryan
Hi Bryan,
Your zip/This file causes missing right sidebox and still no CATPChA.
tpl_modules_create_account.php
why ending with <? echo tep_crafty_country_handler(1); ?> ?
I skip this still not working.
Other two are working fine.
-
Re: CAPTCHA Anti-Robot Mod
hi,
i really only included my files so you could compare where the captcha code changed as i have postcode look up in mine
here is the file that came with package but modified with new code
PHP Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=create_account.<br />
* Displays Create Account form.
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_create_account.php 4822 2006-10-23 11:11:36Z drbyte $
*/
?>
<?php if ($messageStack->size('create_account') > 0) echo $messageStack->output('create_account'); ?>
<div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
<br class="clearBoth" />
<?php
if (DISPLAY_PRIVACY_CONDITIONS == 'true') {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_PRIVACY_CONDITIONS; ?></legend>
<div class="information"><?php echo TEXT_PRIVACY_CONDITIONS_DESCRIPTION;?></div>
<?php echo zen_draw_checkbox_field('privacy_conditions', '1', false, 'id="privacy"');?>
<label class="checkboxLabel" for="privacy"><?php echo TEXT_PRIVACY_CONDITIONS_CONFIRM;?></label>
</fieldset>
<?php
}
?>
<?php
if (ACCOUNT_COMPANY == 'true') {
?>
<fieldset>
<legend><?php echo CATEGORY_COMPANY; ?></legend>
<label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
<?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?>
</fieldset>
<?php
}
?>
<fieldset>
<legend><?php echo TABLE_HEADING_ADDRESS_DETAILS; ?></legend>
<?php
if (ACCOUNT_GENDER == 'true') {
?>
<?php echo zen_draw_radio_field('gender', 'm', '', 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', '', 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>' . (zen_not_null(ENTRY_GENDER_TEXT) ? '<span class="alert">' . ENTRY_GENDER_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="firstname"><?php echo ENTRY_FIRST_NAME; ?></label>
<?php echo zen_draw_input_field('firstname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="lastname"><?php echo ENTRY_LAST_NAME; ?></label>
<?php echo zen_draw_input_field('lastname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' id="lastname"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="street-address"><?php echo ENTRY_STREET_ADDRESS; ?></label>
<?php echo zen_draw_input_field('street_address', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' id="street-address"') . (zen_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if (ACCOUNT_SUBURB == 'true') {
?>
<label class="inputLabel" for="suburb"><?php echo ENTRY_SUBURB; ?></label>
<?php echo zen_draw_input_field('suburb', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' id="suburb"') . (zen_not_null(ENTRY_SUBURB_TEXT) ? '<span class="alert">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="city"><?php echo ENTRY_CITY; ?></label>
<?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city"') . (zen_not_null(ENTRY_CITY_TEXT) ? '<span class="alert">' . ENTRY_CITY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if (ACCOUNT_STATE == 'true') {
if ($flag_show_pulldown_states == true) {
?>
<label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
<?php
echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert">' . ENTRY_STATE_TEXT . '</span>';
}
?>
<?php if ($flag_show_pulldown_states == true) { ?>
<br class="clearBoth" id="stBreak" />
<?php } ?>
<label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
<?php
echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"');
if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert" id="stText">' . ENTRY_STATE_TEXT . '</span>';
if ($flag_show_pulldown_states == false) {
echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
}
?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?></label>
<?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
<?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<fieldset>
<legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?></legend>
<label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
<?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>
<?php
if (ACCOUNT_FAX_NUMBER == 'true') {
?>
<br class="clearBoth" />
<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php echo zen_draw_input_field('fax', '', 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>
<?php
}
?>
</fieldset>
<?php
if (ACCOUNT_DOB == 'true') {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_DATE_OF_BIRTH; ?></legend>
<label class="inputLabel" for="dob"><?php echo ENTRY_DATE_OF_BIRTH; ?></label>
<?php echo zen_draw_input_field('dob','', 'id="dob"') . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="alert">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<?php
}
?>
<fieldset>
<legend><?php echo TABLE_HEADING_LOGIN_DETAILS; ?></legend>
<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if ($phpBB->phpBB['installed'] == true) {
?>
<label class="inputLabel" for="nickname"><?php echo ENTRY_NICK; ?></label>
<?php echo zen_draw_input_field('nick','','id="nickname"') . (zen_not_null(ENTRY_NICK_TEXT) ? '<span class="alert">' . ENTRY_NICK_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="password-new"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-new"') . (zen_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="password-confirm"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></label>
<?php echo zen_draw_password_field('confirmation', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-confirm"') . (zen_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<fieldset>
<legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
<?php
if (ACCOUNT_NEWSLETTER_STATUS != 0) {
?>
<?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' . ENTRY_NEWSLETTER . '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php } ?>
<?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>
<br class="clearBoth" />
</fieldset>
<?php
if (ACCOUNT_VALIDATION == 'true') {
?>
<?php
if ($_GET['main_page'] == 'create_account' && CREATE_ACCOUNT_VALIDATION == 'true' || $_GET['main_page'] == 'login' && LOGIN_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || $_GET['main_page'] == 'create_account' || $_GET['main_page'] == 'login') {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
<fieldset>
<legend><?php echo CATEGORY_ANTIROBOTREG; ?></legend>
<label class="inputLabel" for="antirobotreg"><?php echo ENTRY_ANTIROBOTREG ?></label>
<?php
$validation_images = '';
for($i = 0; $i < ENTRY_VALIDATION_LENGTH; $i++)
{
$parse_image = 'validation/validation_' . $reg_key{$i} . '.gif';
$parse_image_alt = $reg_key{$i};
$validation_images .= zen_image(DIR_WS_IMAGES . $parse_image, $parse_image_alt);
}
echo '<div class="centered">';
echo $validation_images . '<br />';
echo '</div>';
?>
<?php echo zen_draw_input_field('antirobotreg','', 'id="antirobotreg"') . (zen_not_null(ENTRY_ANTIROBOTREG) ? '<span class="alert">' . ENTRY_ANTIROBOTREG_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<?php
}
?>
<?php
}
?>
<?php
if (CUSTOMERS_REFERRAL_STATUS == 2) {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?></legend>
<label class="inputLabel" for="customers_referral"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label>
<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral"'); ?>
<br class="clearBoth" />
</fieldset>
<?php } ?>
hope this helps i have tried this on mine and it works and i have right hand boxes without problem
thanks
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
bn17311
hi,
i really only included my files so you could compare where the captcha code changed as i have postcode look up in mine
here is the file that came with package but modified with new code
PHP Code:
<?php
/**
* Page Template
*
* Loaded automatically by index.php?main_page=create_account.<br />
* Displays Create Account form.
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_create_account.php 4822 2006-10-23 11:11:36Z drbyte $
*/
?>
<?php if ($messageStack->size('create_account') > 0) echo $messageStack->output('create_account'); ?>
<div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div>
<br class="clearBoth" />
<?php
if (DISPLAY_PRIVACY_CONDITIONS == 'true') {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_PRIVACY_CONDITIONS; ?></legend>
<div class="information"><?php echo TEXT_PRIVACY_CONDITIONS_DESCRIPTION;?></div>
<?php echo zen_draw_checkbox_field('privacy_conditions', '1', false, 'id="privacy"');?>
<label class="checkboxLabel" for="privacy"><?php echo TEXT_PRIVACY_CONDITIONS_CONFIRM;?></label>
</fieldset>
<?php
}
?>
<?php
if (ACCOUNT_COMPANY == 'true') {
?>
<fieldset>
<legend><?php echo CATEGORY_COMPANY; ?></legend>
<label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
<?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?>
</fieldset>
<?php
}
?>
<fieldset>
<legend><?php echo TABLE_HEADING_ADDRESS_DETAILS; ?></legend>
<?php
if (ACCOUNT_GENDER == 'true') {
?>
<?php echo zen_draw_radio_field('gender', 'm', '', 'id="gender-male"') . '<label class="radioButtonLabel" for="gender-male">' . MALE . '</label>' . zen_draw_radio_field('gender', 'f', '', 'id="gender-female"') . '<label class="radioButtonLabel" for="gender-female">' . FEMALE . '</label>' . (zen_not_null(ENTRY_GENDER_TEXT) ? '<span class="alert">' . ENTRY_GENDER_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="firstname"><?php echo ENTRY_FIRST_NAME; ?></label>
<?php echo zen_draw_input_field('firstname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' id="firstname"') . (zen_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="alert">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="lastname"><?php echo ENTRY_LAST_NAME; ?></label>
<?php echo zen_draw_input_field('lastname', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' id="lastname"') . (zen_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="alert">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="street-address"><?php echo ENTRY_STREET_ADDRESS; ?></label>
<?php echo zen_draw_input_field('street_address', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' id="street-address"') . (zen_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if (ACCOUNT_SUBURB == 'true') {
?>
<label class="inputLabel" for="suburb"><?php echo ENTRY_SUBURB; ?></label>
<?php echo zen_draw_input_field('suburb', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' id="suburb"') . (zen_not_null(ENTRY_SUBURB_TEXT) ? '<span class="alert">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="city"><?php echo ENTRY_CITY; ?></label>
<?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' id="city"') . (zen_not_null(ENTRY_CITY_TEXT) ? '<span class="alert">' . ENTRY_CITY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if (ACCOUNT_STATE == 'true') {
if ($flag_show_pulldown_states == true) {
?>
<label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
<?php
echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert">' . ENTRY_STATE_TEXT . '</span>';
}
?>
<?php if ($flag_show_pulldown_states == true) { ?>
<br class="clearBoth" id="stBreak" />
<?php } ?>
<label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
<?php
echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"');
if (zen_not_null(ENTRY_STATE_TEXT)) echo ' <span class="alert" id="stText">' . ENTRY_STATE_TEXT . '</span>';
if ($flag_show_pulldown_states == false) {
echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
}
?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?></label>
<?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label>
<?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<fieldset>
<legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?></legend>
<label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?></label>
<?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?>
<?php
if (ACCOUNT_FAX_NUMBER == 'true') {
?>
<br class="clearBoth" />
<label class="inputLabel" for="fax"><?php echo ENTRY_FAX_NUMBER; ?></label>
<?php echo zen_draw_input_field('fax', '', 'id="fax"') . (zen_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?>
<?php
}
?>
</fieldset>
<?php
if (ACCOUNT_DOB == 'true') {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_DATE_OF_BIRTH; ?></legend>
<label class="inputLabel" for="dob"><?php echo ENTRY_DATE_OF_BIRTH; ?></label>
<?php echo zen_draw_input_field('dob','', 'id="dob"') . (zen_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="alert">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<?php
}
?>
<fieldset>
<legend><?php echo TABLE_HEADING_LOGIN_DETAILS; ?></legend>
<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL_ADDRESS; ?></label>
<?php echo zen_draw_input_field('email_address', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_email_address', '40') . ' id="email-address"') . (zen_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="alert">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
if ($phpBB->phpBB['installed'] == true) {
?>
<label class="inputLabel" for="nickname"><?php echo ENTRY_NICK; ?></label>
<?php echo zen_draw_input_field('nick','','id="nickname"') . (zen_not_null(ENTRY_NICK_TEXT) ? '<span class="alert">' . ENTRY_NICK_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="password-new"><?php echo ENTRY_PASSWORD; ?></label>
<?php echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-new"') . (zen_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<label class="inputLabel" for="password-confirm"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></label>
<?php echo zen_draw_password_field('confirmation', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-confirm"') . (zen_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="alert">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
</fieldset>
<fieldset>
<legend><?php echo ENTRY_EMAIL_PREFERENCE; ?></legend>
<?php
if (ACCOUNT_NEWSLETTER_STATUS != 0) {
?>
<?php echo zen_draw_checkbox_field('newsletter', '1', $newsletter, 'id="newsletter-checkbox"') . '<label class="checkboxLabel" for="newsletter-checkbox">' . ENTRY_NEWSLETTER . '</label>' . (zen_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="alert">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php } ?>
<?php echo zen_draw_radio_field('email_format', 'HTML', ($email_format == 'HTML' ? true : false),'id="email-format-html"') . '<label class="radioButtonLabel" for="email-format-html">' . ENTRY_EMAIL_HTML_DISPLAY . '</label>' . zen_draw_radio_field('email_format', 'TEXT', ($email_format == 'TEXT' ? true : false), 'id="email-format-text"') . '<label class="radioButtonLabel" for="email-format-text">' . ENTRY_EMAIL_TEXT_DISPLAY . '</label>'; ?>
<br class="clearBoth" />
</fieldset>
<?php
if (ACCOUNT_VALIDATION == 'true') {
?>
<?php
if ($_GET['main_page'] == 'create_account' && CREATE_ACCOUNT_VALIDATION == 'true' || $_GET['main_page'] == 'login' && LOGIN_VALIDATION == 'true') {
?>
<?php
if ($is_read_only == false || $_GET['main_page'] == 'create_account' || $_GET['main_page'] == 'login') {
$sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . zen_session_id() . "'";
if( !$result = $db->Execute($sql) ) { die('Could not delete validation key'); }
$reg_key = generate_captcha_code();
$sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . zen_session_id() . "', '" . $reg_key . "', '" . time() . "')";
if( !$result = $db->Execute($sql) ) { die('Could not check registration information'); }
?>
<fieldset>
<legend><?php echo CATEGORY_ANTIROBOTREG; ?></legend>
<label class="inputLabel" for="antirobotreg"><?php echo ENTRY_ANTIROBOTREG ?></label>
<?php
$validation_images = '';
for($i = 0; $i < ENTRY_VALIDATION_LENGTH; $i++)
{
$parse_image = 'validation/validation_' . $reg_key{$i} . '.gif';
$parse_image_alt = $reg_key{$i};
$validation_images .= zen_image(DIR_WS_IMAGES . $parse_image, $parse_image_alt);
}
echo '<div class="centered">';
echo $validation_images . '<br />';
echo '</div>';
?>
<?php echo zen_draw_input_field('antirobotreg','', 'id="antirobotreg"') . (zen_not_null(ENTRY_ANTIROBOTREG) ? '<span class="alert">' . ENTRY_ANTIROBOTREG_TEXT . '</span>': ''); ?>
<br class="clearBoth" />
<?php
}
?>
<?php
}
?>
<?php
}
?>
<?php
if (CUSTOMERS_REFERRAL_STATUS == 2) {
?>
<fieldset>
<legend><?php echo TABLE_HEADING_REFERRAL_DETAILS; ?></legend>
<label class="inputLabel" for="customers_referral"><?php echo ENTRY_CUSTOMERS_REFERRAL; ?></label>
<?php echo zen_draw_input_field('customers_referral', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_referral', '15') . ' id="customers_referral"'); ?>
<br class="clearBoth" />
</fieldset>
<?php } ?>
hope this helps i have tried this on mine and it works and i have right hand boxes without problem
thanks
The CAPTCHA still not showing on Register, Product review and Ask a question by using your whole codes. But sidebox is normal now. I found following 3 lines you changed for the original:
($_GET['main_page'] == 'create_account'
$_GET['main_page'] == 'login'
$_GET['main_page'] == 'create_account' || $_GET['main_page'] == 'login')
Thank you for your time anyway.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
hara
The CAPTCHA still not showing on Register, Product review and Ask a question by using your whole codes. But sidebox is normal now. I found following 3 lines you changed for the original:
($_GET['main_page'] == 'create_account'
$_GET['main_page'] == 'login'
$_GET['main_page'] == 'create_account' || $_GET['main_page'] == 'login')
Thank you for your time anyway.
Hello bn17311,
It means your codes are inter-changeable but no help in my case.
I forgot to tell one thing:
CATPCHA not showing on the first page of Register form. But shows after filling and clicking the SUBMIT button. It is same no fix so far.
-
Re: CAPTCHA Anti-Robot Mod
Quote:
Originally Posted by
SPH
Nevermind, I got the other captcha working with Ask a Question mod.
Can you tell me which module you used? Thanks
-
Re: CAPTCHA Anti-Robot Mod
Hi there,I have follow all the instruction in the readme files,I have applied the install_sql files,i have renamed"your_template"file to my template names,both module and template,but the capcha refuse to show up,but it do show in admin page and I select true in the option menu.What mistake do i have?Any help is much appreciated.Thanks!
-
Re: CAPTCHA Anti-Robot Mod
problem fixed.just copy the files in \includes\templates\your_template to \includes\templates\your_template\templates\ and it will works
-
Re: CAPTCHA Anti-Robot Mod
Hi, Can anyone help, this is a great mod but I am fairly new to adding mods, I have followed all instructions and have the mod working on the contact us page but not on the log-in page
www.ew-trading.com
I inherited the site so maybe need to adapt something?
Any ideas welcome please as having multiple users signing up with same address but many diff emails...so think this mod will help!
Tested the mod vai contact page and works, comes up in admin panel etc, just not showing on that log-in page.
Thanks!
-
Re: CAPTCHA Anti-Robot Mod
I think I see an issue - my 'create_account' page is titled 'login' for some reason (when you go to log-in from nav bar). I have tried replicating and changing info in files to login (adding another set of files) and placing them but still not working, now I also see the login page is https and the create_account http...
Not sure what I can do here, not being a zen cart whiz...If I do a test on the login page and click submit, then it takes me to create_account and tells me I have entered code incorrectly and then I can input it, all the info is on that page...
So, I need to get the info on the login page or change the log-in page to direct to the create_account page (but then do I lose the SSL)....? Curioser...
www.ew-trading.com