Well, I'm back again.
My Captcha with TTF and GD stopped working.
What stops it from working is the "main_page_definitions.php" file:
<?php
define("FILENAME_DEFINE_MAIN_PAGE_LOWER', 'define_main_page_lower');
?>
bunyip's instructions (earlier in this thread) were to place the above in includes/extra_datafiles/main_page_definitions.php
but I also found instructions to place in:
includes/languages/English/extra_definitions/main_page_definitions.php
I had taken the "extra_definitions" location from an "includes" file provided by pdxdoug at this thread location:
http://http://www.zen-cart.com/forum/showthread.php?t=102226&highlight=categories+center&page=3
In troubleshooting why my Captcha stopped working, it came down to this file. I have a backup with Captcha working, and it works until I add this code. It completely stops showing the Captcha picture whether I place this code in the extra_datafiles or the extra_definitions location.
I found that it made both my WAMP zencart and my online site able to show both the upper and the lower define_main_page files. My online site is here, where both upper and lower text is working, but the captcha is not working:
http://www.riverfrontsouth.com
Oddly, if I added the file in the extra_datafile location it completely broke my online site, although my WAMP would still work and just not show the define_main_page_lower.
At the moment, my captcha is working on my backup site as long as I do not place this file in either location.
As a secondary problem, I cannot get the define_main_page_lower to show on this backup site, even if I add the define_main_page_lower in the extra_definitions location that still works on my online site and more recent WAMP site. Two of the files (tpl_index_default.php annd define_main_page_lower) needed to be placed both in the default and my custom template to work, but I do not see an override location where this main_page_definitions.php file could be tried.
In trying to see a potential conflict, I see there is a captcha.php in the extra_definitions location which looks like this:
[QUOTE]<?php
/**
- captcha.php CAPTCHA class
- @package captcha
- @copyright Copyright 2004-2007 AndrewBerezin
- @copyright Copyright 2003-2006 Zen Cart Development Team
- @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
- @version $Id: zen_captcha_img.php 1 26.02.2007 8:01 AndrewBerezin $
*/
define('INTRO_CAPTCHA', 'In our effort to combat email spamming, we now require all contact emails to include verification. Please type the letters and numbers shown below into the verification code field.');
define('TEXT_CAPTCHA_REDRAW', '(If this image is unclear, click the redraw button.)');
define('TITLE_CAPTCHA', 'Enter verification code shown above:');
define('TEXT_CAPTCHA', '* (case insensitive)');
define('ERROR_CAPTCHA', 'You did not enter the validation code correctly. Please, try again.');
define('BUTTON_IMAGE_CAPTCHA_REDRAW', 'button_redraw.gif');
define('BUTTON_IMAGE_CAPTCHA_REDRAW_ALT', 'Redraw Capture Image');
define('BUTTON_IMAGE_CAPTCHA_REDRAW_TEXT', 'If the image text is not readable use this button to redisplay it');
define('IMAGE_CAPTCHA_ALT', 'Enable this picture');
define('ERROR_CAPTCHA_GD', 'CAPTCHA Error: There is no GD-Library enabled. The CAPTCHA cannot be used!');
define('ERROR_CAPTCHA_GIF', 'CAPTCHA Error: GD-Library does not support GIF. The CAPTCHA cannot be used!');
define('ERROR_CAPTCHA_PNG', 'CAPTCHA Error: GD-Library does not support PNG. The CAPTCHA cannot be used!');
define('ERROR_CAPTCHA_JPG', 'CAPTCHA Error: GD-Library does not support JPG. The CAPTCHA cannot be used!');
define('ERROR_CAPTCHA_SESSION', 'CAPTCHA Error: Session not started. The CAPTCHA cannot be used!');
?>/QUOTE]
(You will see some added text at the top of this file which is from "chrx" from the thread "How to add the Captcha to Ask A Question" I believe)
I do not know whether this issue should be posted in a Captcha forum or here, so for now, I will post here, and if no one can help, I will post a much reduced question in a Captcha thread. Hopefully that would not be considered a double post.
Thanks for any suggestions.