XMB Services
Setting The Standard
Last active: Never

Donate to XMB Services
Not logged in [Login - Register]
Go To Bottom


Poll: Which CAPTCHA image do you prefer?
Original --------------------------- 3 (75%)
New ---------- 1 (25%)

Printable Version | Subscribe | Add to Favourites  Post Reply
 Pages:  1  2
Author: Subject: Which CAPTCHA image do you prefer?
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 18/5/2007 at 23:45 Reply With Quote
Which CAPTCHA image do you prefer?



I am currently working on creating a new CAPTCHA (antispam registration image) hack that uses a more complex image generator and will have many configurable options.

The new hack will also enable CAPTCHA images for anonymous posting to prevent spam.

Which captcha image do you prefer?

Original: http://www.xmbmods.com/forums/misc.php?action=regimage&imagehash=test

New: http://www.xmbservices.com/misc.php?action=captchaimage&imagehash=b2a9a3304dbad7b238336950613fc5a8
http://www.xmbservices.com/images/pixel.gif




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 19/5/2007 at 12:00 Reply With Quote


I prefer teh top but the bottom one is very nice.
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 20/5/2007 at 17:05 Reply With Quote


Quote:
Originally posted by PJAmerica
I prefer teh top but the bottom one is very nice.


What about now?

The mod also enables the use of background images.




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 20/5/2007 at 20:34 Reply With Quote


The new one is fine but just enlarged. Enlarged is fine to.:)
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 20/5/2007 at 21:33 Reply With Quote


Quote:
Originally posted by PJAmerica
The new one is fine but just enlarged. Enlarged is fine to.:)


It is enlarged to accept the multi sized letters. The image size can be altered via the admin panel, along with the number of characters for the code.




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 20/5/2007 at 22:53 Reply With Quote


I am familiar with the features. The same thing is used in UltimaBB as far as features for CAPTCHA goes:) I think it will be a nice mod indeed and look forward to it.
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 26/5/2007 at 22:49 Reply With Quote


How is this coming along?
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 28/5/2007 at 14:40 Reply With Quote


Almost done.

Been away camping for the Bank Holiday weekend, so havn't had chance to finish it.

It will be done in the next couple of days though.




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 28/5/2007 at 18:09 Reply With Quote


Quote:
Originally posted by Adam
Almost done.

Been away camping for the Bank Holiday weekend, so havn't had chance to finish it.

It will be done in the next couple of days though.


Sounds excellent. I should be getting with you on that thing we discussed soon. Next week or so.

I look forward to this as well.:cool:
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 3/6/2007 at 17:39 Reply With Quote


I have now completed and released this mod for 1.9.7.

You can access it via the downloads page, or by clicking HERE




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 19/6/2007 at 11:13 Reply With Quote


There is some incomplete code. For instance/ You are calling the action line to member.php in header.php but you have this code in the template.

misc.php?action=captchaimage&imagehash=$imagehash

Further more, there is no actionable code for member.php in the directions that I can see so that it is even called member.php?action=captchaimage&imagehash=$imagehash
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 19/6/2007 at 16:06 Reply With Quote


Quote:
Originally posted by PJAmerica
There is some incomplete code. For instance/ You are calling the action line to member.php in header.php but you have this code in the template.

misc.php?action=captchaimage&imagehash=$imagehash


Am I? No code is being called from header.php

Quote:
Further more, there is no actionable code for member.php in the directions that I can see so that it is even called member.php?action=captchaimage&imagehash=$imagehash


The action is in misc.php, but you are correct, the code is missing. I will get that updated later today.

Thank's for letting me know.




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 19/6/2007 at 16:22 Reply With Quote


Sounds great.:)
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 24/6/2007 at 13:17 Reply With Quote


Sorry for the delay, I have been busy offline.

I have now updated the mod instructions.




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
neXgen
Junior Member
**




Posts: 46
Registered: 10/8/2006
Member Is Offline

Mood: Normal enough. Twitch.

[*] posted on 26/6/2007 at 09:29 Reply With Quote


It does look like a good mod.

My only question is - will this run on 1.9.5 or do I get to be the lucky guy who finds out?
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 26/6/2007 at 16:19 Reply With Quote


You can be the lucky guy who finds out :P.

It should work, but you may have a few issues finding certain pieces of code. If you get stuck, let me know.




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
neXgen
Junior Member
**




Posts: 46
Registered: 10/8/2006
Member Is Offline

Mood: Normal enough. Twitch.

[*] posted on 29/6/2007 at 08:04 Reply With Quote


Ah, OK then. I like a challenge.

I'll install an innocent (and possibly even carefree) XMB 1.9.5 so I don't stuff up my good boards.

Probably safer that way.
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 29/6/2007 at 09:40 Reply With Quote


It runs fine on 1.9.5. Just took some adaption.:)
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
neXgen
Junior Member
**




