Page 37 of 60 FirstFirst ... 27353637383947 ... LastLast
Results 361 to 370 of 593
  1. #361
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    Use captcha_debug.php and captcha_test.php for testing.

  2. #362
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    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?
    Live and learn... the Zen way.

  3. #363
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by romy View Post
    Anyone know how to add captcha to ask a question mod.
    Thanks
    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;
    Code:
    if(CAPTCHA_CONTACT_US != 'false')
    To this
    Code:
    if(CAPTCHA_ASK_A_QUESTION != 'false')
    Then run this sql patch Go to Admin->Tools->Install SQL Patches
    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\'),');
    That's all there is, once installed, just turn it on in admin.
    Dave
    Always forward thinking... Lost my mind!

  4. #364
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Captcha using TTF & GD

    Quote Originally Posted by Jeff_Mash View Post
    Thanks Dave. I will be anxiously awaiting your response. If you need me to verify anything, just let me know.
    Jeff, Just noticed my image is now working for the create account page. The only thing I could trace back, I modified the phpBB code sections when I was working on the Nick Name mod. I'll have to run a trace this week end to see where it started to work..
    Dave
    Always forward thinking... Lost my mind!

  5. #365
    Join Date
    May 2007
    Location
    york, pa
    Posts
    98
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    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

  6. #366
    Join Date
    Jun 2007
    Location
    Milton Keynes UK
    Posts
    153
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    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?

  7. #367
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Captcha using TTF & GD

    You can see the error - https://www.uk-classads.co.uk/captch...21001221388468

    You can:

    Edit includes/classes/captcha.php.
    Find
    Code:
    $this->img_href = zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'SSL', false, false, true);
    Replace by
    Code:
    $this->img_href = zen_href_link('captcha_img.php', zen_session_name() . '=' . zen_session_id(), 'NONSSL', false, false, true);
    or

    Change Your hosting settings

  8. #368
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    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?
    Live and learn... the Zen way.

  9. #369
    Join Date
    Dec 2007
    Location
    Kingsville, TX
    Posts
    18
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    Giving this a 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

    Last edited by zevink; 22 Sep 2008 at 05:49 AM. Reason: added captcha version number

  10. #370
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Captcha using TTF & GD

    zevink, my problem is in IE as well as Firefox.
    Live and learn... the Zen way.

 

 
Page 37 of 60 FirstFirst ... 27353637383947 ... LastLast

Similar Threads

  1. Replies: 68
    Last Post: 29 Jul 2013, 06:33 PM
  2. CAPTCHA using TTF & GD - not working
    By derrr99 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Dec 2010, 04:05 PM
  3. Replies: 13
    Last Post: 2 Jun 2008, 03:29 PM
  4. Captcha using TTF & GD & Tel Not Required (how do I Avoid Overwrites?)
    By CelticKatt in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 8 Apr 2008, 04:18 AM
  5. Can CAPTCHA Using TTF & GD be installed in check out?
    By Lainee in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 May 2007, 04:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR