captcha-number-subject-combo-in-one-1.0......
does not work, the picture appeared once and no more........:(
Printable View
captcha-number-subject-combo-in-one-1.0......
does not work, the picture appeared once and no more........:(
I am using the Captcha using TTF & GD by Andrew Berezin
Thank you for this great mod.
While the captcha works nicely, it isn't the most attractive captcha I've seen. I understand that function is more important than appearance but is there a way to make the captcha background display look "friendlier"? The scattered lines have a schizoid look.
If you could point me to the files to edit and some helpful resources, I would take a stab at reformatting the background myself.
Thanks again for this great mod, I do appreciate your work, please don't take offense.
At My Contact Us: Page I'm getting:
* Required information
Full Name:
ENTRY_REQUIRED_SYMBOL
Phone Number:
ENTRY_REQUIRED_SYMBOL
Email Address:
ENTRY_REQUIRED_SYMBOL
Subject:
ENTRY_REQUIRED_SYMBOL
Message:
ENTRY_REQUIRED_SYMBOL
IMAGE_CAPTCHA_ALT
TITLE_CAPTCHA TEXT_CAPTCHA
and no image for captcha.
I seem to have the same issue as Nigel74 and another couple of users. I have not seen his issue solved yet. Basically, captcha in the create account page does not work if the users are required to register prior to browsing. Once I allow them to browse freely, the create account CAPTCHA works fine. Any ideas?[/FONT]
When this error appears then you have a file not in the right place. Be sure to follow the instructions closely.
I will post the install instructions here step by step.
This is a live website we just installed this on less then 5 minutes ago http://host-99.org/pressure/index.php?main_page=login
http://host-99.org/pressure/index.ph...age=contact_us
The above links show the image showing perfectly.
1. Make sure the captcha_img.php is within the root directory of ther store example /home/user/public_html/captcha_img.php
2. Fonts folder is installed in the root folder of the store as well example /home/user/public_html/fonts
3. Go through the includes folder rename any folder name your_template to the actual name of the your template, for example if you template name is classic name your_template folders classic once all folders are renamed drop the includes folder into the root folder of the store and let the folders automatically place them selves in the right locations.
4. Follow the same as above for the admin folder but there is no folder to rename simply drop into root as is.
5. Install the install.sql file into ino the Install SQL patches in admin or use the phpadmin of your control panel. Backup original sql before installing.
After install and sql injection go to admin --> configuration --> CAPTCHA to adjust your settings if you do not like default settings.
Thats it there is no core editing of any kind unless you have modified the files within this contrubition and then if they are edited you will have to merge over the changes by using a merging software WinMerge is a good software for this its FREE.
Wish you luck.
Hello,
I just installed this mod (also has the Telephone Not Required on Signup) on my Test site. Now I am getting the dreaded Blank Page. The error log says this:
The code on that line is this:Quote:
PHP Fatal error: Call to a member function on a non-object in /home/swiker2/public_html/zentest/includes/classes/captcha.php on line 337
Can anyone give me some advice on how to fix this?PHP Code:
$za_dir->close();
Thank you,
Have you tried just installing the original captcha first and see what happens
No I hadn't tried that. According to the download section they were the same version. I noticed another user had this same question but then they posted that they commented out that particular section of code. I just tried that and it started working.
Now on your advice/suggestion I download the original Captcha and then uploaded the file that was causing the error. I compared the 2 captcha.php files (original version and the version I installed 1st) and according to WinMerge they were identical. When I uploaded the original version of captcha.php into /includes/languages/classes/ it overwrote the captcha.php that I had commented out the bad code so it was back to the way it was before I commented it out. Yet it is still working so this confuses me.
It didn't work so I commented out the section of code the error log said was causing the problem. I uploaded the original captcha.php file, which is identical, and it is still working (section of code is not commented). I will not even try to figure out what's going on.
Very strange but I am thankful it's working.
I am rambling ... super tired. FatGuyinAZ needs sleep. lol
Anyway, all is good at the moment.
Thank you,
Quote:
Originally Posted by nigelt74 View Post
and again i am back
ok the problem seems to be,
If I set the shop to require people to login before browsing, the captcha doesn't work on the registration page
I seem to have the same issue as Nigel74 and another couple of users. I have not seen his issue solved yet. Basically, captcha in the create account page does not work if the users are required to register prior to browsing. Once I allow them to browse freely, the create account CAPTCHA works fine. Any ideas?
Anyone???
Ok, I can live with the create account CAPTCHA missing. As soon as I allow customers to browse without creating the account, it the create account CAPTCHA works.
My main problem is the lack of anything in the Admin > Configuration > CAPTCHA interface. It's just empty. I went over the old and the augmented CAPTCHA mods with a fine toothed comb, and made sure I put in all the files and ran the SQL statements, yet nothing appears in the interface... Any help in that dept.? (screenshot included)
hELLO
DOES ANYONE KNOW HOW TO ADD CAPTCHA ON CHECKOUT PAGE?
THANK YOU
I finally understood why sometimes CAPTCHA not worked properly.
In the path in some cases for previous amendments had files nomminati with numerical progression, for example / modules/pages/contact_us/header_php1.php
This file was in conflict with header_php.php
By removing or remove the file CAPTCHA works correctly, I hope I have done something pleasing to many.
:laugh::clap:
after scanning at least.....15pages. I thought I'd might have more luck asking everyone this way!
but did anyone ever find a fix for this to work with SEO modules?!
The only thing that comes to mind is some education incorrect or causing problems within htaccess with permits, if not see the images is an issue of permits, or servers or to htaccess but I can not help you, not the programmer, I had problems as you read above for something very strange and difficult to identify apparently not important...
Necsy
I installed the CAPTCHA mod and, aestetically speaking, everything is fine, the images show and the forms ask for validation. But...the validation through CAPTCHA is not active, you can leave the field blank and the message is sent the usual way...any suggestion to have the verification working? (Using v.1.3.8a)
Thanks in advance!
Has there been any fix for the "Enable This Picture" problem with the Ultimate SEO module?
I have looked through all 30+ pages and haven't found any solution.
starks -- Look at your edits to see if you have them all in place. I have it installed on 1.3.8a and working.Quote:
But...the validation through CAPTCHA is not active, you can leave the field blank and the message is sent the usual way...any suggestion to have the verification working? (Using v.1.3.8a)
Jeff_Mash -- Still looking into it... I've been able to recreate the problem, just have to trace it back to the cause.Quote:
Has there been any fix for the "Enable This Picture" problem with the Ultimate SEO module?
Ok, I am making SOME progress with the "Enable This Picture" error that you get when using Ultimate SEO's.
Right now, I am simply working with the captcha_test.php until I get it to work totally correct.
If you edit the captcha_test.php, do the following:
FIND:
REPLACE WITH:Code:$this->img_href = zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'SSL', false, false, true);
That will make the image appear! However, now it doesn't matter what code I type in, I am still getting an INVALID error. I will continue to poke around but if you can assist, just let me know what you find out.Code:$this->img_href = original_zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'SSL', false, false, true);
From what I can see, when you submit the form, the following variable is empty:
$_POST[$_SESSION['captcha_field']]
Now to figure out how to make sure the value gets saved in there!
Nevermind my last post. The captcha_test page won't validate the code correctly, and I was trying to figure out why.
However, the real script on the Contact Us page now works. So in order to get around the Enable This Picture error that you see when using the Ultimate SEO module, simply do that little code change below and it will display the picture for you.
Hope that helps!
Open the includes/classes/captcha.php and change the following:
FIND in function captcha():
REPLACE WITH:Code:$this->img_href = zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'SSL', false, false, true);
Code:$this->img_href = original_zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'SSL', false, false, true);
Jeff.. tried the code change and got a white screen....
I've tested on my heavy modified site, I use USEO. Also tested on a fresh install with no modes or .htaccess .. all 1.3.8a I get the same results on my testing server.
I found if I comment out a line in includes/init_includes/init_customer_auth.php
line;
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
CAPTCHA shows and works, but I don't think that would be a good idea for a live site. I don't have a SSL cert installed on my testing server, so I'm still looking at the code. For now, I don't think USEO or .htaccess is the problem, but more of an SSL thing. Least that's how it's behaving on my system.
Okay after some retesting and and doing some odd ball reconfigurations if you are using the captcha-number-subject-combo-in-one-1.0 here is a way to test your mod install by doing the following to make sure it is not folder over ride related.
Before doing so be sure to back up the original files no matter the issue and you will have a backup of the original and can replace any problems with it.
Some of you are using this mod with Ultimate SEO however the pages that the captcha work on are not to be used in SEO unless this is a necessary must and it is not recommended to use with the following pages if you have it configured this way.
Pages Are:
1. Create Account Page
2. Leave A Review Page
3. Tell A Friend Page
4. Login Page
5. Contact Us Page
6. Link Submit - Only if your using this
These pages are not recommended for rank or search engines not sure why you would even use these pages for rank or any other search engine related tasks.
If you have your htaccess file configured to rewrite them simply rewrite the htaccess file to ignore friendly url on the pages above.
Also for the ones with SSL on your live site follow these steps as well so you can find out if your over ride folders are working.
In the mod folders that you downloaded you will see folders name YOUR_TEMPLATE make sure they are renamed to the exact template you are using.
Like in includes/templates/classic if you are using this for your template rename the folders in the mod folders from YOUR_TEMPLATE to classic. if you think you done so double check to be absolute sure they are named same as your template folder.
If you do not know which template you are using then go to the zencart
admin --> templates, this will tell you which template you are using.
Now since you have checked and made sure which template you have named all folders correctly and it still does not work do the following and test it this way.
Instead of the over ride folders replace the original files instead of using the over ride folder.
Here is how you do that.
1. In your ftp go to all folders that you see in the mod folder
For example the includes/modules/YOUR_TEMPLATE just like it is in the downloaded file you got from the download sections of zencart.
Now instead of using the override replace the file in the main modules folder create_account.php and do all files this way and then test your store.
It has been reported to us that sometimes this mod does not work in the over rides reason is unknown and is still under development. Until this you can test this on a test site and not a LIVE site and see if it works.
here is a 100% live site we just installed this mod on and nothing was done to it, it is the same exact file set you are using.
https://www.echo-electronics.com
This site is using both Ultimate SEO and SSL at the same time and it works fine.
Do the above tests and see how it works for you. If it works after testing with the core files instead of the over ride folder then you know one of the few things listed.
1. Another mod is conflicting if any installed.
2. Your over ride setup is not complete in some way
3. Your htaccess rewrite is not written or coded correctly
4. Just forgot something?
The site I posted shows this mod is in 100% working order and the problem should go away after you tried everything above.
As for shared ssl this should work as well but we have no means of testing shared ssl as we do not use shared for security reasons.
We wish you luck.
Thanks Andrew for the Mod, and everyone for the help with debugging and documentation.
I installed this and it works perfectly with just one small exception. I use css buttons, and the redraw image button is not active. The user can not click on it to generate an action, it simply selects the ALT text.
Does anyone have a suggestion for a fix? Either making the CSS button work, or disabling it for this single use?
I am thinking a fix could be in the classes/captcha.php function:
Code:function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
$redraw = 'onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
return zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
}
Hi,
Thanks a lot for this very good addon and helpfull post from all.
First :
For the friends who face problem with mysql...
simple replace
INSERT INTO configuration_group (.......
WITH
INSERT IGNORE INTO configuration_group (........
this will help to bypass problems like value already exist :D
Second :
I have 2 languages in my site
Greek and English
First Language the Greek (NOT WORKING REDRAW :dontgetit )
Second language English and NOW WORKING AT ALL :no:
Any idea ????
ZEN CART 1.3.8
includes/classes/captcha.php:
Find
Replace byCode:function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
$redraw = 'onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
return zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
}
Code:function redraw_button($image, $alt = '', $parameters = '', $sec_class = '') {
$redraw = ' onclick="document.getElementById(\'captcha-img\').src=\'' . $this->img_href . '&rand=\'+Math.random();return false;"';
$redraw_button = zen_image_button($image, $alt, $redraw . ' ' . $parameters, $sec_class );
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strpos($redraw_button, $redraw) === false) {
$redraw_button = str_replace('<span ', '<span ' . $redraw, $redraw_button);
}
return $redraw_button;
}
Works great. Thanks Andrew!
This code for css works fine and for me .
Thanks Andrew
Any idea why its not work for the second Language ?????
As remind I have 2 Languages Greek and English.
Even I tried to switch English to be default language works only for the Greek Language
Any idea please....
Hi,
I was wondering if anyone can help me with some problems installing this mod.
I am running zen 1.3.8a using captcha v 2.8. I only want to use captcha on the link submit page. So have selectively uploaded the files:
fonts
includes/
modules/pages/links_submit/header_php.php
templates/my_template/templates/tpl_links_submit_default.php
all other files associated with captcha including sql patch.
When I run the captcha_test.php it works. When I click on the submit link page, I get a blank screen.
So I reverted to original files. Then started to install again and test.
When tpl_links_submit_default.php was uploaded, the submit page is still there without the captcha.
When links_submit/header_php.php was uploaded, the submit page dissappears.
On Admin, all other pages have been turned to false for captcha except for the submit link page.
:frusty: Can't figure out what the problem is. Appreciate any help from the forumers.
Thanks
Hi,
I have been trying to get this mod to work correctly...
captcha_using_ttf & gd__v2-8_28-04-2007 Captchav1-0 TelephoneHide
It was downloaded from here today.
Could someone tell me why this is looking this way.... I did finally get the scambled pic to work, but the redraw gif is missing and the title is missing.
I have copied all original files to keep and put the new Captcha files into the default template ( since I didn't thing using my over ride folder was working with this) it still did not work.
http://instantarmies.com/shop/index....age=contact_us
Thanks for any help.
Mamie
I got it working....YEAAAA
Sorry for any trouble....
I found that the captcha.php file was not uploaded.
Certainly was a DUH moment...
Thanks,
Mamie
when I installed it the contact us page is blank, no template or anything
I ran the debug file and it gave me this error:
Fatal error: Call to a member function close() on a non-object in /includes/classes/captcha.php on line 337 which is
and it displayed the captcha image but the text displays instead of redraw it displays:PHP Code:
$za_dir->close();
BUTTON_IMAGE_CAPTCHA_REDRAW_ALT
TITLE_CAPTCHA TEXT_CAPTCHA
any help would be greatly appreciated
thank you very much :D
Steve
/includes/classes/captcha.php
Find near 337 line
Replace byCode:}
$za_dir->close();
Code:$za_dir->close();
}
Does anyone know if this CAPTCHA mod will work on a store with Zen Cart 1.3.8 and Magic SEO URLs installed?
I'm having the same "Enable this picture" problem as the people who were using Ultilate SEO URLs, but obviously none of the fixes work as they are different mods.
I'd really like to get this CAPTCHA mod to work, I'm getting loads of spam through my Contact US for these days. :(
I like the captcha add-on, but I think the positioning of the various elements could be cleaned up and made a little neater. What I want to do is position the bottom of the redraw button so it's in line with the bottom of the captcha image on my contact form. I was thinking of giving the button a class name or something like that so I could call it up in the stylesheet and create margins but I don't know how to integrate that class name into the php code for the contact form.
Here's the code for the captcha mod in the tpl_contact_us_default.php file:
Does anyone know how I could do this or have any other suggestions?Code:// BOF Captcha
if(is_object($captcha)) {
?>
<br class="clearBoth" />
<?php echo $captcha->img(); ?>
<?php echo $captcha->redraw_button(BUTTON_IMAGE_CAPTCHA_REDRAW, BUTTON_IMAGE_CAPTCHA_REDRAW_ALT); ?>
<br class="clearBoth" />
<label for="captcha"><?php echo TITLE_CAPTCHA; ?></label>
<?php echo $captcha->input_field('captcha', 'id="captcha"') . ' <span class="alert">' . TEXT_CAPTCHA . '</span>'; ?>
<br class="clearBoth" />
<?php
}
// BOF Captcha
:wacko:
I had Captcha working just fine on my site. The image displayed on my sign-up and contact us pages perfectly. However, I just noticed that I am now getting the "enable this picture" text where the image once once. This module seemed to just stop working correctly as I changed none of my files. Where can I begin to troubleshoot this problem?
Chris
Use captcha_debug.php and captcha_test.php for testing.
I got the script installed but cant seem to get the captcha to pop up upon new account creation. I ran the test script so I know it does work. I ran the debug script and all I get is a captcha image on the page and nothing else. What am I doing wrong?
David
I have the same problem with v1.38a, test works. no captcha showing in registration and tell a friend.
http://www.dajiangtech.com/combocity/
any suggestion ?
thanks.
Check your settings in Admin->Configurations->CAPTHA
But what would I be looking for? What should the settings be? I need some guidance in detecting errors.
David
Still not able to get it to work.
David
If you did all the edits, then under Configuration tab you should see a Captcha. Once there you can change how it displays and such, also turn it on or off for;
Create Account page, Contact Us Page, Tell a Friend, Links Submit, and Write Review page.
True is on, False is off..
Hi.. Love to mod..Is it posible to add captcha to ask a question mod. What php files would I edit..What code would I add. Any help would be great ...Thanks
Of course. View as is done for the Contact Us Page.
What files would I edit. What code would I add.
Thanks
Sorry, but I don't know module ask a question.
Anyone know how to add captcha to ask a question mod.
Thanks:(
Same problem here: Enable this Picture and redraw button is showing but no Captch.
I can see and edit all the captcha options in my admin. No problem there. It just does not work as several people above mentioned.
Did anybody find out what the problem is?
PHP Version: 5.2.6 (Zend: 2.2.0)
Zen Cart 1.3.8a
Use captcha_debug.php and captcha_test.php for testing.
Ooops, just found out what was wrong!
I just noticed the captcha_img.php in the root folder. I only uploded the includes and font folders and forgot to upload the captcha_img.php!! Maybe this was the problem for some other people too:blush:?
Romy, if you copy the code from the Contact Us set to your Ask A Question set it will work.
Ask A Question files to edit;
includes/modules/pages/as_a_question/header_php.php
includes/templates/YOUR_TEMPLETE/templates/tpl_ask_a_question_default.php
look at the 'contacts us' pages in the same folders and copy the code between the BOF Captcha and EOF Captcha to the same location in ask a question.
This will use the same on/off as contact us. If you wish to have it's own, then on the header_php.php file do the following change;
To thisCode:if(CAPTCHA_CONTACT_US != 'false')
Then run this sql patch Go to Admin->Tools->Install SQL PatchesCode:if(CAPTCHA_ASK_A_QUESTION != 'false')
That's all there is, once installed, just turn it on in admin.Code:SET @configuration_group_id=0;
SELECT (@configuration_group_id:=configuration_group_id) FROM configuration_group WHERE configuration_group_title= 'CAPTCHA' LIMIT 1;
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES
(NULL, 'Ask A Question page', 'CAPTCHA_ASK_A_QUESTION', 'true', 'Activate Validation on Ask A Question page', @configuration_group_id, 23, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),');
Hi, Did what you said. Now I get a blank pg. set pages to default..then worked. Tryed it again, made sure all codes in right place ..no luck. My guess is maybe missing a line of code.just a guess. view page http://elephat.net/elephat-davidson-p-2.html .Thanks
Hi Davewest,
can you help me? I have the problem, the image does not show.
my story:
I made a back-up of the server files at www.livemk.co.uk, I uploaded the same set of files into a new server, done all the config.... but captcha image does not show, you can see it here: www.uk-classads.co.uk/captcha_test.php.
Obviously the test at www.livemk.co.uk works
can you give me any hints?
You can see the error - https://www.uk-classads.co.uk/captch...21001221388468
You can:
Edit includes/classes/captcha.php.
Find
Replace byCode:$this->img_href = zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'SSL', false, false, true);
orCode:$this->img_href = zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'NONSSL', false, false, true);
Change Your hosting settings
Installed this mod in another cart and I get again:
Enable this Picture and redraw button is showing but no Captch.
I can see and edit all the captcha options in my admin. No problem.
captcha_test.php renders the same Enable this Picture problem.
captcha_debug.php runs as well, shows a bunch of garbage and then some info:
captcha::__set_state(array(
'captchaCode' => 'DHPA',
'captchaCode_length' => '4',
'img_width' => '240',
'img_height' => '50',
'img_type' => 'png',
'chars_min_size' => '0.6',
'chars_max_size' => '0.8',
'chars_shadow' => true,
'chars_rotation' => '23',
'noise' => 30,
'backgroundColor' =>
array (
0 =>
array (
0 => 220,
1 => 220,
2 => 220,
),
1 =>
array (
0 => 255,
1 => 255,
2 => 255,
),
),
'linesColor' =>
array (
0 =>
array (
0 => 150,
1 => 150,
2 => 150,
),
1 =>
array (
0 => 185,
1 => 185,
2 => 185,
),
),
'textColor' =>
array (
0 =>
array (
0 => 30,
1 => 30,
2 => 30,
),
1 =>
array (
0 => 199,
1 => 199,
2 => 199,
),
),
'dir_fs_fonts' => '/xxxxxx/artwax/public_html/candlestore/fonts/',
'ttf_list' =>
array (
0 => '/xxxxxxx/artwax/public_html/candlestore/fonts/VERDANA.TTF',
),
'max_try' => 5,
'failure_proc' => '',
'quality' => 60,
'chars' =>
array (
0 => '1',
1 => '2',
2 => '3',
3 => '4',
4 => '5',
5 => '6',
6 => '7',
7 => '8',
8 => '9',
9 => 'A',
10 => 'B',
11 => 'C',
12 => 'D',
13 => 'E',
14 => 'F',
15 => 'G',
16 => 'H',
17 => 'I',
18 => 'J',
19 => 'K',
20 => 'L',
21 => 'M',
22 => 'N',
23 => 'O',
24 => 'P',
25 => 'Q',
26 => 'R',
27 => 'S',
28 => 'T',
29 => 'U',
30 => 'V',
31 => 'W',
32 => 'X',
33 => 'Y',
34 => 'Z',
),
'_background' => NULL,
'img' => NULL,
'_gd_version' =>
array (
'GD Version' => 'bundled (2.0.34 compatible)',
'FreeType Support' => true,
'FreeType Linkage' => 'with freetype',
'T1Lib Support' => false,
'GIF Read Support' => true,
'GIF Create Support' => true,
'JPG Support' => true,
'PNG Support' => true,
'WBMP Support' => true,
'XPM Support' => true,
'XBM Support' => true,
'JIS-mapped Japanese Font Support' => false,
'version' => '2',
),
'debug' => true,
'img_href' => 'https://www.artwax.com/candlestore/captcha_img.php?zenid=',
'imageColorFunc' => 'imagecolorallocate',
))
Any ideas what is wrong?
Giving this a http://forums.randi.org/images/smilies/Bump1.gif as I am not getting the CAPTCHA to show in any page. In FF I get the same thing as mydanilo (above) and in IE I get a CAPTCHA pic. captcha_test.php works fine in both. I am unable to get it to view in the page.
Any ideas.
zen-cart- 1.3.7.1
php- 5.2.6
captcha- 2.8
www dot squirrelysliquor dot com
:bigups:
zevink, my problem is in IE as well as Firefox.
Does nobody have a clue if the debug I posted has any meaning?
I don't know where to look. I think there must be another module that interferes with captcha. I am sure I uploaded the same files to this site as I did with my others. Same Zen 1.3.8a.
Different template but pretty much the same setup. So I wonder if anybody has discovered any conflicts with other mods or files in overrides etc. Really would like this to work. Too much spam coming in over the contact us.
Any hints are appreciated.
mydanilo, I know your pain. I've been going over my code for days now. I have read elsewhere that this mod is dead, no one is supporting it now.
With so many themes, mods, plug ins, etc. it get hard to figure out what the problem might be. Could this be a style sheet problem? Could it be a compatibility issue?
Problems like this make me what to go to the local community college and enroll.
I have looked at your sites in FF and IE. I even ran the debug. Have you tried to change the image type from png to jpeg or gif? Perhaps this could help with it not showing in the test. As for it not inserting into the contact us etc pages I have know idea and can't view your coding. That is why we are not getting any help. I think we need to hire someone to fix it for us. I am getting an ever increasing amount of SPAM as I feel the 'word' is out.
I would love to get this working.
I hear you. The captcha does insert in to the contact us once I enable it again but it only shows the
Enable this picture Redraw Capture Image
Verification code: * (case insensitive)
Just no captcha picture is showing up.
What gets me is that I installed the same thing on my other site and they are almost identical.:(
have captcha installed on my site elephat.net
http://elephat.net/logo-design-p-30.html..
click the contact up button..Now ...my problem is ..when you fill out the form you do not need to enter the captcha text. I want customers to have to fill in the captcha....How and what do I edit to make this work....Thanks
Check your \includes\modules\pages\contact_us\header_php.php
The code for checking the box is ether missing or missed placed.
mydanilo, I ran the debug on my site and it reads the same as yours. My Captcha works fine in IE and FX, I even used it on other pages that didn't come with the mod. I don't use it with the account page... but it does work when I turn it on. It started working on that page after I made edits to the phpBB code so I could allow users to use a nick name on the review pages and to create one during account creation. I did some other edits during that time so I'm not sure that was it, and havn't been able to back trace it yet.Code:// BOF Captcha
if (is_object($captcha) && !$captcha->validateCaptchaCode()) {
$error = true;
$messageStack->add('contact', ERROR_CAPTCHA);
}
// if ($zc_validate_email and !empty($enquiry) and !empty($name)) {
if ($zc_validate_email and !empty($enquiry) and !empty($name) and !$error) {
// EOF Captcha
zevink, Andrew is still answering posts and updating it. I have read elsewhere that this mod is dead, no one is supporting it now.
As long as someone is willing to answer a question, or do some coding, it's alive.
Help with Captcha combo....can fill out contact us form with out using captcha code..any ideas elephat.net
can not get captcha to work - can fill out the contact form without entering the validation code...How would I get this to work elephat.net
Have you checked to make sure that you have uploaded the captcha_img.php in the directory that your store is in?
For example, if your store is in the /cart directory - upload that file to that directory and it should work...
If that does not work, upload the captcha_debug.php file into the store directory and go to that url to see what is going on...
http://yourdomain/storedirectory/captcha_debug.php
Hope that helps!
Judy, already did that and posted a little back... you can have a look and see if my debug means anything to you. It is all there... don't know what other stuff could interfere with this.
I just installed this on a 1.3.8a zencart today - had the same problem until I double checked and realized the file I previously mentioned was not on there... so I uploaded it (while hitting myself in the head for not seeing it in the first place!! :oops:) and it worked fine as soon as that file was uploaded to the correct place. I was hoping that might be the case with you - since the end result was the same - no redraw picture.
I looked at your previous post and the info is a little different than what I have when I do the debug on the site.... it shows "var $" in places where yours just shows an '
I am pasting from my site here so you can compare the two - putting xxxxxxx to take out identifying info.
I am not a programmer... or code writer... or anything nearly that SMART :wink: ) but I am wondering if your version of zencart is not 1.38a or if the mod you are installing is not the one located here: http://www.zen-cart.com/index.php?ma...roducts_id=551
class captcha {
var $captchaCode = 'D9AVY';
var $captchaCode_length = '5';
var $img_width = '240';
var $img_height = '50';
var $img_type = 'png';
var $chars_min_size = '0.6';
var $chars_max_size = '0.8';
var $chars_shadow = false;
var $chars_rotation = '23';
var $noise = 30;
var $backgroundColor =
array (
0 =>
array (
0 => 220,
1 => 220,
2 => 220,
),
1 =>
array (
0 => 255,
1 => 255,
2 => 255,
),
);
var $linesColor =
array (
0 =>
array (
0 => 150,
1 => 150,
2 => 150,
),
1 =>
array (
0 => 185,
1 => 185,
2 => 185,
),
);
var $textColor =
array (
0 =>
array (
0 => 30,
1 => 30,
2 => 30,
),
1 =>
array (
0 => 199,
1 => 199,
2 => 199,
),
);
var $dir_fs_fonts = '/home/xxxxxxxx/public_html/cart/fonts/';
var $ttf_list =
array (
0 => '/home/xxxxxxxxx/public_html/cart/fonts/VERDANA.TTF',
);
var $max_try = 5;
var $failure_proc = '';
var $quality = 60;
var $chars =
array (
0 => '1',
1 => '2',
2 => '3',
3 => '4',
4 => '5',
5 => '6',
6 => '7',
7 => '8',
8 => '9',
9 => 'A',
10 => 'B',
11 => 'C',
12 => 'D',
13 => 'E',
14 => 'F',
15 => 'G',
16 => 'H',
17 => 'I',
18 => 'J',
19 => 'K',
20 => 'L',
21 => 'M',
22 => 'N',
23 => 'O',
24 => 'P',
25 => 'Q',
26 => 'R',
27 => 'S',
28 => 'T',
29 => 'U',
30 => 'V',
31 => 'W',
32 => 'X',
33 => 'Y',
34 => 'Z',
);
var $_background = NULL;
var $img = NULL;
var $_gd_version =
array (
'GD Version' => 'bundled (2.0.28 compatible)',
'FreeType Support' => true,
'FreeType Linkage' => 'with freetype',
'T1Lib Support' => false,
'GIF Read Support' => true,
'GIF Create Support' => true,
'JPG Support' => true,
'PNG Support' => true,
'WBMP Support' => true,
'XBM Support' => true,
'JIS-mapped Japanese Font Support' => false,
'version' => '2',
);
var $debug = true;
var $img_href = 'https://www.xxxxxxxxxx.com/cart/captcha_img.php?zenid=268fb4ba0561b86397201009602df1de';
var $imageColorFunc = 'imagecolorallocate';
}
Read this post - http://www.zen-cart.com/forum/showpo...&postcount=367
Hi All,
I was searching the forums to see why my image isn't showing up either. I have two sites both exactly the same but with wholesale pricing on one and retail on another. The captcha works fine on the retail but not the wholesale.
One thing I figured out is if you have the site set to not allow browsing with out log-in and authorization, the image does not show up on the contact us or create account. But once logged into an account that is authorized to browse and see prices, it works.
This is all well and good except that you can't create an account unless the captcha is turned off. :frusty:
Anyway...I just thought I would share in the event that others may have a similar set up and haven't yet figured out why this is happening. Now...anyone have a clue what to do??
Unfortunately I don't...
Thanks,
Kelly
Hi guys. I am having the same "Enable this Image" error. When I first installed the captcha, it worked fine, but after some weeks of mods, it stopped functioning.
When I do the direct test, it generates the image code in ASCII. and shows the parameters at the end of the page (not sure if this is normal). If I link directly to captcha_img.php, it asks for "Open" or "Download" the image. If I hit "Open", the program that opens images on my PC "MS Photo Editor", it shows "Can't Determine Type". If I choose to save it, when I try to open the saved file, the same error comes up.
I just opened the saved image in a Hex editor, to have an idea what type of file it's being saved and found out that some how, a space character (Hex "0020h" or Decimal "32") in being inserted as the first byte in the image file. If I delete the first byte of the image file in the hex editor and save it, it opens fine in the image editor, showing all the previously set parameter (tilt angle, num. or chars, size, etc.). That is, the jpg image file seen in a Hex editor would look like "FF, D8, FF, E0, etc.", but it is being saved as "20, FF, D8, FF, E0, etc.".
Of course, that is for the "jpg" option. Not sure if the same happens with the other image options, but at least I have tried all and no one shows up.
May the image generating routine is somehow inserting that extra blank character or space byte at the beginning of the file and that is why it is no longer showing up in my case. The thing is that I really have no way of troubleshooting it as I am not familiar with the method used by this Captcha and I'm a bit short on PHP knowledge.
I hope someone can come up with a fix as this is extremely important to stop automated activity in our pages.
Best regards,
Richard
Hello. Thanks for your reply Andrew.
The following comes up when I use the debug utility. There is an ascii code instead of the image file (without the space I mentioned in the header) and then the parameters list at the end.
Is this a normal debug result? Or should I see the image instead of the equivalent ascii?
The results are shown bellow.
Thanks again.
JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality C $.' ",#(7),01444'9=82<.342C 2!!222222222222222222222222222222222222222222222222222" ĵ}!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ĵw!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?7 yMrأS;Hնean=}jiF>̄HlҼ^DCb.8#)ڮ1iLk }Ⱥ ?y1,v2Àr~+=_o &ʝ:Q1^PeRppぴmt遃BV]A\JϨuP>`Oǡ͟_E# e%>9@?1rdA|"o@+:3kҪm$]';x8 y!."㌕`sx9&)̘Iڼ$gj DgVK2{{KxkؙmyU%PgA'j;_Bڴ/ 7n-##qFRP@I#I /<7 qB\Hrzcrk̮uOkY:H>U0+I$]U9m<Fk0rcGr@#gx(##'8/3zXď pۼ22N0Is?J##*A4Q o0go@psJ9l4*\;?À'_|Rq#0*8uƗ\@V`r;1֦m͗n Ib3 aL"Je)dlTV s,A+:xBv+~4Y[4.{/ hY6Gl溏+}y{)f,劅(czuYV\ ##~|LҬa;9= +b?/ʲ+s0* 9ny.%xBS?Ӟ*i0ZW2%e Â@]CBwUXp=8\ |D?ٞ8 *H謌Ƕp{ s+imM;aՄ8h:m{u R96n:mBoւ^>'=[C.F 5m#DAJ)昙1c=Si겴!a3CdMMGY$q0OWEyU:m5 %IM&v:ևYEug畄^b垻I݅>ܓ8 /X3\ׄmg}D!A=:^n+B O̝@(<)+=Ʃ=6%8D.<@y 8=9MX[xԬ`c8U$xw稨;s1PS^Q0p@GuG,}ʈ H p9\SA;3%2#DT` Yoqet,M [>@2$ fBe6dc1FN? 4;i>0iYp&jy##L%ZVdrضO~@##MU-t&Ϛe#j߯]+6TvI ^%ԓMscgsqat#hf/?8Lg#\{y{?[y3CB >Xj?nc!Fַ_̫+8'-Gcju_ޤr9ez RlLɺ0X`|;榵:0u9- " .$i2,)qojtvVOYIʐl|t=;r 琼zmbe}>R$c####ty*Jpǽ3MJB".;u?!iV6[˄].su4##¸eڥKH#wޝbb]$eXհpBvlv+|y`;Fz}{}y`jv9"qɌ g#>:CAʁ)ےx# > JUU0[?zpbzA2bWiEm> b^_ʁqPȬxOԸXK:( Ȏ) sPR3sJ%zVt@cCe-NGLɫ-0Uk( H'{x|1##xY%IY8*ִ_%q@ɖ9[-TNA7szڤ%!s+/0njcJ 6㒄$qv~kt-t&LH!EEޞ[u$$i#G qF,vm( 9 zgI>B%9yTԫιR@ =@gb<8Sؖ" 9>a7^qҟ%Gy%A)b 8`##UY( B@ O$qu \$6A n~zOF`yyII w/>ucck<"C'`N^ݩG.Z0;ߐx*{OANZ }GN *((duLfƝ{ H*&g~ur;W9f]xiswAٚ,A#C'?\)X9xq#`X`u .rUGujI%wÙm*<>`Ϩn '5VG@; Τ,GP#$tĒ➣yv BJˀOaP Y)1§>=2yFps }1=+R#axz7z(̩t)YnϘwxb8>%{c#7GQE !JeHde'r2{###eh9 3hDб*x_uB}fȎiwPrD 皫Ieh@C Z(Ej]fˌNz]1t,X.AQE7+rX;viKȽ}j۹Y9QE4j(H]bvV#v#߁RM##Io,'h9 TۀoHHz$ 9+`qE]I2`y>\pdNkH==(;kI=py*LЌX^QVJ2Eq* o].ʼnX?+(=
class captcha {
var $captchaCode = '86N';
var $captchaCode_length = '3';
var $img_width = '240';
var $img_height = '50';
var $img_type = 'jpeg';
var $chars_min_size = '0.8';
var $chars_max_size = '0.8';
var $chars_shadow = true;
var $chars_rotation = '15';
var $noise = 30;
var $backgroundColor =
array (
0 =>
array (
0 => 220,
1 => 220,
2 => 220,
),
1 =>
array (
0 => 255,
1 => 255,
2 => 255,
),
);
var $linesColor =
array (
0 =>
array (
0 => 150,
1 => 150,
2 => 150,
),
1 =>
array (
0 => 185,
1 => 185,
2 => 185,
),
);
var $textColor =
array (
0 =>
array (
0 => 30,
1 => 30,
2 => 30,
),
1 =>
array (
0 => 199,
1 => 199,
2 => 199,
),
);
var $dir_fs_fonts = '/home/content/z/i/l/zilog357/html/otherdeal/fonts/';
var $ttf_list =
array (
0 => '/home/content/z/i/l/zilog357/html/otherdeal/fonts/VERDANA.TTF',
);
var $max_try = 5;
var $failure_proc = '';
var $quality = 60;
var $chars =
array (
0 => '1',
1 => '2',
2 => '3',
3 => '4',
4 => '5',
5 => '6',
6 => '7',
7 => '8',
8 => '9',
9 => 'A',
10 => 'B',
11 => 'C',
12 => 'D',
13 => 'E',
14 => 'F',
15 => 'G',
16 => 'H',
17 => 'I',
18 => 'J',
19 => 'K',
20 => 'L',
21 => 'M',
22 => 'N',
23 => 'O',
24 => 'P',
25 => 'Q',
26 => 'R',
27 => 'S',
28 => 'T',
29 => 'U',
30 => 'V',
31 => 'W',
32 => 'X',
33 => 'Y',
34 => 'Z',
);
var $_background = NULL;
var $img = NULL;
var $_gd_version =
array (
'GD Version' => 'bundled (2.0.28 compatible)',
'FreeType Support' => true,
'FreeType Linkage' => 'with freetype',
'T1Lib Support' => false,
'GIF Read Support' => true,
'GIF Create Support' => true,
'JPG Support' => true,
'PNG Support' => true,
'WBMP Support' => true,
'XBM Support' => true,
'JIS-mapped Japanese Font Support' => false,
'version' => '2',
);
var $debug = true;
var $img_href = 'http://www.qcwo.com/otherdeal/captcha_img.php?zenid=6a77e6b6f091a1cd15e5969c51f9770c';
var $imageColorFunc = 'imagecolorallocate';
}
I've searched through this and other forums and have found this problem described. However, I have not found a solution. Any help from any body will be appreciated.
Because of the number of Spam requests for a link Exchange, I have installed this CAPTCHA mod in my ZC 1.3.8 store. When I go the the "Submit Link" page, just a blank page appears.
You can see the problem at http://www.couplespice.com
Just uploaded all the necessary files onto my server an ran the sql query it went fine, see the "CAPTCHA" options in Admin, when I go test it out, I don't see anything, just a regular form without no captcha, any ideas?
hello all,
just finished backing up my site and i am going to attempt to install .
just one thing i am not sure about though,
were do i put the font , i cant seem to find a font folder in my zencart folders . do i have to make one ? if so were do i put it ?
am i missing something here ?
i haven't installed nothing or uploaded anything yet, i am just backing up all my files before i install.
i really do need to get this installed quickly as i am recieving loads of spam mail.
steve
update ,
i have installed and it is working ,but is says case sensitive ...but you can use any format caps or normal and it still works, they have to be the right letters though :unsure: :unsure:
steve
disregard my last posts .
what a total wolly , just read case insensitive :blush:
:clap: happy days :clap:
steve
Nice, glad you got it working, I need to get mine working, its all installed and everything, no errors whatsoever, and its showing in my admin control panel
still have not been able to get it to work ether. out of ideas...frustrated. :frusty:
One site is working as reported (mydanilo), the other (artwax) is not. I have it disabled the mod as I need customers to be able to contact me (and spammers too unfortunately).
I'm new to installing ZC contributions, particularly ones which require using Install SQL Patches in the Admin - never done that before. I am also just getting acquainted with SQL.
So, please pardon my "newbieness" here, but could I get a clarification of what the "copy/paste" process is exactly? The installation instructions state:
"Go to Admin->Tools->Install SQL Patches and install install.sql (don't use the upload - use copy/paste to install sql)."
Do I copy the contents of the install.sql file, open Admin->Tools->Install SQL Patches and paste the contents into the top field, where it says: "Enter the query to be executed: Be sure to end with ;" and click the "Send" button to complete the process?
I have backed up the database at this point and want to avoid making a big mistake. I have searched the forum for clarification of this process, but have been unable to find anything conclusive.
Thank you in advance for any guidance,
chrx
chrx,
In zen-cart 1.3.8a you can install install.sql using upload.
The process of copy/paste is described correctly