Author |
Message |
zlmark
Regular


Joined: Sep 25, 2006
Posts: 57
|
Posted:
Mon Mar 26, 2007 1:16 pm |
|
I use the gfx check in nuke config for login and when i upgraded to rn210 it changed from 6 numbers to 4 letters or numbers. Where can i change this setting? |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Mon Mar 26, 2007 2:45 pm |
|
Odd I never seen it with numbers, but have a look at the settings in:
includes/class.php-captcha.php |
|
|
|
 |
zlmark

|
Posted:
Mon Mar 26, 2007 6:31 pm |
|
jakec wrote: | Odd I never seen it with numbers, but have a look at the settings in:
includes/class.php-captcha.php | wellThe only thing i seen was this
Code:define('CAPTCHA_NUM_CHARS', 5);
| and i changed it to
Code:define('CAPTCHA_NUM_CHARS', 7);
| But of course i see 4 characters still.
www.extremeoutlawracing.com |
|
|
|
 |
jakec

|
Posted:
Tue Mar 27, 2007 6:04 am |
|
Well it looks like something has gone wrong during your upgrade, because the captcha looks way different to that now.
Have a look at Guardians site and you will see what it is supposed to look like: http://www.code-authors.com/index.php |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Mar 27, 2007 6:30 am |
|
zlmark, what version of nuke did you upgrade from please. TIA. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
zlmark

|
Posted:
Tue Mar 27, 2007 1:40 pm |
|
montego wrote: | zlmark, what version of nuke did you upgrade from please. TIA. | downgraded phpnuke 8.0 to RN2.02 using Darklords downgrader then once this was released i upgraded to RN2.10. The gfx check always had 6 numbers that looked like your login here until the latest upgrade. |
|
|
|
 |
jakec

|
Posted:
Tue Mar 27, 2007 3:16 pm |
|
It looks like something has not uploaded correctly, or you have files missing.
First I would recommend making sure all the correct files have been uploaded. You could even use something like Beyond Compare to check your files and directory structure.
Also did you get any error message while upgrading the database? |
|
|
|
 |
zlmark

|
Posted:
Tue Mar 27, 2007 3:43 pm |
|
I will compare files, again. i did that already when i cleaned out old ones using ws ftp pro. there was the 2 errors dicussed else where in this forum(banners?)
Are there certain files i should try to upload again? |
|
|
|
 |
montego

|
Posted:
Wed Mar 28, 2007 6:23 am |
|
Make sure everything under the includes directory, but especially the fonts directory and gfx_check.php. |
|
|
|
 |
zlmark

|
Posted:
Wed Mar 28, 2007 7:31 am |
|
montego wrote: | Make sure everything under the includes directory, but especially the fonts directory and gfx_check.php. | ok, renamed the includes folder and uploaded new one still no change. whats next? |
|
|
|
 |
montego

|
Posted:
Wed Mar 28, 2007 8:51 am |
|
I am not sure any longer, but suspect it might be gd library related, but I have asked technocrat if he could take a look at this thread. He is probably the most knowledgeable one here on this new captcha. |
|
|
|
 |
zlmark

|
Posted:
Wed Mar 28, 2007 9:10 am |
|
thank you montego! Looking forward to technocrats input |
|
|
|
 |
technocrat
Life Cycles Becoming CPU Cycles

Joined: Jul 07, 2005
Posts: 511
|
Posted:
Wed Mar 28, 2007 10:18 am |
|
Open includes/gfx.php
Find:
Code:define('GFX_USE_IMAGE', true);
|
After add:
Code://The number of letters & numbers to dispaly on each captcha
define('GFX_NUMBER', 4);
|
Find:
Code:$code = random_code(4);
|
Replace with:
Code:$code = random_code(GFX_NUMBER);
|
Now you can change:
Code:define('GFX_NUMBER', 4);
|
To:
Code:define('GFX_NUMBER', 7);
|
|
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! / Only registered users can see links on this board! Get registered or login! |
|
|
 |
montego

|
Posted:
Wed Mar 28, 2007 10:36 am |
|
technocrat, he has the new captcha code available to him, do you think that it might be related to FreeType? Does he have to ask his host or is there something he can do to make sure its working and/or install it?
Thank you by the way for this excellent RN FAQ:
http://www.ravenphpscripts.com/posts13073-highlight-.html |
|
|
|
 |
technocrat

|
Posted:
Wed Mar 28, 2007 11:33 am |
|
I went to www.extremeoutlawracing.com and it's the old captcha. If you try to run the new captcha it's says he is missing the imageftbbox() which means no FreeType. So his host would have to recompile GD with it. |
|
|
|
 |
zlmark

|
Posted:
Wed Mar 28, 2007 12:47 pm |
|
Quote: |
So his host would have to recompile GD with it.
|
So ask my hosting service to recompile GD? |
|
|
|
 |
montego

|
Posted:
Wed Mar 28, 2007 12:52 pm |
|
zlmark, You need to ask your host to "recompile GD with support for FreeType".
the entire requirement is very important. |
|
|
|
 |
technocrat

|
Posted:
Wed Mar 28, 2007 12:54 pm |
|
He can use the old one which works fine, he just need to make the changes I posted and he can do as many characters as he wants. |
|
|
|
 |
montego

|
Posted:
Wed Mar 28, 2007 1:20 pm |
|
Right... we were just trying to get him working with the better captcha is all.
Yes, either way should work. Thanks for helping out on this! |
|
|
|
 |
zlmark

|
Posted:
Wed Mar 28, 2007 2:42 pm |
|
Thanks! Contacted hosting, will post the outcome |
|
|
|
 |
zlmark

|
Posted:
Thu Mar 29, 2007 10:28 am |
|
They fixed er all up for me. i restored the includes folder which put all the files back to the way they were.
Thanks for all your help!! |
|
|
|
 |
montego

|
Posted:
Thu Mar 29, 2007 5:58 pm |
|
Excellent news and now you can use the new, and hopefully better for a long time, captcha. |
|
|
|
 |
|