PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Fri Nov 13, 2009 6:35 pm Reply with quote Back to top

Ok, please explain to me again how to change the image.

I have edited class.php-captcha.php but nothing I do changes the captcha image.

I would like to make the image larger. Old guys like me have to go through several attempts at logging in before we see an image good enough to succeed.

I put the defaults as follows to see if it made a difference
Code:
define('CAPTCHA_SESSION_ID', 'php_captcha');
define('CAPTCHA_WIDTH', 300); // max 500
define('CAPTCHA_HEIGHT', 90); // max 200
define('CAPTCHA_NUM_CHARS', 5);
define('CAPTCHA_NUM_LINES', 90);
define('CAPTCHA_CHAR_SHADOW', false);
define('CAPTCHA_OWNER_TEXT', '');
define('CAPTCHA_CHAR_SET', ''); // defaults to A-Z
define('CAPTCHA_CASE_INSENSITIVE', false);
define('CAPTCHA_BACKGROUND_IMAGES', '');
define('CAPTCHA_MIN_FONT_SIZE', 16);
define('CAPTCHA_MAX_FONT_SIZE', 20);
define('CAPTCHA_USE_COLOUR', true);
define('CAPTCHA_FILE_TYPE', 'png');
define('CAPTCHA_FLITE_PATH', '/usr/bin/flite');
define('CAPTCHA_AUDIO_PATH', '/tmp/'); // must be writeable by PHP process

Here is what it looks like.
Image
Is there something else I need to do, or other files I need to check? This is a fresh install of RN2.4.

I just modified that file on another site which was upgraded from 2.3 to 2.4 and I can increase the size of the captcha image, and it is in color and contains 5 characters.
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

PostPosted: Fri Nov 13, 2009 6:59 pm Reply with quote Back to top

I just did a little search and I found this
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Fri Nov 13, 2009 7:47 pm Reply with quote Back to top

Ya, I know. Thanks.
View user's profile Send private message
jakec
Site Admin


Joined: Feb 06, 2006
Posts: 3038
Location: United Kingdom

PostPosted: Sat Nov 14, 2009 6:12 am Reply with quote Back to top

That is not the right captcha for RN2.4. Is this an upgrade?
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Sat Nov 14, 2009 6:36 pm Reply with quote Back to top

No, it is a fresh install from this download: RavenNuke_v2.40.00.7z

I have an upgraded site on which the captcha works fine, including modifying the settings in class.php-captcha.php
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Sat Nov 14, 2009 7:44 pm Reply with quote Back to top

Could it have something to do with this....?

Warning: ini_set() has been disabled for security reasons.... in rnconfig.php line 265. (this is the only php error warning I get)

If I comment out line 265 the captcha shows up as in the first post in this thread. If I un-comment line 265 the captcha does not show up at all - I get this instead....

Image

My host has disabled ini_set() - I just installed a local copy using xampp and the captcha shows up as expected.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sun Nov 15, 2009 12:53 pm Reply with quote Back to top

Doulos, actually, I think the problem may have something to do with not having GD access or GD was not compiled with FreeType support.

The captcha should look like the ones on the
Only registered users can see links on this board!
Get registered or login to the forums!
. Something is not right with your set up and not sure if the ini_set issue is the cause... yet.
View user's profile Send private message Visit poster's website
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Mon Nov 30, 2009 5:24 pm Reply with quote Back to top

montego, is this what you are talking about?
Only registered users can see links on this board!
Get registered or login to the forums!


If not, how would I go about finding out? I am about to turn off the captcha verification since I am getting no end of complaints about the image being too small to read.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Wed Dec 02, 2009 6:42 am Reply with quote Back to top

You need to check with your host about making sure GD is compiled to include FreeType 2 (I believe is the minimum) support.
View user's profile Send private message Visit poster's website
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Wed Dec 02, 2009 1:54 pm Reply with quote Back to top

Thanks, but I decided to host it myself. We have had too many server issues with our present host. Thanks for all your help.
View user's profile Send private message
dad7732
RavenNuke(tm) Development Team


Joined: Mar 18, 2007
Posts: 1191

PostPosted: Wed Dec 02, 2009 3:48 pm Reply with quote Back to top

Doulos wrote:
Thanks, but I decided to host it myself. We have had too many server issues with our present host. Thanks for all your help.


Ok, so is it working correctly now?
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Wed Dec 02, 2009 6:57 pm Reply with quote Back to top

Captcha works correctly everywhere I tried it except on the server the site was originally hosted. As it was being hosted for free we couldn't complain too much. We have been unable to have reliable, timely communications with the server owner for some time now. We have had enough.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Dec 02, 2009 7:18 pm Reply with quote Back to top

Doulos,

For a very few $ I can host your site Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Wed Dec 02, 2009 8:01 pm Reply with quote Back to top

Thanks, I will keep that in mind. We use a lot of bandwidth on this particular site (close to a 100GB/mth sometimes), several large databases, and a lot of disk space for large file storage. I want to see how my server (and I) can handle it first since I am also free Smile.

Anyway, I moved the site, and the captcha image shows up exactly as expected. However, now it won't let anyone log in. We keep getting the "Security Code is incorrect, Please go back and type it exactly as given ..." message.

Suggestions?
View user's profile Send private message
bobbyg
Worker
Worker


Joined: Dec 05, 2007
Posts: 201
Location: Tampa, Florida

PostPosted: Wed Dec 02, 2009 8:12 pm Reply with quote Back to top

If you are getting free hosting via a GoDaddy or WildWestDomains reseller, the captcha will not work on the free hosting.
View user's profile Send private message Visit poster's website
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Wed Dec 02, 2009 8:37 pm Reply with quote Back to top

Not a free hosting site. By free I mean I am not paying extra to host this other site.

I have others nuke sites on this same server that captcha is working fine on. I just want to know what files I should look at to see if something got messed up via
Only registered users can see links on this board!
Get registered or login to the forums!
I don't want to re-upload all the files from the RN2.4 distro just to find the few that are causing the problem.
View user's profile Send private message
bobbyg
Worker
Worker


Joined: Dec 05, 2007
Posts: 201
Location: Tampa, Florida

PostPosted: Wed Dec 02, 2009 11:56 pm Reply with quote Back to top

Did you add any additional modules? I had added osc4nuke to one of mine and got the same error.
View user's profile Send private message Visit poster's website
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 545

PostPosted: Thu Dec 03, 2009 1:31 pm Reply with quote Back to top

Ok, I decided to start over with a fresh install, make sure everything works then replace one set of files at a time from the other website. Hopefully, I will be able to find the offending item(s).
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Dec 05, 2009 10:02 am Reply with quote Back to top

Doulos, that error is usually due to the PHP session settings not being correct, meaning that NO PHP session temporary files can be written (this is usually the problem - either wrong directory path or wrong permissions).
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum