| Pages: 1 2 |
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 18/5/2007 at 23:45 |
 |
|
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: 
New: 
XMB Services Owner
Have you backed up your DB Today? You may regret not doing it one day.
Have I helped You?
 |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 19/5/2007 at 12:00 |
 |
|
I prefer teh top but the bottom one is very nice. |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 20/5/2007 at 17:05 |
 |
|
| 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?
 |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 20/5/2007 at 20:34 |
 |
|
The new one is fine but just enlarged. Enlarged is fine to. |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 20/5/2007 at 21:33 |
 |
|
| 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?
 |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 20/5/2007 at 22:53 |
 |
|
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. |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 26/5/2007 at 22:49 |
 |
|
How is this coming along? |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 28/5/2007 at 14:40 |
 |
|
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?
 |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 28/5/2007 at 18:09 |
 |
|
| 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. |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 3/6/2007 at 17:39 |
 |
|
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?
 |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 19/6/2007 at 11:13 |
 |
|
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 |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 19/6/2007 at 16:06 |
 |
|
| 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?
 |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 19/6/2007 at 16:22 |
 |
|
Sounds great. |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 24/6/2007 at 13:17 |
 |
|
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?
 |
|
|
neXgen
Junior Member

Posts: 46
Registered: 10/8/2006
Member Is Offline
Mood: Normal enough. Twitch.
|
posted on 26/6/2007 at 09:29 |
 |
|
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? |
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 26/6/2007 at 16:19 |
 |
|
You can be the lucky guy who finds out .
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?
 |
|
|
neXgen
Junior Member

Posts: 46
Registered: 10/8/2006
Member Is Offline
Mood: Normal enough. Twitch.
|
posted on 29/6/2007 at 08:04 |
 |
|
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. |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 29/6/2007 at 09:40 |
 |
|
It runs fine on 1.9.5. Just took some adaption. |
|
|
neXgen
Junior Member

Posts: 46
Registered: 10/8/2006
Member Is Offline
Mood: Normal enough. Twitch.
|
posted on 30/6/2007 at 05:42 |
 |
|
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. |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 30/6/2007 at 12:23 |
 |
|
| 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.");
}
|
|
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 2/7/2007 at 00:04 |
 |
|
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?
 |
|
|
neXgen
Junior Member

Posts: 46
Registered: 10/8/2006
Member Is Offline
Mood: Normal enough. Twitch.
|
posted on 4/7/2007 at 06:27 |
 |
|
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. |
|
|
PJAmerica
Junior Member

Posts: 27
Registered: 18/5/2007
Member Is Offline
|
posted on 4/7/2007 at 12:26 |
 |
|
what code is display on line 105? and a few lines above? |
|
|
neXgen
Junior Member

Posts: 46
Registered: 10/8/2006
Member Is Offline
Mood: Normal enough. Twitch.
|
posted on 5/7/2007 at 08:30 |
 |
|
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
|
|
|
Adam
Super Administrator
       
Posts: 2710
Registered: 19/9/2005
Location: Birmingham, England
Member Is Offline
Mood: Tired
|
posted on 5/7/2007 at 19:59 |
 |
|
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?
 |
|
|
| Pages: 1 2 |