Forums / All Other Contributions/Addons / Captcha using TTF & GD

Captcha using TTF & GD

Views: 147,342

Results 381 to 400 of 593
3 Oct 2008, 11:55 PM
#382
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: Captcha using TTF & GD

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

Kelly Ann
Raven Media, LLC

5 Oct 2008, 11:49 PM
#383
zilog357 avatar

zilog357

New Zenner

Join Date:
Jun 2008
Posts:
20
Plugin Contributions:
0

Re: Captcha using TTF & GD

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

6 Oct 2008, 12:40 PM
#384
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

zilog357:

May the image generating routine is somehow inserting that extra blank character or space byte at the beginning of the file
No, that's your problem. Look for a space at the beginning or end of other files. Which you recently edited or fixed.
Tried to use captcha_debug.php?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

7 Oct 2008, 9:32 PM
#385
zilog357 avatar

zilog357

New Zenner

Join Date:
Jun 2008
Posts:
20
Plugin Contributions:
0

Re: Captcha using TTF & GD

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<.342ÿÛC 2!!22222222222222222222222222222222222222222222222222ÿÀ2ð"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ?õøìà™7 yMrØ£ùÍSÕ;šñï¤HÕ¶Êeaœ±åçn÷=}jÃiîFù>Ì„‘†Hlçœÿ§áÒ¼ÿâÚ^ÚøDC¾b¼Š.ÕÇ8Îæ#)çÚ®1æi½Lk⮣}«Èº ?ºÑy÷1,ŒÃv2Àr~+=Õâ_à¾oÊöÁ &ʝŒ:ŒôÈQý1^¾PeŽÝÑÁRpp€ã´mä¨t遃Œ«ÁBV]A€\J˜„ŽËϨuP>Oôǡ͟¶_E# £e%Õ>Ü9ãå@õë–?•1ÿr¿d•®A|"°”o@™¯+Žý:Ô3¹‰ÄköÒªÙmÈ$]¸'¨;xÛÿíÓ8 žyßË!ì."™†çòåÈÎ㌕sÁëÎxõ¢9&Á)‘ˆÌ˜ÜãIÚ¼À$g¨Îj¤ ¥»Dg¾µVùK2ü€{îŽ{šKë»x¢k‹ËØ™mþyîUã%Pg¶ÐAí…'ñêj;BÜÚ´/ 7n-##q’FRP@ÚI#Iç· ó“/Ž<7 qªBÃ\H»àŒ‚ÙÚrzcÀÏrkÌ®îuOkðY:H>U³0Ä+ÆIŽ$õçé]U§Âý9m<½Fk–•Ã0rç†ô™cìGÇr@#‘õæ¢gžx¤’(„ü##'8çœ/¦3×®zÕX¬Ä† pÛ¼Õ2Â2N0IàžsÎ?Jƒí³Ê##A4Q o´0go°ù@psŸJ9‡Êl4©\³ü’í‰ä;ˆ?À'®|Rƒq·#0ƒ¼®ÊÙÎ8õëÔu¬Æ—\ñ”Á@»VéÚr;ò1Ðôç½Ö¦mÍ—nØIõb3ó ²ãðÿõ®aòšL"€¬Jàe™•·)ÇûdüÝÀlþTžV£¶Åå ¯s,AÉ+å:òxÎBävàãž+Ì~4Y[™4«.{÷/ hÙYÝÞ6ŽGl溏‡+}yà{)f,Ö劅(ÌûcŒûzuãŒñYV\ñö¨¨ß ##¶~|LÒ¬ùa¿§Ê;ŒçÏ9=Ï »+b?/ʲÇ+ŽçŒäœsÆ0* 9ny.%xB–S²?˜»®Óž¹Æ*»i0Z³„ŠW2±%÷e ¸ïú’@®]CBìw›†·UX®p=Ø8ää\ þÈ|D?Ùž–8 *H謌Ƕp{ü§ ÚsïÒ+im÷ÒM;aÕ„…Îþ™ç8hëÎ:ó׊ø‘§mð©{u R¡¤°9©6ÜnçœçŽ:mBî¬oÜÖ‚^Ò>§'á=[CÐí.®®¡ÝF‹Ê ¤Ž§ö5°Ÿm#DA¥J°)Îæ˜™1Üäc¸éÎ=SÀú“ªiòê²´é!a–3³CdŒõÚMáMòßìãGY¸ó“$qŒ0OœŒWEyÐU:m5%IMó&Ëv:Ö‡©YEugç•„ù^bÈÉåž»IÝ…>ܓޕ§Û8 æ/˜X©3ƒž„\öãŸðíÝׄ¼mög”}£ìóD‰!A=:^Þæ½n+»™BýžÙÖ O̝@à(õÆ<õæ¹ñ•)+=Æ©ò=6%¸öâá8D.<É@Óyƒç 8Ç=9ç¦MÄþXµ¸‰Õ[çxÔ¬c8U$€xÏw稨Öö;—sç1PÙSå^Qò0p@ÏGuˆG©Þ,Ç}ʈÀ ²„ òH p9Çã\úú¬SA;3ùÂ%2#DÛTá†Ü ž½ø¢ÝYËoqet,M™Ô [>ç’@Áî2é$° f³B©’®e6dc™1FN? æ4;Ãi¬>0ƒiYpÄçëýÐç®ô¬&¹j¦úèyõ##L%ÒZ¼ÓéíÅÄVód‚r¡×ûضO~ý@##MU-®t¹&·´˜˜Ïše#j•ÇÝÀú߯]+Ý6ÛT±vI ^¬Íî%³ýãÔ“þMscgsqat#hƒ”f“/°í?8ÇLàgŒþ#³\¯á{yÍ{é?‚[y3CB¿’ >X—j?™¼nùÂŒc©!FóÏÖ·_³¨ãòíÌ«…+À8'-ÆGåÔcËèju„†_Þ¤‹‚r9Îäez ŒâºØ ³¼Rë»lLɺ0XùÏúÃ|;榵:0u9¨¯- "² ó.$ži2,À)ëÀóqÇojtvVöÌOÙáYIʐ¸lƒÎÞýÏ|þt=Š;ùr ÈÍ琼zõéüÚmbe}†à>R$c³¡É#ô#ñ##ìtÜyÊJ–p¹Áõǽ3‘éìMJBÉ"¤‘–.;uã?!Á¨¤‚iV6[Ë„]ß.âsÏðûu÷Å4##¸ešÚ¥KH…˜äŒô#œûwޝÅbb]$eXÕ°pB®vôàþlv+|®¬y¦Ö;Fz}{}yªjv9"ÃqÏÉŒ g#>¿:¾C´AÃʁ)Û’x# Àê>¿… J³UU•0–[Œœ?¯zp“bçzä¯A޽2bóµWiÉEßm>åù b¸^ãæé_ʁqåÊPÛȬÙÈx÷þ«žøêOçÔ¸XKË:(¡ ÈŽø)ã sŸP¤úé·R3é×sèÛJ¯%°zô½¹úVt˜Þ@ŒcCe-½NâGLž¼ôçÉ«-0Uk‹‚®Ò(ÆÜ ûÁH'Ž¿{ô©¸ìx‡‹|1##xÄçYÒþÅ%ÃI°¨ÄY8ã·õãÖ´_ã%ä–q¢@÷ÉÉ–9[Ë-ŒT‚NAÆ7sœƒÍzÛÚ¤%àË!s°+/Ð0ÇŒcJ ý¦6ã’„$qŽvªŒþ¼Ÿ~kÜt¨-t&ÓL²·’H!EEÞž[u$±Ý×$œã¥i#G ÜqF«,vm( 9 zg¯·½I>äˆÈÄB%²ø9äñƒÆyúûTԫιR²@Ê =Ô@Š’gb<à8à“ÎÇSÀïÁáØ–"îÄ ñ–9>a»ï7^üqÒŸ%ÛG¶y%A)b°¡À 8äçõúô##ÖU¸Y( B@‰ß ±¯ …O$qŒu \ã$6A• ª¸àn~½ñz›èOõ´’Fš´yäžyãÏð©–I£I … Îw/>œàuïôúÕcck<"©Câ'™èNüÄç¯^Ý©‡Gµ.Z0ð;œ¨Ýߐx*{ÿOANìZÁó¯– …ÇçŒ}G±éN ²*((ŒdœuÞßLf³Æ{ H¶÷Í*‚&ÜgûÊØôÏ~u™r¡‰º;W9f]¡xÃÿ©ãƒÎiswAËÙšÒÇË,Aäï#¿Cß'?\ý)X9xòq´çå#ñ‘ôÉúÖX’óu‘ .rU¹èGðŒuõèjI¦¹%wÙmõ*<ÿ×Í>±¡Ï¨Ýän ƒÏÇÓ'5VúG@; ïΤ,GëÍP#$ÏtÄ’Á➣÷yþ§ó«v BøžJË€Oa³¥P ÙY)ÀµÂ†ç¨Ê‰üêÍç1§‘½¸>Äãò¢Š¢=ýë2«yFp¾s }1Æ=+Ré#a”x°Êz7ÈzŠ(©†Ì©t)…YnϘ¡ÿwù†xb‡â8>µ%µ{µc‘#Æð7–G¡àQE !ãJ³’eHdeÜã'r2{ŸÌÔú´·###eh‚–9 3®h¢ˆŽDбóäîÚìó÷x¹†_uB}þf¢ŠÔÈŽùiw²PèŒÊÀr¤D úçš«£¢Ieh@C³ –ù—¯¯Z(¨ûEý’Å×Ïj]¾fËŒžNªz£¹Ñ]Ë1t,ÊÙåX.A„QE7±+rX¦•ô;vi³ìÜK·È½}jå·ÌÖÛ¹ÌY9õãùQE4j(¢Hìª]bvV#v·#߁RM##«Io,±õ'h9ü T¯‰ì‡Û€oÝHHz¼åÅ$„™¯ 9+úqE]I2µò¶yá>\ÌpdNƒŒŽkHó=À=•—Øîê(¢¦;²žÈk®ÛI€ž=pyýLâîÐŒX·¿^´QVJ2µEÁq² Šo¸ô©í]¤Óá.ʼn€’Xç?+(¨Žå=ÿÙ
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';
}

