You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees
when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.
IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.
You are not logged in.
First of all, thank you for sharing this nice piece of script which does everything which it is intended to do. While trying it out locally on my computer using XAMPP, i am facing a problem with language part.
I have created a language file in Hindi using IndicIME and for characters in it to show properly I created/typed in Notepad and saved as UTF-8 format. Now when I select this hindi.php from Language option at all the forms I do not see Captcha image for validation. Now, the irony is that I know the reason why this problem is there but I can not seem to find a way to solve it.
What I understand is that the reason of this problem is those extra characters saved in the header of hindi.php file when saved as UTF-8 instead of Ansi (default) format and because of these extra characters in file header the session is destroyed or already started before the Captcha class file is included, please correct me if I am wrong.
Again when I save hindi.php as Ansi format the Captcha image starts showing up BUT instead of proper asian language (hindi) characters I only see question marks (?) every where.
In FireFox the website is showing only with the Captcha image problem as mentioned above but in Internet Explorer 7 I am getting following error:
Warning: Cannot modify header information - headers already sent by (output started at xxxxxx\weblog\web\lang\hindi.php:1) in xxxxxx\weblog\web\admin\inc\functions.inc.php
With the above it is confirmed that the problem is due to saving of language file in ANSI format.
Please help me to sort out the problem as UTF-8 encoding in html files is a necessity to show Asian and other languages also I presume.
If you wish I can send you my hindi.php and if my problem is solved it would be great to see to become part of Weblog and may be very helpful for all the users who want to have their Weblog in hindi.
Thanks.
Last edited by gosain (19-02-2009 23:53:01)
Offline
Thanks for the information. I do plan on removing the captcha from my scripts and adding this one:
http://www.phpcaptcha.org/
I`m not actually sure about the captcha problem to be honest, so I don`t think I can help. You might want to try using the above captcha instead as that can read from a word list.
David.
Offline
Hi Admin,
In the past I had reported two problems: 1) Asian Language problem and 2) Captcha spacing problem
The problem reported here in this topic has got nothing to do with Captcha and is purely related to using UTF-8 characters in language file. Please do let me know if there is explanation required apart from what I had reported above earlier.
Thanks.
Offline
Sorry I didn`t get back to you again regarding this. Been to busy.
Offline
I am not sure whether or not it has got anything to do with the Hindi translation.
The captcha does not show on my English page, nor on my freshly translated Dutch page.
Where (I assume) the Captcha is to appear, ie. just below the text entry field, it just shows: "Enter Security Code", and the same equivalent in Dutch.
So, i assume there might be a fault with placing the image in the right place or somehing.
I use version 4.0.
Offline
I am not sure whether or not it has got anything to do with the Hindi translation.
The captcha does not show on my English page, nor on my freshly translated Dutch page.
Where (I assume) the Captcha is to appear, ie. just below the text entry field, it just shows: "Enter Security Code", and the same equivalent in Dutch.
So, i assume there might be a fault with placing the image in the right place or somehing.I use version 4.0.
Do you have the GD graphics library enabled on your server? Check that first. Without that the captcha`s will never load.
Offline
Yes, checked that via the phpinfo() command.
GD2 is enabled, Freetype, etc, it is all there.
Offline
Ok, just wondered. Possibly an issue with the captcha code then.
Offline
OK.
So, it might be best to disable Captcha for now then, other wise people can't post (or me, for that matter).
Offline
Ok, sorry about that.
Offline
I think I am the one who should apologise (or maybe my webhost).
This morning, everything was there as it should be.
(See my post in Maian Greetings, which explains a bit more about that).
Offline
Great news. ![]()
Offline
It seems I am also having trouble displaying the captcha code image when I select a different language as well. The english works fine though.
Offline
It seems I am also having trouble displaying the captcha code image when I select a different language as well. The english works fine though.
Hmm, not sure what would cause this. The language file shouldn`t cause any problems I wouldn`t have thought.
Offline
This is weird. The op is correct. If I convert back to ansi from utf-8, the captcha code image is viewable. However, the language pack file having special characters shows symbols, but is viewed fine over the browser.
David, I can resend you the file again or you can convert it to ansi before uploading it.
Offline
Yes, sure, that would be fine.
Offline