| Author |
Message |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
I had to change my path in captcha.php to:
@include 'cutenews/plugins/captcha/php-captcha.inc.php';
The / before the rest of the URL was breaking it.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Tue Jan 23, 2007 5:18 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
 |  | EDIT : Actually i solved that one out, but now it won't accept the numbers and release the comment. So where's the problem? |
As I expected, the second include on the left causes this problem. Do the following to fix it:
1. Open plugins/captcha.php and change this:
 |  | function check_image($allow) {
if (isset($_POST['code'])) {
if (!PhpCaptcha::Validate($_POST['code'])) {
echo("<div style=\"text-align: center;\">Please enter the numbers from the image.<br /><a href=\"javascript:history.go(-1)\">go back</a></div>");
$allow = false;
}
}
return ($allow ? true : false);
} |
to this:
 |  | function check_image($allow) {
global $captcha;
if($captcha){
if (isset($_POST['code'])) {
if (!PhpCaptcha::Validate($_POST['code'])) {
echo("<div style=\"text-align: center;\">Please enter the numbers from the image.<br /><a href=\"javascript:history.go(-1)\">go back</a></div>");
$allow = false;
}
}
}
return ($allow ? true : false);
} |
2. Add $captcha = true; to your main include code (not the one on the left).
|
|
| Tue Jan 23, 2007 11:48 pm |
|
 |
PepeT
Joined: 11 Nov 2005 Posts: 80 Location: Finland |
|
|
|
Alrighty, I'll have to test this out later today. Thanks.
|
|
| Wed Jan 24, 2007 9:44 am |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 161 Location: Czech republic |
|
|
|
OK, I really don't know , so I'm asking once more:
What shall I do with this error?
 |  | Fatal error: Undefined class name 'phpcaptcha' in /mnt/data/accounts/p/punkrock/data/www/administrace/plugins/captcha.php on line 48 |
|
|
| Tue Jan 30, 2007 5:33 pm |
|
 |
Servantez
Joined: 19 Feb 2007 Posts: 1
|
|
|
|
My friend came up with a solution (multiple includes)
instead of:
@include 'cutenews/plugins/captcha/php-captcha.inc.php';
use a path starting directly from 'plugins'
@include 'plugins/captcha/php-captcha.inc.php';
Hope it helps... 
|
|
| Mon Feb 19, 2007 6:32 pm |
|
 |
WellWho

Joined: 09 Jan 2007 Posts: 62
|
|
|
|
I've installed this plugin and it's working great, but sometimes show one of the letters in white color which is difficult to see.
|
|
| Wed Feb 21, 2007 11:53 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
Open plugins/catpcha/php-captcha.inc.php and find this:
 |  | if ($this->bUseColour) {
$iTextColour = imagecolorallocate($this->oImage, rand(0, 100), rand(0, 100), rand(0, 100)); |
Change it to something like this and see what happens:
 |  | if ($this->bUseColour) {
$iTextColour = imagecolorallocate($this->oImage, rand(20, 100), rand(20, 100), rand(20, 100)); |
|
|
| Thu Feb 22, 2007 12:07 am |
|
 |
WellWho

Joined: 09 Jan 2007 Posts: 62
|
|
|
|
Still last letter is white.
|
|
| Thu Feb 22, 2007 12:28 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
Then change the 100 to 80 or whatever.
|
|
| Thu Feb 22, 2007 12:39 am |
|
 |
WellWho

Joined: 09 Jan 2007 Posts: 62
|
|
|
|
It's not problem in that, i changed all brackets to (20, 80) and still last letter is white. You can chek site and try to comment.
|
|
| Thu Feb 22, 2007 3:41 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
|
Change everything to this:
 |  | if ($this->bUseColour) {
$iTextColour = imagecolorallocate($this->oImage, 20, 40, 60); |
|
|
| Thu Feb 22, 2007 3:51 pm |
|
 |
WellWho

Joined: 09 Jan 2007 Posts: 62
|
|
|
| Thu Feb 22, 2007 4:16 pm |
|
 |
Jorioz
Joined: 15 Aug 2006 Posts: 31 Location: Holland |
|
|
| Wed Apr 04, 2007 10:15 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
| Wed Apr 04, 2007 1:23 pm |
|
 |
Jorioz
Joined: 15 Aug 2006 Posts: 31 Location: Holland |
|
|
|
true
i'll give it a try
_________________ Take a look at my CuteNews.RU based website:
MUSIC IN CONTROL . NL |
|
| Wed Apr 04, 2007 4:31 pm |
|
 |
|