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
captcha only white numbers ?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Yes, it si possible,
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
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
-
- Phoca Member
- Posts: 23
- Joined: 04 Jan 2008, 11:53
Great guestbook, it
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
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
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
You can download it
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)
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
-
- Phoca Newbie
- Posts: 7
- Joined: 27 Jan 2008, 20:09
You can download
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?
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?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Which mod? Do you th
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
-
- Phoca Newbie
- Posts: 7
- Joined: 27 Jan 2008, 20:09
the phoca captcha cl
the phoca captcha class i use the book on URL
i put the phocaguestbookcaptcha.php in the right folder but theres no changes.
i put the phocaguestbookcaptcha.php in the right folder but theres no changes.
-
- Phoca Newbie
- Posts: 7
- Joined: 27 Jan 2008, 20:09
ahhh i got it, i uni
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
thx
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
You can change the b
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
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