Use captcha_debug.php and captcha_test.php for testing.
Printable View
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.