Welcome Guest, Not a member yet? Register   Sign In
captcha
#1

[eluser]rcahanap[/eluser]
Still new to Codeigniter, finally got around to testing out the captcha helper.

Question - any suggestions on improving the readability of the captcha?

Thanks for all the responses.

-Roberto
#2

[eluser]ojcarga[/eluser]
What do you mean?

You can use a different font also and maybe you need to check this out if you are having troubles setting the font-size.

http://ellislab.com/forums/viewthread/224773/

Cheers!
#3

[eluser]rcahanap[/eluser]
Hi ojcarga!

I'm not quite sure how to change the font or the font size.

I found this online: http://tutorialsbay.com/codeigniter-capt...y-example/

I tried out the example there and I was happy that I was able to get the captcha on my web page.

Changing the font size might help. I looked at the link you typed up, but where would I type that? Would I have to modify some core Codeigniter function? If so, isn't that bad if you want to upgrade later.

Thanks again.

-Roberto



[quote author="ojcarga" date="1348695173"]What do you mean?

You can use a different font also and maybe you need to check this out if you are having troubles setting the font-size.

http://ellislab.com/forums/viewthread/224773/

Cheers![/quote]
#4

[eluser]rcahanap[/eluser]
Cool!

I was able to change the font, and it seems that by doing this, it is a little easier to read from a human stand point.

Thanks for your input!

-Roberto
#5

[eluser]rcahanap[/eluser]
Follow up question...

What would be the best technique to "refresh" that captcha?

I've seen websites where they have a little button right by the captcha image and when you click on it, the captcha is changed.

Is there a simple way to do this in Codeigniter?

Thanks again.

-Roberto
#6

[eluser]ojcarga[/eluser]
[quote author="rcahanap" date="1348714117"]
Changing the font size might help. I looked at the link you typed up, but where would I type that? Would I have to modify some core Codeigniter function? If so, isn't that bad if you want to upgrade later.
[/quote]

Sure, you should change it but not the one in System folder, you should create a new one (a new helper file inside application folder)

Go here:
http://ellislab.com/codeigniter/user-gui...lpers.html
Below this subtitle you will find how you can achieve that.
"Extending" Helpers

This would keep your "core helper" as they are and will not be a problem for a future upgrade.


About the refreshing thing, I have just made the same thing in my current project. I did it this way:

A simple anchor that on click event calls a ajax method, this ajax method will call a method in my controller that has a simple call to "create_captcha()" function and then what I return back to the browser is 'image' => $img part and then I just change it in the doom.

Let me know if I explained well.

Cheers!




Theme © iAndrew 2016 - Forum software by © MyBB