Posts: 46
Registered: 10/8/2006
Member Is Offline

Mood: Normal enough. Twitch.

[*] posted on 30/6/2007 at 05:42 Reply With Quote


Did your board throw up a "Not Allowed to Run This File Directly" error when you tried to register?

The Admin CP settings work OK but anything that involves the CAPTCHA directly throws up that error.
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 30/6/2007 at 12:23 Reply With Quote


Quote:
Originally posted by neXgen
Did your board throw up a "Not Allowed to Run This File Directly" error when you tried to register?

The Admin CP settings work OK but anything that involves the CAPTCHA directly throws up that error.


No, because I removed this from captcha.inc.php

Code:

if (!defined('IN_CODE') && (defined('DEBUG') && DEBUG == false)) {
exit ("Not allowed to run this file directly.");
}
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 2/7/2007 at 00:04 Reply With Quote


I have recently found a few typo error's within the mod that will most likely prevent it from working. I have now updated the downloads with the latest version.

If you have already installed it, you will need to replace ./include/captcha.inc.php and check all the code for the files / templates.




XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
neXgen
Junior Member
**




Posts: 46
Registered: 10/8/2006
Member Is Offline

Mood: Normal enough. Twitch.

[*] posted on 4/7/2007 at 06:27 Reply With Quote


Almost there.

What I get now is a divide by zero error at Line 105 in captcha.inc.php. This is causing the forum, as it can't divide by 0, to just skip the CAPTCHA and allow anonymous posting.

Here is the exact error:
Code:

Warning: Division by zero in /mounted-storage/home43b/sub005/sc32266-HUZG/www/test/include/captcha.inc.php on line 105

Warning: Division by zero in /mounted-storage/home43b/sub005/sc32266-HUZG/www/test/include/captcha.inc.php on line 105


And here is the offending line, Line 105:
Code:

function CalculateSpacing() {
$this->iSpacing = (int)($this->iWidth / $this->iNumChars);
}


I can attach captcha.inc.php if you need it.
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
PJAmerica
Junior Member
**




Posts: 27
Registered: 18/5/2007
Member Is Offline


[*] posted on 4/7/2007 at 12:26 Reply With Quote


what code is display on line 105? and a few lines above?
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
neXgen
Junior Member
**




Posts: 46
Registered: 10/8/2006
Member Is Offline

Mood: Normal enough. Twitch.

[*] posted on 5/7/2007 at 08:30 Reply With Quote


The code displayed on Line 105 is:
$this->iSpacing = (int)($this->iWidth / $this->iNumChars);

This immediately precedes it:
Code:

function Captcha($iWidth = CAPTCHA_WIDTH, $iHeight = CAPTCHA_HEIGHT) {
// get parameters
$this->SetNumChars(CAPTCHA_NUM_CHARS);
$this->SetNumDots(CAPTCHA_NUM_DOTS);
$this->SetNumLines(CAPTCHA_NUM_LINES);
$this->DisplayShadow(CAPTCHA_CHAR_SHADOW);
$this->SetCharSet(CAPTCHA_CHAR_SET);
$this->SetFonts(CAPTCHA_FONTS);
$this->CaseInsensitive(CAPTCHA_CASE_INSENSITIVE);
$this->SetBackgroundImages(CAPTCHA_BACKGROUND_IMAGES);
$this->SetMinFontSize(CAPTCHA_MIN_FONT_SIZE);
$this->SetMaxFontSize(CAPTCHA_MAX_FONT_SIZE);
$this->UseColor(CAPTCHA_USE_COLOR);
$this->SetFileType(CAPTCHA_FILE_TYPE);
$this->SetWidth($iWidth);
$this->SetHeight($iHeight);
$this->CheckCompatibility();
}


Here's my copy of captcha.inc.php.

Attachment: captcha.inc.php (21.03 KiB)
This file has been downloaded 95 times
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
Adam
Super Administrator
*********


Avatar


Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline

Mood: Tired

[*] posted on 5/7/2007 at 19:59 Reply With Quote


Have you checked the Admin Settings to ensure all the captcha sizes etc. are set?



XMB Services Owner

Have you backed up your DB Today? You may regret not doing it one day.

Have I helped You?

http://www.xmbservices.com/images/paypal.gif
View User's ProfileVisit User's HomepageView All Posts By User U2U Member
 Pages:  1  2
Post Reply

 » Quick Reply - [Logged in as Anonymous]
Please enter the text contained within the image into the textbox below it. This process is used to prevent automated bots.

Captcha Image Verification

On
Smilies are On
BB Code is On
[img] Code is On

Disable Smilies?
Use signature?
Turn BBCode off?
Receive email on reply?

  

Go To Top


Windows Live Alerts

Powered by XMB

XMB Link

Coffee Theme By Karl Davis

[queries: 20]
[PHP: 93.4% - SQL: 6.6%]