24 Oct 2008, 8:13 PM
#386
tcarney avatar

tcarney

New Zenner

Join Date:
Oct 2007
Posts:
11
Plugin Contributions:
0

Re: Captcha using TTF & GD

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

25 Oct 2008, 3:05 AM
#387
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Captcha using TTF & GD

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?

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

25 Oct 2008, 3:28 AM
#388
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Captcha using TTF & GD

tcarney.:

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

The captcha image is there, but the code validation and even the redrew button does not work... check your code edits. Seems something is missing..

Dave
Always forward thinking... Lost my mind!

25 Oct 2008, 6:52 AM
#389
steve1965 avatar

steve1965

New Zenner

Join Date:
Jun 2008
Location:
uk
Posts:
71
Plugin Contributions:
0

Re: Captcha using TTF & GD

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

25 Oct 2008, 1:42 PM
#390
steve1965 avatar

steve1965

New Zenner

Join Date:
Jun 2008
Location:
uk
Posts:
71
Plugin Contributions:
0

Re: Captcha using TTF & GD

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

25 Oct 2008, 2:10 PM
#391
steve1965 avatar

steve1965

New Zenner

Join Date:
Jun 2008
Location:
uk
Posts:
71
Plugin Contributions:
0

Re: Captcha using TTF & GD

