Re: Captcha using TTF & GD
Quote:
Originally Posted by
ts232
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.
includes/classes/captcha.php:
Find
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 );
}
Replace by
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;
}
Re: Captcha using TTF & GD
Works great. Thanks Andrew!
Re: Captcha using TTF & GD
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....
Re: Captcha using TTF & GD
Quote:
Originally Posted by
e-aroma
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....
I have already answered you. You have an error in the file includes/languages/english.php at line 1399 - you have an
extra blank or CR after "?>"
Delete ?> from the bottom of includes/languages/english.php
Blank screen when Captcha is installed
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
Re: Blank screen when Captcha is installed
Hi,
Quote:
Originally Posted by
Decostyle
using captcha v 2.8. I only want to use captcha on the link submit page.
Captcha v 2.8 support old version link submit page.
Re: Captcha using TTF & GD
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
Re: Captcha using TTF & GD
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
Re: Captcha using TTF & GD
Quote:
Originally Posted by
knuckle-101
It would be correct for the new module to make a new topic and not discuss it here.
Re: Captcha using TTF & GD
Quote:
Originally Posted by
Mamie
captcha_using_ttf & gd__v2-8_28-04-2007 Captchav1-0 TelephoneHide
What is it?