captcha only white numbers ?

Phoca Guestbook - creating guestbooks in Joomla! CMS
dsimons
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 Dec 2007, 00:30

Hello,Fo

Post by dsimons »

Hello,

For my users its really hard to see that characters are showing. Is it possible to only use number in the captcha script ?

That would help me alot !

Hope someone can help me.

Thanx Dave
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Yes, it si possible,

Post by Jan »

Yes, it si possible, but you must edit source code of Captcha class. But I have created it to make possible do easy changes.

You can select:

- only numbers
- only lower case characters
- only upper case characters
- you can delete every character you want

Go to:
joomla/com_phocaguestbook/helpers/phocaguestbookcaptcha.php

Row: +- 45

Jan
If you find Phoca extensions useful, please support the project
dsimons
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 29 Dec 2007, 00:30

Oke,than

Post by dsimons »

Oke,

thank you verry muts, now i deffenitly gona use it !!!!!


Thanx Dave
roeiegans
Phoca Member
Phoca Member
Posts: 23
Joined: 04 Jan 2008, 11:53

Great guestbook, it

Post by roeiegans »

Great guestbook, it works very good on my site. However regarding this topic, i tried to modify phocaguestbookcaptcha.php. My knowledge of PHP isn't that good, the gaol I want to achieve is that Captcha uses only numbers and lowercase characters and instead of 6 just 4 characters.

I started setting the generateRandomChar to 4 and removing $rand_char[4 and $rand_char[5] in the function createImageData.

In the function generateRandomChar I then set the length to 4 and removed the complete array upper and the link to it in the next ($char_group) line.

This all seemed to work, I got to see in my frontend what I wanted (4 characters, numbers and lower case characters) , however posting a new message didn't work. I always got the error that the entered captcha code was wrong (even when it generated 4 numbers). What am I doing wrong? What should and should not be modified?

many thanks for your help allready in advance.

Roel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

You can download it

Post by Jan »

You can download it from:

https://www.phoca.cz/phocaguestbook/inde ... e=download

(It is the class zip file with only 4 characters function - lower case and numbers)
If you find Phoca extensions useful, please support the project
Terago
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jan 2008, 20:09

You can download

Post by Terago »

You can download it from:

https://www.phoca.cz/phocaguestbook/inde ... e=download

(It is the class zip file with only 4 characters function - lower case and numbers)


Hi i tryt to use the mod but its not working i have 6 digits with numbers and letters lower and upper case nothing changed.

what did i wrong?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Which mod? Do you th

Post by Jan »

Which mod? Do you think the phoca captcha class or Phoca Guestbook component... Please let me know the name of your site...
If you find Phoca extensions useful, please support the project
Terago
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jan 2008, 20:09

the phoca captcha cl

Post by Terago »

the phoca captcha class i use the book on URL

i put the phocaguestbookcaptcha.php in the right folder but theres no changes.
Terago
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Jan 2008, 20:09

ahhh i got it, i uni

Post by Terago »

ahhh i got it, i uninstallt the book and modyfied the zip file that the phoca chapta clas was already includet now it works. how can i activate the german language pack for it and why i cant change the blue color of the table.

thx
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

You can change the b

Post by Jan »

You can change the blue color, but you must change it in menu link, in parameters component, because this menu link settings override default settings in component in Joomla framework ...


Deutsch - du musst die deutschen Sprachdateien ins Verzeichnis de_DE im Verzeichnis 'languages' kopieren und es soll arbeiten wenn du die deutsche Sprache fĂźr den 'front' definert hast...

Jan
If you find Phoca extensions useful, please support the project
Post Reply