disregard my last posts .

what a total wolly , just read case insensitive :blush:

:clap: happy days :clap:

steve

25 Oct 2008, 6:25 PM
#392
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Captcha using TTF & GD

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

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

25 Oct 2008, 8:59 PM
#393
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Captcha using TTF & GD

chris32882:

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

looks like it's working to me...

Dave
Always forward thinking... Lost my mind!

27 Oct 2008, 1:07 PM
#394
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Captcha using TTF & GD

still have not been able to get it to work ether. out of ideas...frustrated. :frusty:

Live and learn... the Zen way.

28 Oct 2008, 2:15 AM
#395
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Captcha using TTF & GD

mydanilo:

still have not been able to get it to work ether. out of ideas...frustrated. :frusty:

Funny,,, your contact us page is working just fine with Captcha!

Dave
Always forward thinking... Lost my mind!

28 Oct 2008, 6:14 AM
#396
chris32882 avatar

chris32882

Zen Follower

Join Date:
Oct 2008
Location:
Hornell, NY
Posts:
330
Plugin Contributions:
0

Re: Captcha using TTF & GD

davewest:

looks like it's working to me...

Yes it does work :), silly me forgot to upload the graphic/font files :frusty:

Is there anyway I can make this line up with my Text box? its kinda off to the left

Have you visited the (un-official) Zen Cart IRC channel yet?
irc.freenode.net ##zencart

28 Oct 2008, 6:27 PM
#397
mydanilo avatar

mydanilo

Totally Zenned

Join Date:
Dec 2004
Posts:
1,024
Plugin Contributions:
0

Re: Captcha using TTF & GD

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).

Live and learn... the Zen way.

17 Nov 2008, 6:34 PM
#398
chrx avatar

chrx

New Zenner

Join Date:
Aug 2005
Location:
SF Bay Area, California, USA
Posts:
84
Plugin Contributions:
0

Re: Captcha using TTF & GD

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

18 Nov 2008, 11:59 AM
#399
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Captcha using TTF & GD

chrx,
In zen-cart 1.3.8a you can install install.sql using upload.
The process of copy/paste is described correctly

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

18 Nov 2008, 6:00 PM
#400
chrx avatar

chrx

New Zenner

Join Date:
Aug 2005
Location:
SF Bay Area, California, USA
Posts:
84
Plugin Contributions:
0

Re: Captcha using TTF & GD

a_berezin:

In zen-cart 1.3.8a you can install install.sql using upload.
The process of copy/paste is described correctly

Thank you very much Andrew! I'll be installing today.

Cheers,
Chris