Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: fr3aker on February 11, 2011, 12:56:08 PM

Title: notCaptcha
Post by: fr3aker on February 11, 2011, 12:56:08 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2932)

(http://img189.imageshack.us/img189/5104/notcaptcha1.jpg) (http://img688.imageshack.us/img688/1848/notcaptcha2.jpg)

About

notCaptcha is an unconventional captcha mod that requires human intelligence to be solved. Instead of entering some hardly readable text from some ugly picture, the user needs to spin pictures into the right position. It's easy for every human and nearly unsolvable by a computer.

Advantages:

Disadvantages:


Use your own pictures
Download the createOwnPics_INFO.zip file.
You will find a readme.txt and a template.psd.
See the readme.txt for information on how to create and name your pictures properly.

Using your own pictures instead of the included ones will significantly increase security of this captcha!

You can have a look at the notcaptcha/gallery directory of your SMF installation for examples.


Languages
Install
If you're using the default theme there is nothing to do other than installing the mod via the admin interface.
But you might want to have a look at notcaptcha/notcaptcha_config.php for some custom settings.


If you are using a custom theme you need to edit one to two files. (Register.template.php is not included in every template and so does not need to be changed manually)

index.template.php (for SMF 1.x and 2.x)
add
[/list]';

// add notCaptcha code
if(function_exists('notCaptcha_AddCss'))
notCaptcha_AddCss();
echo '

right before
</head>


Register.template.php (for SMF 1.x)
add

// add notCaptcha
echo '<tr><td width="40%"><strong>'.$txt['notcaptcha_form1'].'</strong><br />
<div class="smalltext">'.$txt['notcaptcha_form2'].'<img src="'.$modSettings['notCaptcha']['url'].'vertical_sign.png" alt="^" border="0" /></div></td><td>
<div style="display:block;padding-bottom:5px;" id="captchaImgDiv">';
notCaptcha_AddToRegisterForm();
echo '
</div></td></tr>';

before
// Are there age restrictions in place?


Register.template.php (for SMF 2.x)
The mod should install fine for SMF 2.x as it supports modifying all installed themes. Else you need to parse the install_2.xml by yourself and figure out where to put the code.


That's it!

ChangeLog:




QuoteVersion 1.0 - 03.02.2011
   * Initial release
Version 1.01 - 12.02.2011
   o Config is now dynamically generated on install, including a random salt for cookie encryption. This will make cracking much harder for spammers.
   + Portuguese translation Thanks to candidosa2!
   + Polish translation Thanks to becometa!
   ? there is no need to update if you have installed v1.0 already
Version 1.02 - 12.02.2011
   ! fixed session changes not handled properly
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.03 - 13.02.2011
   ! cookie exception handling
   * some code cleanup
   ? completely reinstall notCaptcha (including your config), backup your custom pictures
Version 1.04 - 13.02.2011
   ! fixed no images showing when guests are not allowed to see the forum
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.05 - 20.02.2011
   ! session error when standard SMF captcha was entered wrong first but notCaptcha was right
   * minor code cleanup
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.06 - 23.02.2011
   ! session problems during registration when some data was entered wrongly
   * improved SMF2 compatibility
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Version 1.06.1 - 23.02.2011
   * updated license information
Version 1.06.2 - 11.03.2011
   + Russian translation Thanks to AERUSUA!
   + Spanish Latin translation Thanks to nicofarina!
Version 1.06.3 - 17.03.2011
   + Italian translation Thanks to caribe1999!
Version 1.06.4 - 03.04.2011
   + French translation Thanks to Ar-S!
Version 1.06.5 - 05.07.2011
   + Czech translation Thanks to sejrac!
   + Serbian (cyrillic) translation Thanks to ZakM!
   + Turkish translation Thanks to Ilkharnos!
   + Danish translation Thanks to schnipper!
   o verified compatibility with SMF 1.1.14 and SMF 2.0

QuoteLegend

oFeature
*Change
+Added
-Eliminated
!Bug Fixed
?How to Update




Author/License
This mod was originally published as a Wordpress plugin by WebJema (http://notcaptcha.webjema.com) and published under the GPL license.
The SMF mod you are seeing right now is published under the LGPL v3 license (with permission of WebJema) and has been ported to SMF by fr3aker.
Title: Re: notCaptcha
Post by: Masterd on February 11, 2011, 01:09:03 PM
Nice mod! :D
Title: Re: notCaptcha
Post by: TheCodfather on February 11, 2011, 03:45:59 PM
loooks very interesting thanks for your work  ill give it a try
Title: Re: notCaptcha
Post by: Apllicmz on February 12, 2011, 02:05:33 AM
Thank you
portuguese_pt
tranalste

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
           
// begin notCaptcha strings translate by candidosa2
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERRO: Captcha sem o plugin: GD n&atilde;o suporta a imagemm ou n&atilde;o &eacute; detectado no PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERRO: Captcha esta sem plugin: nenhuma imagem para criar fun&ccedil;&atilde;o (imagepng/imagejpeg/imagegif) A func&atilde;o n&atilde;o foi detectado em PHP!</p>';

$txt['notcaptcha_form1'] = 'Captcha Completo:';
$txt['notcaptcha_form2'] = 'Coloque esses &iacute;cones<b>vertical</b>';
$txt['notcaptcha_reload'] = 'Actualizar imagens';
$txt['notcaptcha_move_em'] = 'Mova os slides para mudar o &acirc;ngulo das imagens';
$txt['notcaptcha_nojs'] = '<b>ERRO:</b> Voc&ecirc; precisa activar o JavaScript e permitir que tempor&aacute;ria cookies!';

$txt['notcaptcha_error_notdone'] = '<strong>ERRO</strong>: Por favor, complete o Captcha.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERRO</strong>: Voc&ecirc; fez tamb&eacute;m muitas tentativas de introduzir Captcha. Pressione o bot&atilde;o BACK do seu browser, <b>reload images</b> e tente novamente.';
$txt['notcaptcha_error_session'] = '<strong>ERRO</strong>: Sess&atilde;o incorreta Por favor, recarregar a p&aacute;gina  web.';
$txt['notcaptcha_error_fail'] = '<strong>ERRO</strong>: Isso n&atilde;o e captcha esta incorreto.';
]]></add>
        </operation>
    </file>
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 04:24:30 AM
Thanks for the translation!
Title: Re: notCaptcha
Post by: becometa on February 12, 2011, 05:51:03 AM
There's something wrong in the download section, there's no package file?
Or i'm wrong  ???

Soon I will translate it to Polish.
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 05:54:08 AM
I was just updating the package :)

QuoteChangelog:
  o Config is now dynamically generated on install, including a random salt for cookie encryption. This will make cracking much harder for spammers.
  + Portuguese translation Thanks to candidosa2!


There is no need for updating if you have already installed the initial release.


greez fr3aker
Title: Re: notCaptcha
Post by: NanoSector on February 12, 2011, 06:05:18 AM
Allright what is that for stupid image sharing service...can you upload to ImageShack (http://imageshack.us/) please?

Looks like a nice mod though.
Title: Re: notCaptcha
Post by: becometa on February 12, 2011, 06:07:04 AM
Here comes the Polish(UTF8) translation of mod.

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">BŁĄD: plugin notCaptcha: nie wykryto biblioteki GD image w PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">BŁĄD: plugin notCaptcha: brak funkcji tworzenia obrazków (imagepng/imagejpeg/imagegif) w PHP!</p>';

$txt['notcaptcha_form1'] = 'Przejdź przez proces CAPTCHA:';
$txt['notcaptcha_form2'] = 'Ułóż obrazki w <b>pionie</b>';
$txt['notcaptcha_reload'] = 'Przeładuj obrazki';
$txt['notcaptcha_move_em'] = 'Przesuń suwak aby zmienić kąt ustawienia obrazków';
$txt['notcaptcha_nojs'] = '<b>BŁĄD:</b> Musisz włączyć obsługę JavaScript oraz zezwolić na tymczasowe ciasteczka!';

$txt['notcaptcha_error_notdone'] = '<strong>BŁĄD</strong>: Proszę dokończyć dokończyć proces CAPTCHA.';
$txt['notcaptcha_error_toomuch'] = '<strong>BŁĄD</strong>: Wykryto za dużo błędnych prób przejścia przez proces CAPTCHA. Wciśnij przycisk wróć w swojej przeglądarce, a następnie naciśnij przycisk "przeładuj obrazki" i spróbuj ponownie.';
$txt['notcaptcha_error_session'] = '<strong>BŁĄD</strong>: Nieprawidłowa sesja. Proszę odśwież stronę.';
$txt['notcaptcha_error_fail'] = '<strong>BŁĄD</strong>: Błędna CAPTCHA.';
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 06:43:49 AM
it wasnt the image sharing service's fault but mine^^


thanks for the translation, becometa :)
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 08:13:11 AM
Nice mod .. love it .. thanks much 8)

No to see if it wards away bots..
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 08:20:30 AM
Hmm, mod was working .. closed browser .. now the images not loading ....

Error in log..

8: Undefined index: nc_session
File: /home/xxx/public_html/forum/Sources/Register.php
Line: 713


Line 713
if ($_SESSION['nc_session'] != session_id()) {

Any Ideas ?? I installed on 1.1.13
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 08:28:31 AM
deleting temporary cookies and reloading the page will do it. Else, wait for 15 minutes and reload the page then.

I will add an exception handler in the next version for this, thanks for reporting :)
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 08:31:03 AM
Quote from: fr3aker on February 12, 2011, 08:28:31 AM
deleting temporary cookies and reloading the page will do it. Else, wait for 15 minutes and reload the page then.

I will add an exception handler in the next version for this, thanks for reporting :)

Reloading does not work, will wait 15mins and see...

So does this only happen to the individual user ?? and what causes this to happen ? ... If possible can you tell me how to add the exception to fix ?? really don't want the same happening to users trying to register, i see where the error logs will be overloaded..
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 08:39:33 AM
it only happens when you get a new session (eg closing the browser) and visited the register form without registering within 15 minutes.

the bugfix is near to ready (ill just have to test it)
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 08:43:21 AM
Quote from: fr3aker on February 12, 2011, 08:39:33 AM
it only happens when you get a new session (eg closing the browser) and visited the register form without registering within 15 minutes.

the bugfix is near to ready (ill just have to test it)

Ok kool, i eagerly await the fix .. :)
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 09:03:09 AM
O yeah., also .. i have changed this ..

# JPEG quality of NOTCAPTCHA image (bigger is better quality, but larger file (image) size)
$modSettings['notCaptcha']['notcaptcha_jpeg_quality'] = 100;


Is 100 max ?? if i put 200 would quality get any better ??

Also, if possible can you put an admin panel option to disable to mod if needs be .. instead of a full uninstall ...
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 09:10:40 AM
The bug has been fixed and version 1.02 is available to download!


100 is max, php might throw an error if you enter a value above 100. But 70-80 should be fine.

I have currently not planed to implement admin panel options, maybe in some future version.
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 09:25:28 AM
Quote from: fr3aker on February 12, 2011, 09:10:40 AM
The bug has been fixed and version 1.02 is available to download!


100 is max, php might throw an error if you enter a value above 100. But 70-80 should be fine.

I have currently not planed to implement admin panel options, maybe in some future version.

Thanks much, installed and error logs now clean ... :) Will report back if other issue should arise
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 02:50:35 PM
What does this error mean ??

QuoteIncorrect session. Please, reload web-page

Got it after i tried to register,, figuring it has something to do with me being logged into smf via another browser..
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 03:29:21 PM
being logged in with another browser shouldnt matter, i do this all the time at my test installation.

have you already tried getting back, reloading the page (not images, whole page) and register then?
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 03:41:31 PM
Quote from: fr3aker on February 12, 2011, 03:29:21 PM
being logged in with another browser shouldnt matter, i do this all the time at my test installation.

have you already tried getting back, reloading the page (not images, whole page) and register then?

I didn't try that , i used another pc and it registered .. i will try that now and let you know
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 03:43:25 PM
tried again and it worked .. i wonder what caused the error when i got it thou ?
Title: Re: notCaptcha
Post by: fr3aker on February 12, 2011, 03:46:45 PM
such a session error can for example be caused by restarting the browser or waiting too long (so the session times out).
you better do what the error message recommends to do, that would be much less problems ;)
Title: Re: notCaptcha
Post by: aw06 on February 12, 2011, 03:48:55 PM
Think i might rename the error to ..

Your session has timed out. Please, reload this page and re-register

O:)
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 06:32:46 AM
Version 1.03 is out

QuoteVersion 1.03 - 13.02.2011
   ! cookie exception handling
   * some code cleanup
   ? completely reinstall notCaptcha (including your config), backup your custom pictures

if you have applied changes to your config and want to keep it, change the variable name from "$modSettings['notCaptcha']['notcaptcha_imagesize']" to "$modSettings['notCaptcha']['imagesize']"
Title: Re: notCaptcha
Post by: MaXiForum.cz on February 13, 2011, 07:16:28 AM
Really very nice modification :-)
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 08:22:31 AM
Quote from: fr3aker on February 13, 2011, 06:32:46 AM
Version 1.03 is out

QuoteVersion 1.03 - 13.02.2011
   ! cookie exception handling
   * some code cleanup
   ? completely reinstall notCaptcha (including your config), backup your custom pictures

if you have applied changes to your config and want to keep it, change the variable name from "$modSettings['notCaptcha']['notcaptcha_imagesize']" to "$modSettings['notCaptcha']['imagesize']"

Thanks .. Updated..

Did you make any changes for the Modifications.english.php file ??
Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 09:21:46 AM
I tried it for the SMF default theme - core and I don't see the pictures, but I do see the sliders.
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 10:08:56 AM
one new string to the lang file for the 1.03 update:
$txt['notcaptcha_error_cookie'] = '<strong>ERROR</strong>: Cookie not set. Make sure temporary cookies are allowed and try again.';


@ xrunner:

Does the standard SMF captcha work for you, or doesnt i show up either? If no, have a look at my post here: http://www.simplemachines.org/community/index.php?topic=420832.msg2944885#msg2944885 (http://www.simplemachines.org/community/index.php?topic=420832.msg2944885#msg2944885)

Also try accessing the picture directly, it should give an error message.
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 10:37:52 AM
Quote from: fr3aker on February 13, 2011, 10:08:56 AM
one new string to the lang file for the 1.03 update:
$txt['notcaptcha_error_cookie'] = '<strong>ERROR</strong>: Cookie not set. Make sure temporary cookies are allowed and try again.';

Kool., updated 8)
Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 11:08:37 AM
Quote from: fr3aker on February 13, 2011, 10:08:56 AM
Does the standard SMF captcha work for you, or doesnt i show up either?

Yes everything works fine except for the mod. It shows sliders but no pictures.

Quote
Also try accessing the picture directly, it should give an error message.

I do not understand what you are asking.
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 11:49:52 AM
try accessing yourpage/index.php?action=notCaptcha&i=1 and look what error pops up (you need to access the register form right before, else you will get a session error)
Title: Re: notCaptcha
Post by: Mari-chi on February 13, 2011, 11:55:22 AM
:D Great mod! :P I spent the last five minutes doing the notCaptcha image rotation questions. XD

<3!
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 12:01:33 PM
I have had no spam bot hit me as yet ...  8) Plus registration is kinda fun now lol
Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 12:12:31 PM
Quote from: fr3aker on February 13, 2011, 11:49:52 AM
try accessing yourpage/index.php?action=notCaptcha&i=1 and look what error pops up (you need to access the register form right before, else you will get a session error)

"session error"

Here's the test forum I'm using, see for yourself -

http://www.atheistthinktank.net/test/index.php?action=register
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 12:19:40 PM
err, well...

i get redirected to the login page when i try to access the image directly: http://www.atheistthinktank.net/test/index.php?action=notCaptcha&i=2

QuoteOnly registered members are allowed to access this section.
Please login below or register an account with ATT Test Forum.


maybe there is a conflict with some other mod you are using.
Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 12:27:25 PM
"Only registered members are allowed to access this section.
Please login below or register an account with ATT Test Forum."

That only means the boards are not visible to guests!

You mean you can't get to the registration page from here - I can, so I don't understand why you can't -

http://www.atheistthinktank.net/test/index.php
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 12:29:00 PM
i can visit the registration form, but as soon as i try accessing the image-url (as posted above), i get redirected to the login form instead of seeing the image or an error message.
Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 12:32:08 PM
Quote from: fr3aker on February 13, 2011, 12:29:00 PM
i can visit the registration form, but as soon as i try accessing the image-url (as posted above), i get redirected to the login form instead of seeing the image or an error message.

Right - the mod doesn't work, that's what I'm telling you. If I remove the mod there is nothing wrong and the registration works like normal. Yea sure some other mod might be conflicting with it but I would assume you would not want your mod conflicting with other mods. Anyway, I'm just reporting what I see. The images don't appear but the sliders do...
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 12:38:58 PM
ok, i found the problem. This appears whenever you have disabled the option "Allow guests to browse the forum". Im working on a bugfix.

//edit: bugfix:
in index.php change the line
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn'))))
to
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn', 'notCaptcha'))))

this will be included in the next version
Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 12:41:24 PM
Quote from: fr3aker on February 13, 2011, 12:38:58 PM
ok, i found the problem. This appears whenever you have disabled the option "Allow guests to browse the forum". Im working on a bugfix.

Ah! Great. I'm glad I was able to get that info to you! I look forward to trying the mod again.
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 12:48:05 PM
Quote from: fr3aker on February 13, 2011, 12:38:58 PM
ok, i found the problem. This appears whenever you have disabled the option "Allow guests to browse the forum". Im working on a bugfix.

//edit: bugfix:
in index.php change the line
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn'))))
to
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn', 'notCaptcha'))))

this will be included in the next version

Guess i need to make those changes as well ... which index.php file is that..
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 12:49:26 PM
Quote from: xrunner on February 13, 2011, 12:41:24 PM
Quote from: fr3aker on February 13, 2011, 12:38:58 PM
ok, i found the problem. This appears whenever you have disabled the option "Allow guests to browse the forum". Im working on a bugfix.

Ah! Great. I'm glad I was able to get that info to you! I look forward to trying the mod again.

Did you make the change ?? still not seeing the images on your Test Forum..
Title: Re: notCaptcha
Post by: SAW_Cracker on February 13, 2011, 12:51:15 PM
I was getting just a string of the picutes with no sliders so I tried to remove it and now I have an error on my registration page I cant seem to get rid of.


Fatal error: Call to undefined function notCaptcha_AddToRegisterForm() in /home/canesfor/public_html/Sources/Load.php(2172) : eval()'d code on line 378

Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 12:54:29 PM
Quote from: aw06 on February 13, 2011, 12:49:26 PM
Did you make the change ?? still not seeing the images on your Test Forum..

I use the test forum to make sure mods work before placing them on my true forum. Since it appeared that this mod didn't work at all, I went to this thread. Now that it is known to only break when guests are not allowed to view the board (which is only set up on my test forum), I am not worried about it, and will use it on my forums.

So on my test forum I'll probably leave it as it is until the mod is updated.
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 12:56:13 PM
ok kool
Title: Re: notCaptcha
Post by: SAW_Cracker on February 13, 2011, 12:59:47 PM
Can I get some help on removing this mod? I accidently hit delete instead of uninstall and now its really broken :(
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 01:03:42 PM
uploaded the fixed version of this mod, v1.04

QuoteVersion 1.04 - 13.02.2011
   ! fixed no images showing when guests are not allowed to see the forum
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version



@ SAW_Cracker:
sounds like the index.template.php didnt get modified (as described on the mods page)

to remove the error, search in your Register.template.php for the string "notCaptcha_AddToRegisterForm();" and remove the whole notCaptcha code block. I cannot tell you why SMF didnt roll back this action.

SMF creates a backup of your forum before installing a new mod (and even before uninstalling an existing one?). It is placed in Packages/backups. Simply restore the backup and everything should work again :)
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 01:05:06 PM
Quote from: SAW_Cracker on February 13, 2011, 12:59:47 PM
Can I get some help on removing this mod? I accidently hit delete instead of uninstall and now its really broken :(

You will have to manually reverse all the changes the mod did ... what version of smf are you using ??
Title: Re: notCaptcha
Post by: SAW_Cracker on February 13, 2011, 01:09:14 PM
Thank you so much not sure why but the mod didnt work in tinyportal SMF 2.0 RC5 all I got was a straight line of pictures. no slider
Title: Re: notCaptcha
Post by: xrunner on February 13, 2011, 01:11:48 PM
OK, got the latest and it works! Thanks for that!
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 01:12:25 PM
Quote from: fr3aker on February 13, 2011, 01:03:42 PM
uploaded the fixed version of this mod, v1.04

QuoteVersion 1.04 - 13.02.2011
   ! fixed no images showing when guests are not allowed to see the forum
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version

Did you add the changes to the mod site ?? when i select 1.1.13 and parse,. i don't see any additional changes for index.php
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 01:13:44 PM
this normally happens when the css/js code is not included.

there might have been a problem while modifying your index.template.php


@aw06:
check the first change of the index.php, it's a very small one ;)
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 01:16:33 PM
I'm guessing you made the change differently form how you advised here ?

Quote from: fr3aker on February 13, 2011, 12:38:58 PM
ok, i found the problem. This appears whenever you have disabled the option "Allow guests to browse the forum". Im working on a bugfix.

//edit: bugfix:
in index.php change the line
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn'))))
to
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn', 'notCaptcha'))))

this will be included in the next version
Title: Re: notCaptcha
Post by: fr3aker on February 13, 2011, 01:18:48 PM
no, its exactly the same change, but formulated more general

the parser says:
Find:
'activate', 'smstats', 'help', 'verificationcode'
Add After:
, 'notCaptcha'

(for SMF 1.1.x)
Title: Re: notCaptcha
Post by: aw06 on February 13, 2011, 01:23:41 PM
o ok, gotcha ... updated... :)
Title: Re: notCaptcha
Post by: belzerg on February 17, 2011, 04:36:26 AM
"can't open file" message on white screen upon installation. It cannot create a directory somewhere or what is it related to? "test" folder is present in Packages and notCaptcha_v1.04.zip is 777
Title: Re: notCaptcha
Post by: fr3aker on February 17, 2011, 07:38:27 AM
this error appears when the script was unable to write the config file (notcaptcha/notcaptcha_config.php), so there are permission problems with the notcaptcha folder.

To manually generate the config, ste the permissions of the notcaptcha folder at least to 775, extract the file "generate_config.php" from the zip archive, add the line "$boarddir = '.';" at the beginning of this file, upload it to your forum's root directory and run it once. Afterwards you can delete the generate_config.php.

Else you can simply upload the config file manually:
<?php
/*
* Based on myWebNotCaptcha 1.2 for Wordpress
* Created by WebJema 2009
* notcaptcha.webjema.com
*
* Simple Machines Forum(R) modification by fr3aker
*/

if (!defined('SMF'))
die('Hacking attempt...');

# gallery folder
$modSettings['notCaptcha']['notcaptcha_imgdir'] = 'notcaptcha/gallery';

# angles of images, you should not add additional angles
$modSettings['notCaptcha']['notcaptcha_angles'] = array(0, 60, 90, 135, 180, 225, 270, 300);

# NOTCAPTCHA image size (width and height)
$modSettings['notCaptcha']['imagesize'] = 50;

# NOTCAPTCHA colors (RGB, 0-255)
$modSettings['notCaptcha']['notcaptcha_delim_color'] = array(0, 0, 0);

# JPEG quality of NOTCAPTCHA image (bigger is better quality, but larger file (image) size). The maximum value is 100
$modSettings['notCaptcha']['notcaptcha_jpeg_quality'] = 75;

// background color
$modSettings['notCaptcha']['nc_back_r'] = 255;
$modSettings['notCaptcha']['nc_back_g'] = 255;
$modSettings['notCaptcha']['nc_back_b'] = 255;

// add noise dots to images; can be true or false; false=disable
$modSettings['notCaptcha']['nc_addnoise'] = false;

// key to encrypt cookies with, enter something random here
$modSettings['notCaptcha']['nc_cookie_enc'] = 'Some%c0mp3lt1y r4ndom$tufF';

/* end of notcaptcha_config.php */
?>


you should only change the value of $modSettings['notCaptcha']['nc_cookie_enc'] to something unique.
Title: Re: notCaptcha
Post by: labradors on February 18, 2011, 01:08:59 AM
Just downloaded and installed v1.04 of the mod, but with my theme (in which I only changed the colours, so I don't even have a Register.template.php file, but just let the default one be used), I get eight pictures and no sliders.  I do have a few other add-ons installed, but if I switch back to the "SMF Default Theme - Core," I get three pictures and the sliders ARE there.

For what would I need to look to find whatever is causing this problem?

Thank you.
Title: Re: notCaptcha
Post by: fr3aker on February 18, 2011, 01:33:18 AM
sounds like you missed editing your index.template.php file.
Title: Re: notCaptcha
Post by: labradors on February 18, 2011, 10:55:36 AM
Oops!  Had read about that on the original mod page, but by the time I had decided which mod to use and had read through this thread, I had forgotten that part and just used the package installer.

After making the change to index.template.php it worked.

Looks great!
Thank you!
Title: Re: notCaptcha
Post by: Mark H on February 18, 2011, 12:00:19 PM
I have come across some errors in my install.

(But first...Great mod!)

Firstly, my install skipped a number of files in the character sets.  I don't think this matters too much, but just to let you know.

More vitally, if I registered and on registration got the random letters wrong (the standard SMF 2.0 letters) then, when I tried to enter again it came up with ERROR: Incorrect Session.  This seemed to make registration impossible.

I'm using SMF 2.0 RC5 with a Reference theme and PrettyURLs mod.

Thanks,
Mark.

P.S. I've set really simple letters now, which should enable people to get them right straight off, but this is not ideal.
Title: Re: notCaptcha
Post by: aw06 on February 18, 2011, 12:15:24 PM
Still having the issue where the images don't load  :-\
Title: Re: notCaptcha
Post by: fr3aker on February 18, 2011, 04:36:20 PM
@Mark H
thanks for reporting. fixed version will be released soon.

@aw06
can you tell when exactly this happens?
Title: Re: notCaptcha
Post by: VIPER1 on February 18, 2011, 05:04:50 PM
Thank you for this nice addition...It installed flawless in 1.1.13 and have not had a single spambot able to register yet.
Title: Re: notCaptcha
Post by: aw06 on February 18, 2011, 05:39:38 PM
Quote from: fr3aker on February 18, 2011, 04:36:20 PM
@aw06
can you tell when exactly this happens?

On the same basis as before .. just that it does not leave an error in the logs now..
Title: Re: notCaptcha
Post by: apsikus on February 19, 2011, 03:38:51 PM
Hi,

what do I need to change in files to implement it on my own page (I do not use any SMF)?
Is it possible to implemnt it on other sites, or it works only as MOD for SMF?
Title: Re: notCaptcha
Post by: fr3aker on February 20, 2011, 03:27:11 AM
@aw06
this is how php sessions work, not a bug in notCaptcha at all. You need to completely reload the page after reopening your browser.

@apsikus
there is of course a possibility to implement this captcha in some different piece of php software, but the "how" differs from each application. you have the full source code and may do whatever you want as long as you respect the GPL license ;)
notCaptcha also exists as a mod for Wordpress and Drupal, this mod is based on the original one written for WP.
Title: Re: notCaptcha
Post by: Robert. on February 20, 2011, 03:33:44 AM
Very nice modification :D
Title: Re: notCaptcha
Post by: fr3aker on February 20, 2011, 04:05:52 AM
ok, the bug reported by Mark H has now been fixed

btw: several captchas are just annoying the user and extending an uncracked captcha (notCaptcha) with a cracked one (SMF) doesnt improve security at all

QuoteVersion 1.05 - 20.02.2011
   ! session error when standard SMF captcha was entered wrong first but notCaptcha was right
   * minor code cleanup
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version
Title: Re: notCaptcha
Post by: aw06 on February 20, 2011, 07:40:53 AM
Quote from: fr3aker on February 20, 2011, 04:05:52 AM
ok, the bug reported by Mark H has now been fixed

btw: several captchas are just annoying the user and extending an uncracked captcha (notCaptcha) with a cracked one (SMF) doesnt improve security at all

QuoteVersion 1.05 - 20.02.2011
   ! session error when standard SMF captcha was entered wrong first but notCaptcha was right
   * minor code cleanup
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version

Thanks for update .. any new language strings ?? reason i always ask is becasue i have made custom edits to them  :)
Title: Re: notCaptcha
Post by: aw06 on February 20, 2011, 07:45:37 AM
Hmm ,strange, when trying to uninstall i get

./Themes/default/Register.template.php    Test failed

I have changed nothing in that file since the install of this mod

***********

Removed Files manually ... Install Failed as well .. Re-Installed manually .. now working again..
Title: Re: notCaptcha
Post by: fr3aker on February 20, 2011, 07:57:34 AM
maybe you installed other mods in the meantime?

no new lang strings for 1.05 :)
Title: Re: notCaptcha
Post by: aw06 on February 20, 2011, 08:00:25 AM
Quote from: fr3aker on February 20, 2011, 07:57:34 AM
no new lang strings for 1.05 :)

OK kool
Title: Re: notCaptcha
Post by: apsikus on February 20, 2011, 02:37:50 PM
Quote from: fr3aker on February 20, 2011, 03:27:11 AM
@apsikus
there is of course a possibility to implement this captcha in some different piece of php software, but the "how" differs from each application. you have the full source code and may do whatever you want as long as you respect the GPL license ;)
notCaptcha also exists as a mod for Wordpress and Drupal, this mod is based on the original one written for WP.

How to do it correctly?
I'd like to use it for my own php browser game in register.php, and maybe try to use as bot check mechanizm.
Title: Re: notCaptcha
Post by: Arantor on February 20, 2011, 02:44:26 PM
Quote from: fr3aker on February 20, 2011, 03:27:11 AM
@apsikus
there is of course a possibility to implement this captcha in some different piece of php software, but the "how" differs from each application. you have the full source code and may do whatever you want as long as you respect the GPL license ;)
notCaptcha also exists as a mod for Wordpress and Drupal, this mod is based on the original one written for WP.

That's interesting. SMF is not GPL licence compatible.
Title: Re: notCaptcha
Post by: fr3aker on February 20, 2011, 03:46:08 PM
@apsikus
i cant help you with this, you need to figure this out by yourself.

@Arantor
even though SMF is not published under GPL license, a mod may be published under GPL (as this one).
Title: Re: notCaptcha
Post by: Arantor on February 20, 2011, 05:32:10 PM
Quoteeven though SMF is not published under GPL license, a mod may be published under GPL (as this one).

Check the licence again. You can't run GPL code and non GPL code in the same execution, which this seems to be, unless it's dual licensed. - it violates the terms of the GPL to so do in code you're distributing on the basis that you'd have to make SMF GPL compliant and it won't be for the time being on the lack of redistribution clause.

The whole point of the 'same execution' clause is to prevent GPL libraries being embedded into non GPL code, which is what's going on here.

That's why the original Joomla bridge was discontinued, because it was a code bridge, and why only JFusion is currently allowed because it uses only database access which is allowed under the terms of the GPL by virtue of 'access through a common interface'.
Title: Re: notCaptcha
Post by: aw06 on February 20, 2011, 05:46:17 PM
does ^^^^^^^^ have any negative effect on us [People who install the mod] ??
Title: Re: notCaptcha
Post by: Arantor on February 20, 2011, 05:46:55 PM
Quote from: aw06 on February 20, 2011, 05:46:17 PM
does ^^^^^^^^ have any negative effect on us [People who install the mod] ??

Only if the original copyright holder refuses to dual licence the code, really.
Title: Re: notCaptcha
Post by: aw06 on February 20, 2011, 06:00:29 PM
Quote from: Arantor on February 20, 2011, 05:46:55 PM
Quote from: aw06 on February 20, 2011, 05:46:17 PM
does ^^^^^^^^ have any negative effect on us [People who install the mod] ??

Only if the original copyright holder refuses to dual licence the code, really.

So did SMF not check into this before they approved the mod.. and just what problems can arise ??
Title: Re: notCaptcha
Post by: Arantor on February 20, 2011, 06:03:00 PM
Nothing technical, purely legalese. I don't recall the team ever being that picky about mod licensing except the 3 months I was on the Cust. team...

If the mod can't/won't be dual licensed it needs to be rewritten from scratch using no GPL code.
Title: Re: notCaptcha
Post by: aw06 on February 20, 2011, 06:03:56 PM
Quote from: Arantor on February 20, 2011, 06:03:00 PM
Nothing technical, purely legalese. I don't recall the team ever being that picky about mod licensing except the 3 months I was on the Cust. team...

If the mod can't/won't be dual licensed it needs to be rewritten from scratch using no GPL code.

OK ....
Title: Re: notCaptcha
Post by: fr3aker on February 21, 2011, 02:15:49 AM
i am no lawyer but ive got a slightly different interpretation of all this.

notCaptcha is not a part of SMF although it integrates fine. Its more like coding a GPL licensed driver for Windows.

Of course, a court would need to judge about this but all these juridical things have some freedom of interpretation.
Title: Re: notCaptcha
Post by: Arantor on February 21, 2011, 02:50:57 AM
QuoteIts more like coding a GPL licensed driver for Windows.

No it isn't. Windows is defined as system software and has a specific exemption in the GPL for such. SMF is NOT system software (it's not an operating system) and has no such exemptions.
Title: Re: notCaptcha
Post by: fr3aker on February 21, 2011, 07:37:22 AM
ok, i got it now.

so i should try to get the copyright holder's permission to publish this mod for SMF?

btw, thanks for your advice!
Title: Re: notCaptcha
Post by: Arantor on February 21, 2011, 07:38:24 AM
You should try to get the copyright holder's permission to dual licence the code under a less restrictive licence (GPL is not permissive as licences go), such as the BSD licence.
Title: Re: notCaptcha
Post by: kchatz on February 22, 2011, 12:06:52 PM
nice mod.

thanks
Title: Re: notCaptcha
Post by: own3mall on February 23, 2011, 01:53:57 AM
I just wanted to say that this script is awesome.  Thank you so much for your efforts and for sharing this simple addon.
Title: Re: notCaptcha
Post by: own3mall on February 23, 2011, 02:01:52 AM
Quote from: Arantor on February 20, 2011, 02:44:26 PM
Quote from: fr3aker on February 20, 2011, 03:27:11 AM
@apsikus
there is of course a possibility to implement this captcha in some different piece of php software, but the "how" differs from each application. you have the full source code and may do whatever you want as long as you respect the GPL license ;)
notCaptcha also exists as a mod for Wordpress and Drupal, this mod is based on the original one written for WP.

That's interesting. SMF is not GPL licence compatible.

Who cares?  It's because of capitalism and greed that our country is falling apart.  I commend the mod, and hope it's here to stay forever. 
Title: Re: notCaptcha
Post by: own3mall on February 23, 2011, 02:10:08 AM
Also, I'm using version 1.05, but when a user attempts to register, fills out the form incorrectly, and then corrects it, SMF states that it's an invalid session and that the page needs to be reloaded. 

Any chance this can be fixed?  Is this problem even associated with your script?  If the user gets the registration wrong the first time, it would be nice if he doesn't have to go back and refresh the entire registration page after he's fixed his issues.
Title: Re: notCaptcha
Post by: fr3aker on February 23, 2011, 06:39:14 AM
im currently trying to contact the copyright holder but its not that easy to catch him^^


@own3mall
thanks for reporting, bug has been fixed


QuoteVersion 1.06 - 23.02.2011
   ! session problems during registration when some data was entered wrongly
   * improved SMF2 compatibility
   ? backup your notcaptcha_config.php and newly added pictures, uninstall and install the new version

no changes to the lang files
Title: Re: notCaptcha
Post by: Arantor on February 23, 2011, 07:38:43 AM
QuoteWho cares?  It's because of capitalism and greed that our country is falling apart.  I commend the mod, and hope it's here to stay forever.

Who said anything about capitalism? I certainly didn't.

The problem is that SMF is *not free* software. It's no cost, but it's not free in the terms defined by the OSI, which is where the problems come in.
Title: Re: notCaptcha
Post by: fr3aker on February 23, 2011, 02:51:30 PM
i just got the permission of WebJema to publish this addon under LGPL v3, so there are no more license conflicts :)

notCaptcha SMF Mod is now under LGPLv3, not GPLv2 anymore!
Title: Re: notCaptcha
Post by: Arantor on February 23, 2011, 02:52:35 PM
That's awesome to hear :) I certainly have no more complaints here.
Title: Re: notCaptcha
Post by: Masterd on February 23, 2011, 04:31:20 PM
Great news! :D
Title: Re: notCaptcha
Post by: own3mall on February 23, 2011, 10:19:53 PM
Newest version is working perfectly.  Tried all the error checking I could to see if the script would return an error, but it works great!  Loving it!  Thanks for this fix that you uploaded today version 1.06 :)
Title: Re: notCaptcha
Post by: aw06 on February 25, 2011, 04:21:59 PM
Well this mod is nice , but i am getting floods of people complaining about the error..

Cookie not set. Make sure temporary cookies are allowed and try again

Can you not require that ? or can you give us the option to disable it ?? i have to uninstall the mod until this is sorted out
Title: Re: notCaptcha
Post by: fr3aker on February 25, 2011, 05:45:30 PM
i wouldnt use cookies if they were not necessary.

actually sessions should do fine but at least on my testing server i had some mysterious problems with sessions what required me to make use of cookies.


i will review this as soon as i find some time.
Title: Re: notCaptcha
Post by: aw06 on February 25, 2011, 05:48:49 PM
Quote from: fr3aker on February 25, 2011, 05:45:30 PM
i wouldnt use cookies if they were not necessary.

Ok, well can I set the time out period much longer ? and why is it needed ?  :)
Title: Re: notCaptcha
Post by: fr3aker on February 25, 2011, 07:05:35 PM
the timeout is 15 minutes what should be fine.  But you can manually change this by editing the line
$cookie_expire = time() + 900;
in Register.php

the cookies are needed to store the correct answer (irreversible encrypted and manipulation save of course)
Title: Re: notCaptcha
Post by: aw06 on February 25, 2011, 07:15:09 PM
What i think is happening, people browse around on the site for more than 15mins .. then when they go the register they are greeted with the error..

Quote from: fr3aker on February 25, 2011, 07:05:35 PM
the timeout is 15 minutes what should be fine.  But you can manually change this by editing the line
$cookie_expire = time() + 900;
in Register.php

the cookies are needed to store the correct answer (irreversible encrypted and manipulation save of course)

Is there any negative to increasing the time ? i wanna change to 25mins
Title: Re: notCaptcha
Post by: fr3aker on February 25, 2011, 07:21:56 PM
you cat set it to whatever you want. but the cookies are only set on visiting the register page or reloading the nptCaptcha pictures, so this should not be a problem at all.
Title: Re: notCaptcha
Post by: aw06 on February 25, 2011, 07:22:55 PM
OK, adjusted, will monitor it further
Title: Re: notCaptcha
Post by: Dret on February 26, 2011, 07:55:13 AM
I found some problem with cookie when i try to register with this browsers:

Opera
Chrome

Every time an error about cookie disabled even if is not true...

Title: Re: notCaptcha
Post by: aw06 on February 26, 2011, 03:59:20 PM
OK, i think i found the issue i am having .. your mod is conflicting with another mod i have installed ... I have the limit a guest daily pageviews mod http://custom.simplemachines.org/mods/index.php?mod=1290 ... When i enable it and say limit guest to 5 pages views, when they go to register all the notCaptcha Images are broken..
Title: Re: notCaptcha
Post by: fr3aker on February 27, 2011, 09:04:33 AM
@Dret
thanks for reporting, i will check on this.

@aw06
to avoid a conflict, you need to change the line
$temp = array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode');
to
$temp = array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode', 'notCaptcha');
in LimitPageViews.php

this is a problem of your page view limiter plugin ;)
Title: Re: notCaptcha
Post by: aw06 on February 27, 2011, 09:23:21 AM
Quote from: fr3aker on February 27, 2011, 09:04:33 AM
@aw06
to avoid a conflict, you need to change the line
$temp = array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode');
to
$temp = array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode', 'notCaptcha');
in LimitPageViews.php

this is a problem of your page view limiter plugin ;)

Thanks, but i'm using version 2.0 of the mod which does not carry it's own LimitPageViews.php ... any suggestions where to make the adjustments below ??

Load.php
// Start of Limit A Guests Daily PageViews Mod
function LimitAGuestsDailyPageViewsMod()
{
global $txt, $context, $func, $modSettings;

// Sanitize - cast as integer / prevent undefined index - especially after initial install of mod
$modSettings['limited_views'] = empty($modSettings['limited_views']) ? 0 : (int)$modSettings['limited_views'];

// Only if guest access is enabled, and a limit is set, AND the user is a guest
if (empty($modSettings['limited_views']) || !$context['user']['is_guest'])
{
// If a session variable for this exists, its no longer needed.
if(isset($_SESSION['limited_views']))
unset($_SESSION['limited_views']);
return;
}

// Setup the array
if(!isset($_SESSION['limited_views']))
$_SESSION['limited_views'] = array('views' => 1, 'last_view' => time());

// Have viewed pages before
else
{
// Sanitize - cast as integers
$_SESSION['limited_views']['views']++;

// Last view yesterday (done on forum time)
$date  = date('dm', forum_time(null, $_SESSION['limited_views']['last_view']));

// Update the session info. If new day set views to 1, else increase by 1.
// Don't increase if already exceeds the limit (prevents views from getting out of control eg bots/spiders)
$_SESSION['limited_views']['views'] = ($date != date('dm')) ? 1 : ($_SESSION['limited_views']['views'] > $modSettings['limited_views'] ? $modSettings['limited_views'] + 1 : $_SESSION['limited_views']['views']);
//  Set the latest view to now, unless we've reached the limit - we will keep this timestamp until tomorrow.
$_SESSION['limited_views']['last_view'] = $_SESSION['limited_views']['views'] > $modSettings['limited_views'] ? $_SESSION['limited_views']['last_view'] : time();

// Don't be stupid - If they've reached the limit, we must allow them the guest actions of register/login
// Also, note you can add other actions (must be on the action array) here to exempt
$temp = array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode');
if (empty($_REQUEST['action']) || !in_array(strtolower($_REQUEST['action']), $temp))
{
// Fatal error, must register as exceeded no. of page views
if($_SESSION['limited_views']['views'] > $modSettings['limited_views'])
{
// Mr Search Engine, don't index this page (its just an error message)
$context['robot_no_index'] = true;

// Switcharoo on smf language string to set the page title for header and <title> for browser
// Make html safe so doesn't break the forum.
$context['page_title'] = $txt['106'] = strtr($func['htmlspecialchars']($txt['limited_views_title']), array("\r" => '', "\n" => '', "\t" => ''));

fatal_lang_error('limited_views_message', false, array($modSettings['limited_views']));
}
}
// Tidy up
unset($date, $temp);
}

// Prepare and make html safe the remaining string
if (!empty($modSettings['limited_views']) && !empty($_SESSION['limited_views']['views']))
{
$views_remaining = $modSettings['limited_views'] - $_SESSION['limited_views']['views'];
$context['limited_views_remaining'] = strtr(' - '.
$func['htmlspecialchars'](
(0 > $views_remaining ? 0 : ($views_remaining)) .
$txt['limited_views_remaining_' . (1 == $views_remaining ? 'singular' : 'plural')]
),
array(
"\r" => '',
"\n" => '',
"\t" => ''
)
);
if($views_remaining >= 0)
{
// Avoid undefined error
$context['html_headers'] = empty($context['html_headers']) ? '' : $context['html_headers'];

// Now build javascript message (javascript to try to keep the information title out of the search engine)
// Keep on new line (as there maybe extra headers above/below)
// Tabbed out of sync to keep inline with html output
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript"><!-- // -->'.
chr(60) . chr(33) . chr(91) . chr(67) . chr(68) . chr(65) . chr(84) . chr(65) . chr(91).'
document.title = document.title + \''.$context['limited_views_remaining'].'\';
// '.chr(93) . chr(93) . chr(62).'</script>
';
}
}
}


If not there ,,,.. then can you parse version 2.0 for SMF 1.1.13
Title: Re: notCaptcha
Post by: aw06 on February 27, 2011, 09:24:14 AM
Ohh, not to worry, i see it ...  8)

I made the change ,... but it still doesn't work, images not loading  :-[
Title: Re: notCaptcha
Post by: aw06 on February 27, 2011, 09:33:23 AM
OK, got it working ...

Correct change is actually
$temp = array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode', 'notcaptcha');

'notcaptcha'); Common  c and not 'notCaptcha'); Capital C  :)
Title: Re: notCaptcha
Post by: nicofarina on March 10, 2011, 05:55:25 PM
Good work!

Translated to latin spanish:

</file>
<file name="$languagedir/Modifications.espanol_la-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERROR: notCaptcha plugin: No se detecta soporte de PHP para im&aacute;genes GD!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERROR: notCaptcha plugin: No se crea funci&oacute;n de imagen (imagepng/imagejpeg/imagegif)  esta funci&oacute;n no es detectada en PHP!</p>';

$txt['notcaptcha_form1'] = 'Complete el Captcha:';
$txt['notcaptcha_form2'] = 'Por favor coloque los iconos de forma <strong>vertical</strong>';
$txt['notcaptcha_reload'] = 'Recargar im&aacute;genes';
$txt['notcaptcha_move_em'] = 'Mueva los desplazadores para posicionar los iconos de forma <strong>vertical</strong>.';
$txt['notcaptcha_nojs'] = '<b>ERROR:</b> Es necesario activar JavaScript y habilitar las cookies  temporalmente!';

$txt['notcaptcha_error_notdone'] = '<strong>ERROR: </strong>Complete el Captcha.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERROR:</strong> Se han hecho demasiados intentos para ingresar el  Captcha. Presione el bot&oacute;n &quot;Volver atr&aacute;s&quot; de su navegador, <strong>recargue  las im&aacute;genes</strong> e intente nuevamente.';
$txt['notcaptcha_error_session'] = '<strong>ERROR:</strong> Sesi&oacute;n incorrecta. Por favor vuelva a tras y  actualice la p&aacute;gina.';
$txt['notcaptcha_error_cookie'] = '<strong>ERROR:</strong> No se puede setear las Cookies. Aseg&uacute;rese que las  cookies est&eacute;n temporalmente activadas e intente nuevamente.';
$txt['notcaptcha_error_fail'] = '<strong>ERROR:</strong> El Captcha es incorrecto.';
]]></add>
</operation>
</file>
Title: Re: notCaptcha
Post by: nicofarina on March 10, 2011, 06:13:40 PM
Sorry! Is "spanish_latin"  ;)
Title: Re: notCaptcha
Post by: fr3aker on March 11, 2011, 05:41:36 AM
thanks for your translation!

i uploaded a new version, containing a russian and a spanish translation:
QuoteVersion 1.06.2 - 11.03.2011
   + Russian translation Thanks to AERUSUA!
   + Spanish Latin translation Thanks to nicofarina!

it does not contain any additional changes, so updating is not required.
Title: Re: notCaptcha
Post by: caribe1999 on March 15, 2011, 04:20:06 AM
Italian translation:


$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERRORE: notCaptcha plugin: Non &egrave; stata trovata la libreria GD!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERRORE: notCaptcha plugin: Non sono state trovate le funzioni PHP per la creazione delle immagini (imagepng/imagejpeg/imagegif)!</p>';

$txt['notcaptcha_form1'] = 'Risolvi il Captcha:';
$txt['notcaptcha_form2'] = 'Ruota le immagini in modo da posizionarle <b>verticalmente</b>';
$txt['notcaptcha_reload'] = 'Ricarica le immagini';
$txt['notcaptcha_move_em'] = 'Sposta i cursori fino ad avere delle immagini <b>verticali</b>.';
$txt['notcaptcha_nojs'] = '<b>ERRORE:</b> Devi abilitare Javascript e i Cookies!';

$txt['notcaptcha_error_notdone'] = '<strong>ERRORE</strong>: Devi completare il Captcha.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERRORE</strong>: Hai fatto troppi tentativi. Torna indietro e ricarica le immagini per riprovare.';
$txt['notcaptcha_error_session'] = '<strong>ERRORE</strong>: Sessione non valida. Torna indietro e ricarica le immagini.';
$txt['notcaptcha_error_cookie'] = '<strong>ERRORE</strong>: Cookie non abilitato. Assicurati che i cookie temporanei siano abilitati e ritenta.';
$txt['notcaptcha_error_fail'] = '<strong>ERRORE</strong>: Non hai risolto il Captcha.';
Title: Re: notCaptcha
Post by: fr3aker on March 17, 2011, 09:36:27 AM
thanks four your translation! It has been included :)

QuoteVersion 1.06.3 - 17.03.2011
   + Italian translation Thanks to caribe1999!
Title: Re: notCaptcha
Post by: NanoSector on March 17, 2011, 03:51:16 PM
I might translate it to Dutch tomorrow :)
Title: Re: notCaptcha
Post by: MaXiForum.cz on March 19, 2011, 03:15:39 PM
Hello,
is notCaptcha in the quick reply shown too for guest?
Or only on registration page?
Title: Re: notCaptcha
Post by: fr3aker on March 19, 2011, 06:34:48 PM
it is only shown on the registration page. maybe i will add this feature to the next version :)
Title: Re: notCaptcha
Post by: MaXiForum.cz on March 20, 2011, 03:14:59 AM
Quote from: fr3aker on March 19, 2011, 06:34:48 PM
it is only shown on the registration page. maybe i will add this feature to the next version :)

Yop please :-)
Thank you :)
Title: Re: notCaptcha
Post by: Juniore on March 25, 2011, 12:13:49 PM
Hello,

I use SMF the first time and I think that it's the reason for my mistake ;D

I use this great modification, but I have problems with installing "notCaptcha". I have read and I have copied the text, but it don't works.

I edited the files "Register.template.php", "index.template.php", "Register.php", "index.php" and "Modifications.german.php".

Have I forgotten something?

Thank you for help.

PS: Here is the code (The browser can't find the images) & I use the version 2.0
<script language="javascript" type="text/javascript">
//<![CDATA[
document.write('<div style="clear:both;">');
function setCaptchaValue(id, val) {
document.getElementById(id+"Field").value = val/10;
val = -val/10*50 - (val/10);
document.getElementById(id+"Pict").style.left = val + "px";
}

document.write('<div class="captchablock">');
document.write('<div id="imgoneUnit" class="imgunit"><img id="imgonePict" src="http://homepage.de/forum/index.php?action=notCaptcha&i=1" alt="" /></div>');
document.write('<input type="hidden" id="imgoneField" name="imgoneField" value="0" />');

trackbar.getObject('imgone').init({
onMove : function() {
setCaptchaValue('imgone', this.leftValue);
},
dual : false, // two intervals
width : 70, // px
roundUp: 10,
leftLimit : 0, // unit of value
leftValue : 0, // unit of value
rightLimit : 70, // unit of value
rightValue : 70, // unit of value
clearLimits: 1,
clearValues: 1 });

document.write('</div>');

document.write('<div class="captchablock">');
document.write('<div id="imgtwoUnit" class="imgunit"><img id="imgtwoPict" src="http://homepage.de/forum/index.php?action=notCaptcha&i=2" alt="" /></div>');
document.write('<input type="hidden" id="imgtwoField" name="imgtwoField" value="0">');

trackbar.getObject('imgtwo').init({
onMove : function() {
setCaptchaValue('imgtwo', this.leftValue);
},
dual : false, // two intervals
width : 70, // px
roundUp: 10,
leftLimit : 0, // unit of value
leftValue : 0, // unit of value
rightLimit : 70, // unit of value
rightValue : 70, // unit of value
clearLimits: 1,
clearValues: 1 });

document.write('</div>');

document.write('<div class="captchablock">');
document.write('<div id="imgthreeUnit" class="imgunit"><img id="imgthreePict" src="http://homepage.de/forum/index.php?action=notCaptcha&i=3" alt="" /></div>');
document.write('<input type="hidden" id="imgthreeField" name="imgthreeField" value="0">');

trackbar.getObject('imgthree').init({
onMove : function() {
setCaptchaValue('imgthree', this.leftValue);
},
dual : false, // two intervals
width : 70, // px
roundUp: 10,
leftLimit : 0, // unit of value
leftValue : 0, // unit of value
rightLimit : 70, // unit of value
rightValue : 70, // unit of value
clearLimits: 1,
clearValues: 1 });

document.write('</div>');
document.write('</div>');
document.write('<div style="clear:both"><small>Bewege die Schieber um die Bilder zu drehen</small><br />');
document.write('<small><b style="cursor:pointer; padding:2px; border-bottom: 1px dashed" onclick="refresh_security_image()">Bilder neu laden</b></small></div>');
// -->
</script>
Title: Re: notCaptcha
Post by: fr3aker on March 26, 2011, 04:06:10 PM
you missed the index.php file ;)

but why don't you install the addon using SMF's Packet Manager? You don't need to edit anything manually.
Title: Re: notCaptcha
Post by: Ar-S on March 30, 2011, 10:06:44 AM
here is french translation :

<file name="$languagedir/Modifications.french.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERREUR: plugin notCaptcha: Le support des GD image non détecté dans PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERREUR: plugin notCaptcha: aucune fonction de création d\'image (imagepng/imagejpeg/imagegif) la fonction n\'a pas été détectée dans PHP!</p>';

$txt['notcaptcha_form1'] = 'Completez le Captcha:';
$txt['notcaptcha_form2'] = 'Réplacez ces icones <b>verticallement</b>';
$txt['notcaptcha_reload'] = 'Recharger les images';
$txt['notcaptcha_move_em'] = 'Déplacez les barres pour replacer les icones <strong>verticallement</strong>.';
$txt['notcaptcha_nojs'] = '<b>ERREUR:</b> Vous devez activer JavaScript et autoriser temporairement les cookies!';

$txt['notcaptcha_error_notdone'] = '<strong>ERREUR</strong>: Merci de compléter le Captcha.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERREUR</strong>: Vous avez fait trop d\'essais pour valider le Captcha. Pressez le bouton retour de votre navigateur, <b>rechargez les images</b> et essayez à nouveau.';
$txt['notcaptcha_error_session'] = '<strong>ERREUR</strong>: Session incorrecte. Merci de recharger la page.';
$txt['notcaptcha_error_cookie'] = '<strong>ERREUR</strong>: Cookie non valide. Vérifiez que vous avez autorisé les cookies dans votre navigateur.';
$txt['notcaptcha_error_fail'] = '<strong>ERREUR</strong>: Le Captcha est incorrecte.';
]]></add>
</operation>
</file>
Title: Re: notCaptcha
Post by: fr3aker on April 03, 2011, 06:55:14 AM
thanks for translating!

updated the package:
QuoteVersion 1.06.4 - 03.04.2011
   + French translation Thanks to Ar-S!

it does not contain any additional changes, so updating is not required.
Title: Re: notCaptcha
Post by: MaXiForum.cz on April 03, 2011, 12:54:36 PM
Quote from: MaXiForum.cz on March 20, 2011, 03:14:59 AM
Quote from: fr3aker on March 19, 2011, 06:34:48 PM
it is only shown on the registration page. maybe i will add this feature to the next version :)

Yop please :-)
Thank you :)

And will be in the next version?  O:) ;)
Title: Re: notCaptcha
Post by: fr3aker on April 03, 2011, 02:29:06 PM
it's no new version but only a package update ;)

i have this on my to-do list but atm i'm quite busy, sorry.
Title: Re: notCaptcha
Post by: MaXiForum.cz on April 04, 2011, 03:45:59 PM
Quote from: fr3aker on April 03, 2011, 02:29:06 PM
it's no new version but only a package update ;)

i have this on my to-do list but atm i'm quite busy, sorry.

It´s OK :-) ;)
Title: Re: notCaptcha
Post by: shin111 on April 19, 2011, 03:39:53 PM
Shame this didn't work, the slider bar would not show up.

v. 1.1.13, Babylon theme.
Title: Re: notCaptcha
Post by: fr3aker on April 25, 2011, 11:24:20 AM
you need to do the manual edits to the theme. even though babylon is a standard theme, it's not the default theme.
Title: Re: notCaptcha
Post by: mhbell on April 25, 2011, 07:12:00 PM
Great Mod and has stopped 100% of the spam that I was getting. I was getting 30 40 spam bots a day most from the Russian federation. I have not gotten any for 3 days now.
Thank you for this mod.
Mel
:D
Title: Re: notCaptcha
Post by: shin111 on April 26, 2011, 05:23:38 AM
Quote from: fr3aker on April 25, 2011, 11:24:20 AM
you need to do the manual edits to the theme. even though babylon is a standard theme, it's not the default theme.

Thanks, looks like it's working.

Where is the directory for the gallery pictures when you install the package? I'd like to change some.
Title: Re: notCaptcha
Post by: Piteko on April 26, 2011, 01:59:22 PM
Quote from: shin111 on April 26, 2011, 05:23:38 AM
Where is the directory for the gallery pictures when you install the package? I'd like to change some.

/public_html/"your url"/notcaptcha/gallery


First of all, great mod!

I installed it on my SMF forum and it was working ok, but now the images don't appear. Can anyone help me?

Edit:

I think it's because a server PHP update (PHP Version 5.2.17), does anyone know a solution for this?
Title: Re: notCaptcha
Post by: fr3aker on April 27, 2011, 06:59:02 AM
maybe your php has problems with GD after the upgrade. Check if GD is still working or not. Create is php file with content:
<?php phpinfo(); ?>

The GD part should look like this: http://www.plus2net.com/php_tutorial/gd-support.php
Title: Re: notCaptcha
Post by: Piteko on April 27, 2011, 06:16:42 PM
thanks for your reply.

my GD configuration is equal to the one in the link you sent me.
i have installed a "paralel" forum in same server and notcaptcha is working good, so the server is not the problem.
i dont understand.
is this mode incompatible with aevamedia mod?

edit:

i got it! it was a utf8 problem when i installed other mod.
edited the /Themes/default/languages/Modifications.portuguese_pt-utf8.php and now its ok.
thanks
Title: Re: notCaptcha
Post by: teh_Krall on April 28, 2011, 01:00:27 PM
Thank you very, very much for this mod fr3aker! Literally we've gone to having to clear out 20 new registrations a day to ZERO!. I can't tell you how nice it is not to see email after email of 'a new member has joined' only to find out they aren't real at all. 
Title: Re: notCaptcha
Post by: shin111 on April 28, 2011, 02:22:52 PM
Well, it's installed, and now I've added some custom pictures.

They look a little crummier/pixelated resized down to fit the sliders from the 75px height. Is there a set height you can use so they won't be resized?
Title: Re: notCaptcha
Post by: sejrac on April 28, 2011, 05:19:00 PM
Great mod!

Here is as Czech UTF8 translation:


<file name="$languagedir/Modifications.czech-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
     
// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERROR: notCaptcha plugin: PHP GD modul nenalezen!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERROR: notCaptcha plugin: PHP funkce generování obrázků (imagepng/imagejpeg/imagegif) nenalezena!</p>';

$txt['notcaptcha_form1'] = 'Vyřeš vizuální ověření:';
$txt['notcaptcha_form2'] = 'Zobraz tyto ikony ve <b>vertilání</b> poloze';
$txt['notcaptcha_reload'] = 'Vygenerovat jiné ikony';
$txt['notcaptcha_move_em'] = 'Pomocí posuvníků zobraz ikony <strong>vertikálně</strong>.';
$txt['notcaptcha_nojs'] = '<b>ERROR:</b> Musíte povolit JavaScript a dočasné soubory cookie!';

$txt['notcaptcha_error_notdone'] = '<strong>ERROR</strong>: Prosím vyřeš vizuální ověření.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERROR</strong>: Provedli jste příliš mnoho pokusů o vyřešení vizuálního ověření, prosím vraťte se zpět,<b>vygenerujte nové ikony</b> a zkuste to znovu.';
$txt['notcaptcha_error_session'] = '<strong>ERROR</strong>: Nesprávná relace. Prosím, vraťte se a obnovte stránku.';
$txt['notcaptcha_error_cookie'] = '<strong>ERROR</strong>: Cookie nebylo nastaveno. Ujistěte se, že máte povoleny dočasné soubory cookies a zkuste to znovu.';
$txt['notcaptcha_error_fail'] = '<strong>ERROR</strong>: Chybně vyřešené vizuální ověření.';
]]></add>
</operation>
Title: Re: notCaptcha
Post by: fishweb on May 05, 2011, 07:59:30 AM
I installed this package and I can not get back into the admin? It's like it wipped out the username and passwords. How do I get in?
Title: Re: notCaptcha
Post by: DarkBlizz on May 12, 2011, 12:43:12 PM
I dont see how it would wipe out the memberlist :P.  But anyways you could edit your sql tables. go to smf_memberlists find your name and edit your group id to 1.  If you username is not there then add a table with your username, etc.
Title: Re: notCaptcha
Post by: Zanryu on May 13, 2011, 04:45:25 PM
Been having problems with spambot registrations on my board - no real issue with their posting, just the insane amount of members that are just sitting there without a purpose is off putting, as well as unsettling. I found this add-on and both the head administrator and our lead moderator agreed this would probably be our best pick out of the litter.

Only issue now - the sliders don't appear to show up. I'm not sure if it's that I'm using Safari (v5.0.3), the fact that it's the default Babylon theme (1.1), or if this is a recurring issue with SMF 1.1.13, but my board's staff and I would greatly appreciate if you could shed some light on the problem for us, perhaps a quick fix or so.

Also worth mentioning is that the Babylon theme is just a placeholder, but the themes that the staff and I will be redesigning will be based off of the Babylon theme, so knowing that it works would be a big help.

Sorry for such a lengthy post, but I've got a lot of ground that I've got to have covered before I settle on something. xP
Title: Re: notCaptcha
Post by: shin111 on May 15, 2011, 06:12:50 PM
You have to manually edit the Babylon theme for the sliders to show. It's a small edit, and then it works.

I've found I still have spammers getting through even with this, and I've tried a wide range, the clock, the random riddles.

But they only rarely get through with the combo I have now so that it's manageable enough to deal with them, that is, one random riddle, notCaptcha, and a simple question.
Title: Re: notCaptcha
Post by: Zanryu on May 15, 2011, 07:35:30 PM
Quote from: shin111 on May 15, 2011, 06:12:50 PM
You have to manually edit the Babylon theme for the sliders to show. It's a small edit, and then it works.

I've found I still have spammers getting through even with this, and I've tried a wide range, the clock, the random riddles.

But they only rarely get through with the combo I have now so that it's manageable enough to deal with them, that is, one random riddle, notCaptcha, and a simple question.
I see, that was entirely my fault for not reading through the whole thread. :P Many thanks for the heads up, it's working fine now. ^_^
Title: Re: notCaptcha
Post by: leegreaves on May 16, 2011, 06:32:36 AM
Having some problems with it. Installed OK, everything passed pre-install test in package manager. My problem is it does NOT show in replacement of the default anti-spam. I am using smf v2.x RC4 and the "Coal Black" theme, manually edited index.template.php and added the code that needed to be put in there (obviously dont need to manually edit register.template.php as it doesnt exist). Any ideas why this is happening, or could it be that coal black is not compatible with it?
Title: Re: notCaptcha
Post by: leegreaves on May 16, 2011, 06:54:56 AM
Quote from: leegreaves on May 16, 2011, 06:32:36 AM
Having some problems with it. Installed OK, everything passed pre-install test in package manager. My problem is it does NOT show in replacement of the default anti-spam. I am using smf v2.x RC4 and the "Coal Black" theme, manually edited index.template.php and added the code that needed to be put in there (obviously dont need to manually edit register.template.php as it doesnt exist). Any ideas why this is happening, or could it be that coal black is not compatible with it?

OOPS MY bad...it does work, tried registering an account and it was showing up, though had to disable original anti-spam as both were showing up!!!
Title: Re: notCaptcha
Post by: fr3aker on May 17, 2011, 07:26:01 AM
sorry for my late reply, have had no internet access for the last weeks.

@ shin111:
you can change the size for resizing the pictures in the notcaptch_config.php file inside of the notcaptcha folder.

@ sejrac:
thanks for your translation, it will be added soon the package!

@ fishweb:
i can't see any possibility of this interfering with any part of the admin interface, i don't think your problem is related to notcaptcha.

@ shin111:
do you use custom pictures for notcaptcha? i can't imagine a spambot getting through this.

@ leegreaves:
yes, i let the user decide whether to disable the standard anti-spam system of SMF or not, it does not replace or deactivate it. But i recommend deactivating the SMF anti-spam system if notcaptcha is installed  because a spambot getting through notcaptcha most likely has no problem with the SMF standard one at all.



greez fr3aker
Title: Re: notCaptcha
Post by: Biology Forums on May 17, 2011, 06:44:28 PM
Excellent Modification, thanks.

By the way, another negative about this is that touch screen users such as those on iPhones cannot drag the sliders.
Title: Re: notCaptcha
Post by: shin111 on May 18, 2011, 03:55:44 AM
Well, perhaps they're getting through at times when all the sliders randomly default to correct?

In any case looks like I'm going to have to uninstall as I'm getting problems with not all the pictures showing up, getting 'x's missing pictures.

I didn't have this problem with the default images as far as I could tell, but it cropped up with the custom ones, then disappeared, and now it's back. Can't get it to go away this time either.

It's too bad there isn't an on/off switch for this mod so I could troubleshoot it more easily. Future feature?
Title: Re: notCaptcha
Post by: fr3aker on May 18, 2011, 11:27:42 AM
Quote from: shuban on May 17, 2011, 06:44:28 PMBy the way, another negative about this is that touch screen users such as those on iPhones cannot drag the sliders.

Yeah, that's right, i forgot adding it to the "disadvantages" list.

@ shin111:
i plan creating a whole options menu for the admin interface but atm i'm quite busy so i can't tell you when the next feature release will be done.
the case where all pictures are correct by default is handled, this will not let any bot through.

Is it possible that some of your images are damaged or not named properly?
Title: Re: notCaptcha
Post by: shin111 on May 18, 2011, 05:14:03 PM
Well, I tried renaming the images several times, and the problem still cropped up.

Saved them as standard pngs in Paint.NET.

Here they are. (http://www.saintsworks.net/temporary%20documents/notcaptcha%20images.zip)
Title: Re: notCaptcha
Post by: Biology Forums on May 26, 2011, 12:40:54 AM
Can someone tell me why this happens with chrome and not with IE or Firefox?

http://biology-forums.com/index.php?action=register :-\

Things like this really frustrate me, the worst thing is that when I checked this mod installed on another site, it works on Chrome.
Title: Re: notCaptcha
Post by: fr3aker on May 27, 2011, 04:51:44 AM
@shin111:
sorry, i had no time yet to test your images but filenames look valid.

@shuban:
for me everything works fine using chrome (v11). Maybe try flushing your cache.
Title: Re: notCaptcha
Post by: Biology Forums on May 27, 2011, 12:37:11 PM
Quote from: fr3aker on May 27, 2011, 04:51:44 AM
@shin111:
sorry, i had no time yet to test your images but filenames look valid.

@shuban:
for me everything works fine using chrome (v11). Maybe try flushing your cache.

I did and it worked, thanks
Title: Re: notCaptcha
Post by: trailmyx on May 30, 2011, 02:55:18 PM
Wonderful mod.  Totally blocked the influx of spam posters.  Definitely the best one out there.  Thank you for this.
Title: Re: notCaptcha
Post by: hebwx on June 10, 2011, 07:11:52 PM
I know it's been asked before but I'm also getting the problem with the images not showing.
I've installed this on two forums and neither works using IE8 or FF4. I've reloaded the page, deleted the cache and checked that I've added the code to the theme files but still no images.
If I copy the URL from image into a browser I get:
QuoteFatal error: Call to undefined function imagerotate() in /home/users/uks73412/html/stornowayastro.org/forum/Sources/Register.php on line 710

Any help gratefully received.  :D

Title: Re: notCaptcha
Post by: compudza on June 12, 2011, 08:31:49 AM
Quote from: hebwx on June 10, 2011, 07:11:52 PM
If I copy the URL from image into a browser I get:
QuoteFatal error: Call to undefined function imagerotate() in /home/users/uks73412
Any help gratefully received.  :D

I have the same problem.
I add on end nocapthcha_config.php next code:

/* end of notcaptcha_config.php */
if(!function_exists("imagerotate")) {
    function imagerotate($srcImg, $angle, $bgcolor=0, $ignore_transparent = 0) {
        return imagerotateEquivalent($srcImg, $angle, $bgcolor, $ignore_transparent);
    }
}

/*
    Imagerotate replacement. ignore_transparent is work for png images
    Also, have some standard functions for 90, 180 and 270 degrees.
    Rotation is clockwise
*/

function imagerotateEquivalent($srcImg, $angle, $bgcolor, $ignore_transparent = 0) {
if(!function_exists("rotateX"))
{
    function rotateX($x, $y, $theta){
        return $x * cos($theta) - $y * sin($theta);
    }
}
if(!function_exists("rotateY"))
{
    function rotateY($x, $y, $theta){
        return $x * sin($theta) + $y * cos($theta);
    }
}

    $srcw = imagesx($srcImg);
    $srch = imagesy($srcImg);

    //Normalize angle
    $angle %= 360;
    //Set rotate to clockwise
    $angle = -$angle;

    if($angle == 0) {
        if ($ignore_transparent == 0) {
            imagesavealpha($srcImg, true);
        }
        return $srcImg;
    }

    // Convert the angle to radians
    $theta = deg2rad ($angle);

    //Standart case of rotate
    if ( (abs($angle) == 90) || (abs($angle) == 270) ) {
        $width = $srch;
        $height = $srcw;
        if ( ($angle == 90) || ($angle == -270) ) {
            $minX = 0;
            $maxX = $width;
            $minY = -$height+1;
            $maxY = 1;
        } else if ( ($angle == -90) || ($angle == 270) ) {
            $minX = -$width+1;
            $maxX = 1;
            $minY = 0;
            $maxY = $height;
        }
    } else if (abs($angle) === 180) {
        $width = $srcw;
        $height = $srch;
        $minX = -$width+1;
        $maxX = 1;
        $minY = -$height+1;
        $maxY = 1;
    } else {
        // Calculate the width of the destination image.
        $temp = array (rotateX(0, 0, 0-$theta),
        rotateX($srcw, 0, 0-$theta),
        rotateX(0, $srch, 0-$theta),
        rotateX($srcw, $srch, 0-$theta)
        );
        $minX = floor(min($temp));
        $maxX = ceil(max($temp));
        $width = $maxX - $minX;

        // Calculate the height of the destination image.
        $temp = array (rotateY(0, 0, 0-$theta),
        rotateY($srcw, 0, 0-$theta),
        rotateY(0, $srch, 0-$theta),
        rotateY($srcw, $srch, 0-$theta)
        );
        $minY = floor(min($temp));
        $maxY = ceil(max($temp));
        $height = $maxY - $minY;
    }

    $destimg = imagecreatetruecolor($width, $height);
    if ($ignore_transparent == 0) {
        imagefill($destimg, 0, 0, imagecolorallocatealpha($destimg, 255,255, 255, 127));
        imagesavealpha($destimg, true);
    }

    // sets all pixels in the new image
    for($x=$minX; $x<$maxX; $x++) {
        for($y=$minY; $y<$maxY; $y++) {
            // fetch corresponding pixel from the source image
            $srcX = round(rotateX($x, $y, $theta));
            $srcY = round(rotateY($x, $y, $theta));
            if($srcX >= 0 && $srcX < $srcw && $srcY >= 0 && $srcY < $srch) {
                $color = imagecolorat($srcImg, $srcX, $srcY );
            } else {
                $color = $bgcolor;
            }
            imagesetpixel($destimg, $x-$minX, $y-$minY, $color);
        }
    }
    return $destimg;
}


All works!
Title: Re: notCaptcha
Post by: hebwx on June 12, 2011, 11:56:14 AM
Thanks, I'll give that a try.  ;)
Title: Re: notCaptcha
Post by: hebwx on June 12, 2011, 07:26:11 PM
Yep, that mod to the config file worked and I now have 3 forums with notCaptcha working.

Thank you very much.  ;D
Title: Re: notCaptcha
Post by: fasterthanyours on June 12, 2011, 07:38:56 PM
Please hurry with the modification for SMF 2.0 Gold.  I need this something fierce.
Title: Re: notCaptcha
Post by: macfreund on June 13, 2011, 11:23:38 AM
Every hour a new fake-user. notCaptcha installed (SMF 1.1.14). Silence!
Großartig, danke!
Title: Re: notCaptcha
Post by: fasterthanyours on June 13, 2011, 11:26:46 AM
I so need this on my 2.0 Gold site :(
Title: Re: notCaptcha
Post by: [CLS]_SgtMac on June 13, 2011, 01:51:31 PM
Slider bars don't appear on mine, any ideas?

combatlifesavers.us/index.php?action=register
Title: Re: notCaptcha
Post by: [CLS]_SgtMac on June 13, 2011, 02:41:08 PM
Our error log:

QuoteGuest    Today at 02:39:38 PM
68.116.255.50      72b20bacf549d7fbef9d58971a0362db
http://www.combatlifesavers.us/index.php?action=register
8: Undefined index: notcaptcha_nojs
File: /homepages/22/d343705288/htdocs/Sources/not-captcha.php
Line: 201
   
Guest    Today at 02:39:38 PM
68.116.255.50      72b20bacf549d7fbef9d58971a0362db
http://www.combatlifesavers.us/index.php?action=register
8: Undefined index: notcaptcha_reload
File: /homepages/22/d343705288/htdocs/Sources/not-captcha.php
Line: 196
   
Guest    Today at 02:39:38 PM
68.116.255.50      72b20bacf549d7fbef9d58971a0362db
http://www.combatlifesavers.us/index.php?action=register
8: Undefined index: notcaptcha_move_em
File: /homepages/22/d343705288/htdocs/Sources/not-captcha.php
Line: 195
   
Guest    Today at 02:39:38 PM
68.116.255.50      72b20bacf549d7fbef9d58971a0362db
http://www.combatlifesavers.us/index.php?action=register
8: Undefined index: notcaptcha_form2
File: /homepages/22/d343705288/htdocs/Themes/default/languages/TPShout.english.php (eval?)
Line: 187
   
Guest    Today at 02:39:38 PM
68.116.255.50      72b20bacf549d7fbef9d58971a0362db
http://www.combatlifesavers.us/index.php?action=register
8: Undefined index: notcaptcha_form1
File: /homepages/22/d343705288/htdocs/Themes/default/languages/TPShout.english.php (eval?)
Line: 186
Title: Re: notCaptcha
Post by: xpubstargamingx on June 13, 2011, 11:16:22 PM
Awesome work here. I updated my index and register templates and tested this out. Hopefully this gets rid of the bot wave hitting my site up right now. I have tried 3 other mods from SMF for bots and all have let me down. Very excited I have found this mod.
Title: Re: notCaptcha
Post by: Ilkharnos on June 14, 2011, 04:52:23 AM
Hello,

I started to use this mod and I liked it. But my site is in Turkish and I'd like to use this mod in Turkish as well. I would gladly make a translation from English to Turkish if the author allows me to do it. But I don't know where to start.

Regards.
Title: Re: notCaptcha
Post by: ZakM on June 15, 2011, 07:28:05 AM
Hi it's really great extension, thanks.

Here is a traduction for serbian_cyrillic-utf8:


// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ГРЕШКА: notCaptcha додатак: подршка за ГД слике није детектована у PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ГРЕШКА: notCaptcha додатак: ниједна функција за прављење слика није нађена (imagepng/imagejpeg/imagegif) функција није детектована у PHP!</p>';

$txt['notcaptcha_form1'] = 'Решите проблем:';
$txt['notcaptcha_form2'] = 'Поставите слике <b>вертикално</b>';
$txt['notcaptcha_reload'] = 'Учитајте поново слике';
$txt['notcaptcha_move_em'] = 'Померите клизаче како би сте поређали слике <strong>вертикално</strong>.';
$txt['notcaptcha_nojs'] = '<b>ГРЕШКА:</b> Требате да активирате JavaScript и дозволите привремене колачиће(temporary cookies)!';

$txt['notcaptcha_error_notdone'] = '<strong>ГРЕШКА</strong>: Молимо вас решите проблем.';
$txt['notcaptcha_error_toomuch'] = '<strong>ГРЕШКА</strong>: Превише покушаја сте учинили за решавање проблема. Притисните дугме "НАЗАД" вашег претраживача <b>учитајте поново слике</b> и пробајте поново.';
$txt['notcaptcha_error_session'] = '<strong>ГРЕШКА</strong>: Сесија није важећа.Молимо вас вратите се назад и поново учитајте страницу.';
$txt['notcaptcha_error_cookie'] = '<strong>ГРЕШКА</strong>: Колачићи нису постављени. Молимо вас уверите се да су привремени колачићи(temporary cookies) дозвољени и покушајте поново.';
$txt['notcaptcha_error_fail'] = '<strong>ГРЕШКА</strong>: Решење проблема није тачно.';
?>
Title: Re: notCaptcha
Post by: mcb on June 15, 2011, 09:24:16 AM
I uploaded this via the package manager on 1.1.14.  I had noticed in the forum comments that several 1.1.14 users had it install no problems.  The check didn't post any errors and it just seemed to skip the language files.  (Although i didn't look terribly closely.)  This is the first MOD i have ever tried to install. 

I'm not getting any errors but here's my two main questions/problems:
Apologies, but as this is my first mod I don't even know what i'm missing or what questions to ask.

Thanks,
Title: Re: notCaptcha
Post by: mcb on June 15, 2011, 09:58:51 AM
OK, duh i'm not running the default theme of course.  I went back and made the edits to index.template.php (of the theme i'm using.)  And the second edit to the register.template.php and i did get some progress but it is still not working.

I still don't have any access to Notcaptcha settings in the GUI.  I can now see 3 images with their sliders, but there is a duplicate right below the first set.  The first set works, but the sliders on the 2nd set do not work.

Thanks,
Title: Re: notCaptcha
Post by: macfreund on June 15, 2011, 10:08:33 AM
Quote from: mcb on June 15, 2011, 09:58:51 AMI still don't have any access to Notcaptcha settings in the GUI
As far as I know, there is no access per GUI. May be in a later release.
Title: Re: notCaptcha
Post by: mcb on June 15, 2011, 10:11:02 AM
Ahh, i see.  I did take a look at the config file but didn't really see anything to change there.  Anyone have any ideas about the duplicate notcaptcha blocks that are showing up.  Maybe the best way to explain is to show it.

http://forum.hosteng.com/index.php?action=register

The second set below seem to be completely inoperable.  And when i try to register it says complete the captcha.
Title: Re: notCaptcha
Post by: [CLS]_SgtMac on June 15, 2011, 10:25:56 AM
When I changed to the default theme it works fine, seems to be an issue with Helios Multi...
Title: Re: notCaptcha
Post by: mcb on June 15, 2011, 10:43:07 AM
I believe i have found what i did wrong.  We are using a variation of the "Dilber Multicolor" theme.  I did not pay close enough attention to the following; "If you are using a custom theme you need to edit one to two files. (Register.template.php is not included in every template and so does not need to be changed manually)

The theme we are using does not have a register.template.php file so i had gone back and mistakenly (re)edited the default one.  Once i restored the previous register.template.php file it now shows up correctly. 

Apologies for the miss on my part and the superfluous questions.  Hopefully it will help someone avoid my mistake.
Title: Re: notCaptcha
Post by: dougiefresh on June 15, 2011, 02:57:33 PM
Thank you for the wonderful mod!  I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods.  This mod installed without issues and without emulation.  Hope this info helps someone!
Title: Re: notCaptcha
Post by: FataMorgana on June 15, 2011, 03:25:15 PM
Quote from: compudza on June 12, 2011, 08:31:49 AM
I have the same problem.
I add on end nocapthcha_config.php next code:
etc
Had the same problem and found this.
Now images show fine at my forum too!
Thx for sharing this solution.

Any explanation why this is needed for us while many forums didn't need it?
Title: Re: notCaptcha
Post by: Ilkharnos on June 15, 2011, 06:12:30 PM
I have solved my translation problem. You may find Turkish translation below. Thank you for this wonderful mod.

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">HATA: notCaptcha eklentisi: PHP icinde GD resim destegi bulunamadi!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">HATA: notCaptcha eklentisi: PHP icinde resim olusturma fonksiyonu (imagepng/imagejpeg/imagegif) bulunamadi!</p>';

$txt['notcaptcha_form1'] = 'Görsel dogrulamayi tamamlayin:';
$txt['notcaptcha_form2'] = 'Bu ikonlari <b>dikey</b> konuma getirin';
$txt['notcaptcha_reload'] = 'Resimleri tekrar yükleyin';
$txt['notcaptcha_move_em'] = 'Resimleri <strong>dikey</strong> olarak konumlamak icin ibreler ile oynayin.';
$txt['notcaptcha_nojs'] = '<b>HATA:</b> JavaScript\'i aktif hale getirmeli ve cerezlere izin vermelisiniz!';

$txt['notcaptcha_error_notdone'] = '<strong>HATA</strong>: Lütfen görsel dogrulamayi tamamlayin.';
$txt['notcaptcha_error_toomuch'] = '<strong>HATA</strong>: Görsel dogrulama için çok fazla deneme yaptiniz. Lütfen tarayicinizin GERI tusuna basin, <b>resimleri tekrar yükleyin</b> ve tekrar deneyin.';
$txt['notcaptcha_error_session'] = '<strong>HATA</strong>: Gecersiz oturum. Lütfen geri gidin ve sayfayi yenileyin.';
$txt['notcaptcha_error_cookie'] = '<strong>HATA</strong>: Cerez ayarlanmadi. Lütfen cerezlere izin verildiginden emin olun.';
$txt['notcaptcha_error_fail'] = '<strong>HATA</strong>: Görsel dogrulama yanlis girildi.';
Title: Re: notCaptcha
Post by: Cool_Runnings on June 15, 2011, 08:18:06 PM
I'm getting this error on the registration page where the sliders and images should be:

ERROR: notCaptcha plugin: no image create function (imagepng/imagejpeg/imagegif) function not detected in PHP!

Do I need to upgrade php?
Title: Re: notCaptcha
Post by: macfreund on June 16, 2011, 06:06:07 PM
As I mentioned before (http://www.simplemachines.org/community/index.php?topic=421525.msg3072798#msg3072798) notCaptcha installed fine with SMF 1.1.14 and an "old" Mercury Theme.
Now I tried to install notCaptcha to another Forum with SMF 2.0 Final. Works fine with Default Theme Curve, but not with a Copy of it. See attachment.

To disable original captcha go to Security & Moderation -> Anti-Spam
Title: Re: notCaptcha
Post by: claysports on June 20, 2011, 11:21:51 AM
// begin notCaptcha strings $txt['notcaptcha_gd_not_enabled'] = '
I am using a slightly modified verision of Classic YaBB SE Theme w/ SMF 1.1.14.  I added the code you supplied to the index template. I attempted to install notCaptcha and am getting this error message at the top of all pages of the forum. Any help would be MUCH appreciated.  Thanks for your time.

ERROR: notCaptcha plugin: GD image support not detected in PHP!
'; $txt['notcaptcha_jpegpnggif'] = '

ERROR: notCaptcha plugin: no image create function (imagepng/imagejpeg/imagegif) function not detected in PHP!
'; $txt['notcaptcha_form1'] = 'Complete the Captcha:'; $txt['notcaptcha_form2'] = 'Place these icons vertically'; $txt['notcaptcha_reload'] = 'Reload images'; $txt['notcaptcha_move_em'] = 'Move the sliders to arrange the icons vertically.'; $txt['notcaptcha_nojs'] = 'ERROR: You need to enable JavaScript and allow temporary cookies!'; $txt['notcaptcha_error_notdone'] = 'ERROR: Please complete the Captcha.'; $txt['notcaptcha_error_toomuch'] = 'ERROR: You have made too many attempts to enter Captcha. Press your browser\'s back button, reload images and try again.'; $txt['notcaptcha_error_session'] = 'ERROR: Incorrect session. Please go back and reload the page.'; $txt['notcaptcha_error_cookie'] = 'ERROR: Cookie not set. Make sure temporary cookies are allowed and try again.'; $txt['notcaptcha_error_fail'] = 'ERROR: That Captcha was incorrect.';
Title: Re: notCaptcha
Post by: hebwx on June 20, 2011, 07:29:43 PM
I think that first error is indicating that your server doesn't support GD image library in PHP.
The only way around this is to speak to your host or server admin and ask them to install it.

Others may have a work-around or solution but I think that's correct.
Title: Re: notCaptcha
Post by: schnipper on June 24, 2011, 04:12:41 AM
Here is a translation to danish.

Thanks for a great and efficient mod.

Title: Re: notCaptcha
Post by: dotch on June 26, 2011, 09:34:42 AM
I installed it in my SMF 1.1.14 forum trough the package manager. The language files were skipped, but no errors. It seems to work great.

Like many others I was having about 15 to 20 spammers  a day trying to register for several weeks now. They where blocked by the Stop Spammer Mod (which uses the Stop Fourum Spam Data base) , but it was still a lot of work to ban them one by one and to delete their accounts.

I'm hopefull notCaptcha works. Great Job, thanks!
Title: Re: notCaptcha
Post by: own3mall on July 01, 2011, 01:00:22 PM
Can someone else confirm that it works fine on 1.1.14?  Any updates coming soon to be fully compatible with 1.1.14?
Title: Re: notCaptcha
Post by: CapnK on July 02, 2011, 05:59:50 PM
Hello, all. Many THANKS! to fr3aker for this Mod - it seems to be working beautifully. Installed yesterday evening, SMF 1.1.14, YaBB theme, it worked great with the default images. They must be magic, or something, because...

Today I went to create custom .png's, and for some reason just could absolutely not get the 'filename_10x75.png' I created from the template (using GIMP) to render properly. Sometimes an image of 3 would show, sometimes with black squares where the others should be, sometimes just empty spaces. I tried the additional code added to 'notcaptcha_config' (by compudza, see page 8 (http://www.simplemachines.org/community/index.php?topic=421525.msg3070837#msg3070837) of this thread), and that did not work either. By looking at my SMF error logs in the Admin control panel, I could see the issue was that for some reason the server was not finding the secondary and tertiary imagery.

What eventually did work for me, and that others might find just as easy to do from the start if making custom icons,  was to break out the individual small icons from the larger .png, making them into 75x75 pixel standalone .png files (named like so: 1_1x75.png, 2_1x75.png, 3_1x75.png), then uploading them to the notcaptcha gallery directory on my SMF installation on the server. After that, it has been working like a charm.

Hope this helps someone else who runs into the same problem.

Thanks again, fr3aker! And to the other contributors of this Mod, and to SMF in general, while I'm at it.  ;D
Title: Re: notCaptcha
Post by: fr3aker on July 05, 2011, 03:15:17 PM
for everyone getting the "no image create function (imagepng/imagejpeg/imagegif) function not detected in PHP!" error:
your PHP does not support image manipulation through the PHP-GD library. You need to either update your php (or install the library) or ask your hoster to do so. In general the following rule applys: If the standard SMF captcha shows up notCaptcha should do so, too. If the standard SMF captcha does not show up notCaptcha will most likely not show up either.

@macfreund:
If you apply the modifications to all available themes it should work fine. Else you need to apply the changes to your theme(s) manually as described on the mod's page.

@CapnK:
yes, it's a bit tricky to create correct picture slides. Thanks for posting your failsafe method :)



thanks for your translations, guys! They finally have been included :)

QuoteVersion 1.06.5 - 05.07.2011
   + Czech translation Thanks to sejrac!
   + Serbian (cyrillic) translation Thanks to ZakM!
   + Turkish translation Thanks to Ilkharnos!
   + Danish translation Thanks to schnipper!
   o verified compatibility with SMF 1.1.14 and SMF 2.0

it does not contain any additional changes but the lang files, so updating is not required.
Title: Re: notCaptcha
Post by: Nitemare_real on July 05, 2011, 05:01:12 PM
Nice mod, good work!
After installation, I had to create my language file (Spanish) although it was supposed that Spanish language was supported, but translation has been very easy.
Title: Re: notCaptcha
Post by: fr3aker on July 05, 2011, 05:34:32 PM
currently there is only a translation available for Spanish_latin. I assume you are using Spanish_es. Feel free to share your translation (or does it not differ in any way?) :)
Title: Re: notCaptcha
Post by: mmeb on July 06, 2011, 12:28:02 PM
Hi, this sounds so great, but...

I only get sliders but no images?

I use 1.1.14, the classic standard theme that doesn't have the register template file.

I don't know what more info I should add...

http://inedahl.com/hsf/index.php?action=register
Title: Re: notCaptcha
Post by: fr3aker on July 06, 2011, 01:21:18 PM
There is some problem on your server (probably with php). The server responds with a 500 Internal Server Error. Check your logs.
Title: Re: notCaptcha
Post by: SrunDMC on July 07, 2011, 02:04:59 AM
I just installed this on my SMF 1.14 forum and the spammers have appeared to stop  8) Much thanks for that!

While it works great on the registration page, I was wondering if anyone could confirm whether or not there are supposed to be any additional form fields on the Admin -> Registration -> Settings page. I don't see anything new on there, but looking at the code that was added to Register.template.php, it seems like there should be some options on there.

Thanks again!
Title: Re: notCaptcha
Post by: ddonzal on July 07, 2011, 11:30:12 PM
Hey All,

I'm using SMF 1.1.14. I installed notCaptcha via the package manager. I get 1 set of images of varying angles but no sliders. I'm using the SMF Default Theme.

Just for kicks, I took a look at the manual install instructions and looked in the files that were midified. It seems like the package manager install made all changes to the files, moved the included file "not-captcha.php" to "./Sources", moved the included directory "notcaptcha" to "the root directory" & notcaptcha_config.php exists in /nocaptcha.

Not sure what else to check. Any thoughts?

Thanks in advance.
Title: Re: notCaptcha
Post by: CapnK on July 13, 2011, 08:19:10 AM
@ddonzal - just a thought:

Did you make the edits to either your 'index.template.php', or your 'register.template.php', as indicated on the Mod page (http://custom.simplemachines.org/mods/index.php?mod=2932)?

@fr3aker - Glad to help if I can. The Mod has been working like a charm! :) Owe you a cold frosty brew. Or 6. ;)
Title: Re: notCaptcha
Post by: Fletcher on July 18, 2011, 12:31:52 PM
I installed this about a month ago, and went from ~12 spambot registrations a day to 0.  You ROCK!

However, I've gotten 2 spambot registrations in the last couple of days now.  :(  I am, however, using the default images, so I'm pretty sure that they've started checking for those.  I'm going to put in custom images tonight and hopefully that will stop them cold.

Mostly I just wanted to give a heads up that some @*^%(@^&*@#s have managed to bypass this with the default pics.
Title: Re: notCaptcha
Post by: Kimmen on July 18, 2011, 06:40:58 PM
I am using this mod, today i have got 3 spambots in some hours. Its the first day i experience it.
Title: Re: notCaptcha
Post by: fr3aker on July 21, 2011, 03:30:56 PM
@ Fletcher: can you give feedback whether there are still registrations when using custom pics? I personally have not seen any spambot on my forum until now (using custom pics).

I expected some spambot coder testing for the standard pics and exploiting this. The standard pics can never provide the security of custom pics.


greez fr3aker
Title: Re: notCaptcha
Post by: ddonzal on July 21, 2011, 04:19:59 PM
Keep in mind that some spammers register but don't post immediately. Look at the registration date of the spammers that posted after you installed notCaptcha. I'd be willing to bet that their reg date was before the install.

I'd be interested to know if anyone spams after the install date. Now that would be cause for concern.

Let us know,
Don
Title: Re: notCaptcha
Post by: Fletcher on July 21, 2011, 08:45:49 PM
Quote from: ddonzal on July 21, 2011, 04:19:59 PM
I'd be willing to bet that their reg date was before the install.

You'd lose that bet.  :)  They definitely registered after the mod was installed.  New members need to be approved on my forum, so they never got a chance to post.

I haven't had any registrations since I changed the pictures, but I'm not at all happy with my custom pics.  The icons I found don't seem to scale very well, and turn out to not have as easily identifiable "up" as I'd like.  But I've been too lazy to fix that....

Title: Re: notCaptcha
Post by: ddonzal on July 21, 2011, 11:41:14 PM
Not the first time I lost a bet, and I'm sure oit won't b the last.

I just noticed the reg date when I first put the mod into effect.

Don
Title: Re: notCaptcha
Post by: fr3aker on July 22, 2011, 09:46:14 AM
When firing up a search at you favorite search engine for "free icon pack" you get loads of nice pictures to be used with notCaptcha.


greez fr3aker
Title: Re: notCaptcha
Post by: MoskmaN on July 22, 2011, 01:16:03 PM
i have the same problem , the images dont show, i tried put one image per .png , and have the same problem.

http://www.expresoanime.com.ar/foro/index.php?action=register

http://www.expresoanime.com.ar/foro/index.php?action=notCaptcha&i=2
Fatal error: Call to undefined function imagerotate()

here a alternative to imagerotate() function
http://stackoverflow.com/questions/5406771/problems-with-imagerotate-in-php
Title: Re: notCaptcha
Post by: fr3aker on July 23, 2011, 07:17:03 AM
normally the function should be part of GD. Here is a solution to this problem:
http://www.simplemachines.org/community/index.php?topic=421525.msg3070837#msg3070837


greez fr3aker
Title: Re: notCaptcha
Post by: MoskmaN on July 25, 2011, 11:42:16 AM
Quote from: fr3aker on July 23, 2011, 07:17:03 AM
normally the function should be part of GD. Here is a solution to this problem:
http://www.simplemachines.org/community/index.php?topic=421525.msg3070837#msg3070837


greez fr3aker

Thanx! that works!
Title: Re: notCaptcha
Post by: kinwolf on July 26, 2011, 08:57:11 AM
Spammers started getting through also on our forums.  Anyone got a link to some icon pack that can be used to replace the defautl images?  I started doing a search but all the interesting one lead to dead links so far.  If I find one I'll post it here too.
Title: Re: notCaptcha
Post by: nelliott500 on July 26, 2011, 12:54:08 PM
Quote from: kinwolf on July 26, 2011, 08:57:11 AM
Spammers started getting through also on our forums.  Anyone got a link to some icon pack that can be used to replace the defautl images?  I started doing a search but all the interesting one lead to dead links so far.  If I find one I'll post it here too.

I'm having the same issue on my forum. Over the past week, we've had quite a few garbage registrations.

I made my own custom images, named the file appropriately, dumped it into the 'notcaptcha/galleries' directory with the others. However, I wanted to get rid of all of the other images because they're obviously being figured out by bots at this point. If I move any of the old icon sets out of the galleries directory, I start to get blanks showing up as images, as you can see below.

(http://i.imgur.com/3VeDo.png)

Any fix for this? I don't see why it would be trying to read from image files that don't exist.
Title: Re: notCaptcha
Post by: kinwolf on July 26, 2011, 01:12:32 PM
For those interested, finally got many nice icons from iconspedia, in the process of adding them.
Title: Re: notCaptcha
Post by: Robert. on July 26, 2011, 01:32:23 PM
Nice mod :)
Dutch translation:
// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">FOUT: notCaptcha plugin: GD ondersteuning niet gevonden!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">FOUT: notCaptcha plugin: de functie om afbeeldingen aan te maken ontbreekt!</p>';

$txt['notcaptcha_form1'] = 'Los de captcha op:';
$txt['notcaptcha_form2'] = 'Plaats deze iconen <b>verticaal</b>';
$txt['notcaptcha_reload'] = 'Herlaad afbeeldingen';
$txt['notcaptcha_move_em'] = 'Verplaats de pijlen om de afbeeldingen te draaien <strong>verticaal</strong>.';
$txt['notcaptcha_nojs'] = '<b>FOUT:</b> Je moet javascript inschakelen en cookies toestaan om deze functie te kunnen gebruiken!';

$txt['notcaptcha_error_notdone'] = '<strong>FOUT</strong>: Los alsjeblieft de captcha op.';
$txt['notcaptcha_error_toomuch'] = '<strong>FOUT</strong>: Je hebt te vaak geprobeerd de captcha op te lossen. Probeer het alsjeblieft opnieuw.';
$txt['notcaptcha_error_session'] = '<strong>FOUT</strong>: Incorrecte sessie. Ga alsjeblieft terug en herlaad de pagina.';
$txt['notcaptcha_error_cookie'] = '<strong>FOUT</strong>: Cookie is niet ingesteld. Wees er zeker van dat je browser cookies toestaat en probeer opnieuw.';
$txt['notcaptcha_error_fail'] = '<strong>FOUT</strong>: De captcha is incorrect.';
Title: Re: notCaptcha
Post by: CrankyOldguy on July 27, 2011, 12:11:15 AM
It's been working for me flawlessly since I installed it after they cracked reCaptcha in January.  It's kept the junk registrations to ZERO until about a week ago when apparently there was an update to Xrumer (the Russki spam tool).  We've had 10-15 try to register in the last week plus; luckily the StopForumSpam tool caught all but one.

I replaced the default galleries with my own creations over the weekend, and it seems to have stopped again.  I *did* notice some black pix when I'd only had about 3 or 4 new galleries uploaded, but it went away at some point after 5 or 6 replacement galleries.  I'm now at (9) 10x75 galleries and haven't gotten the "black image" again.  Looks like there's an error in the randomization routine if the number of images isn't high enough.

And no, I'm *not* going to hand out my new galleries.  That kind of voids the usefulness of having images that aren't published >HERE<, since the Russian coders are quite apparently surfing the mods database to crack our forums.  It's not worth their time to try to crack the images on our forums alone. ;)

In addition, I also have a HUGE "deny from" list in our .htaccess that blocks all of Russia, Ukraine, Latvia, Turkey, Romania and China.  That stops another 15 or so per day.  I'm also DENYing all of the server farms anywhere on the planet that I catch.  That's about half of the DENY FROM list.

UPDATE: it's been 3 weeks since I replaced all of the original galleries, and we've had no 'bots register since then.
Title: Re: notCaptcha
Post by: klarbooks on July 27, 2011, 07:25:53 AM
notCaptcha was working fine for me but I've had an onslaught of spam registrations in the last 36 hours.

I made my own new set of pictures but it took so long to make one set that I tried some other approaches. Finally I settled on just changing the names of all the existing pics. Seems to have worked so far but we'll see what happens in the next 24-48 hours.
Title: Re: notCaptcha
Post by: kinwolf on July 27, 2011, 08:09:43 AM
Well, I made 3 new sets of images and also left the old one, that was not enough, I got 2 that passed through during the night, so I did what klarbooks did and renamed the old sets too to see if it helps.  If not, I guess I'll have to make 5-6 more new sets and delete all the old ones.
Title: Re: notCaptcha
Post by: nelliott500 on July 27, 2011, 08:48:55 AM
So, is there a minimum requirement on number of icon sets?
Title: Re: notCaptcha
Post by: fasterthanyours on July 27, 2011, 09:43:19 AM
OMG I'm getting so many bots now.  I'm getting tired of blocking fake IPs lol

What do we do?!?!?!
Title: Re: notCaptcha
Post by: nelliott500 on July 27, 2011, 11:18:49 AM
Quote from: fasterthanyours on July 27, 2011, 09:43:19 AM
OMG I'm getting so many bots now.  I'm getting tired of blocking fake IPs lol

What do we do?!?!?!

Please read even just the replies on the current page where you posted. Try custom images. The Readme for this mod even states that custom images will make it much more difficult for spammers to register.
Title: Re: notCaptcha
Post by: De Kus on July 27, 2011, 12:26:18 PM
Our forum was also rescued by notCaptcha. We made our own set of images themed for our audiance. We had like 20-30 spam registrations per day before and are down to zero for 6 days now.

This idea is really awesome and stands some chance that actuall people will have to solve the puzzle, so own images is the key. But in the end adding new or replacing them with new images will again render all bot profiles useless. Also most boards are probably not popular enough to lure the script0rs attention to make a profile for these boards.
Title: Re: notCaptcha
Post by: kinwolf on July 27, 2011, 02:01:09 PM
Well, I finally created 8 new set of images and put them in place removed the old one.  At first I had created 3 new set to replace 3 of the default sets but that wasn't enough.  So now all the defautls are gone and replaced by new sets.  Hopefully that will stop the spam registration(that were at least caught by Stop Spammer)
Title: Re: notCaptcha
Post by: becometa on July 27, 2011, 02:07:46 PM
There's some problem on SEO Pro Mod and the notCaptcha, i hope that you - developers of mods - NIBOGO and fr3aker - can repair it :)

- pictures are not showing up
Title: Re: notCaptcha
Post by: fasterthanyours on July 27, 2011, 04:40:59 PM
I download the file to create the new set, but I'm really not sure what I need to be doing with it.

Is there a better set of instructions some where?
Title: Re: notCaptcha
Post by: klarbooks on July 27, 2011, 10:28:39 PM
There were still some spammers getting through so I made 3 new sets of pictures with new names. I went into site/forum/notcaptcha/gallery, removed all the original pics and replaced them with the new sets. After a bit of settling in the pictures are usually showing up fine and all spam regos have stopped.
Title: Re: notCaptcha
Post by: cyb3rwulf on July 29, 2011, 08:25:12 AM
Hi there  :laugh:

I've found a bug which allows spambot users to register to the board without solving the notCaptcha! In my opinion, this cause the problem of registering bots to the board even though the picture sets were changed.

The randomizer allows that notCaptcha is already solved, when it starts. All shown pictures are in the right position. There must be a detection (or something like this) that prevents it.  ;)

Cheerio

-cyb3rwulf
Title: Re: notCaptcha
Post by: dotch on July 30, 2011, 05:25:59 PM
about 10 spambots registering per day since 4 days, before that almost zero ... :(
Title: Re: notCaptcha
Post by: macfreund on July 31, 2011, 02:08:03 AM
About a week ago I noticed increasing spambots. At last one per hour. Then I changed slightly the pictures of the default gallery, e.g. mirroring horizontal. Since 4 days not one spambot registration.
Title: Re: notCaptcha
Post by: cyb3rwulf on July 31, 2011, 11:01:13 AM
Quote from: macfreund on July 31, 2011, 02:08:03 AM
About a week ago I noticed increasing spambots. At last one per hour. Then I changed slightly the pictures of the default gallery, e.g. mirroring horizontal. Since 4 days not one spambot registration.

I'll give it a try :)
Title: Re: notCaptcha
Post by: xpubstargamingx on August 03, 2011, 10:46:03 AM
I have went from 0 bots to 240 pending registrations since Sunday. What has happened to this mod?
Title: Re: notCaptcha
Post by: tyra on August 06, 2011, 07:52:07 AM
How to uninstall this ?
After 1 delete lines in register and index template file it still wants says after registration i didnt pass because of i didnt pass that verification.
Uninstalling fails in register and index template files.
Title: Re: notCaptcha
Post by: Biology Forums on August 06, 2011, 11:45:37 AM
Quote from: tyra on August 06, 2011, 07:52:07 AM
How to uninstall this ?
After 1 delete lines in register and index template file it still wants says after registration i didnt pass because of i didnt pass that verification.
Uninstalling fails in register and index template files.

Why are you uninstalling, just curious.
Title: Re: notCaptcha
Post by: teh_Krall on August 06, 2011, 05:25:49 PM
Quote from: xpubstargamingx on August 03, 2011, 10:46:03 AM
I have went from 0 bots to 240 pending registrations since Sunday. What has happened to this mod?

As others have said it looks like spammers figured out the default pictures. We have the same problem now so I'm going to check out about how to make our own pictures because when this mod is working it is wicked good :)
Title: Re: notCaptcha
Post by: hamsterdaddy on August 15, 2011, 03:55:26 PM
For some of you going a few pages back, that basically said: "What's wrong with this mod, it was working great for a month, now spammers are getting in?"

It's not the mod. it's the enemy. And no, the enemy is not ordinary spammers, it's well organized groups a bit like the Mafia who work together, and share (for profit) ways to beat us at protecting our sites.

The idea behind this script and the script itself is amazingly simple, yet brilliant.

However, the real brains behind the international spam operation are getting help from humans, then re-programming the software  of the spam bots.

Not to worry, the creator of this software is working on new solutions as we speak, I have talked with him. For now, go back a few pages & read the comments on replacing the images with new ones. I have to do it as well, the software failed about 6 weeks after install because the default images were "cracked" by the enemy.

For now, I have a "Quick Fix" that stopped them dead again 6 days ago, it took 5 minutes, I found it by accident.

If  you can get inside your server, go to the NotCaptcha software file, go inside, read your way down. There will be a place to enable random noise, do that. It seems like I changed a "false" to "true", it was that easy.

If you have a way to do that, then do. The registrations stopped dead 6 days ago. I don't know how long it will work, but it works for now.

Good luck guys, but remember the fight is never over, it just slows down at times.

I'll be back when I come up with something new; I just got involved in having to "repair" my mod.

For those of you who just installed it, keep coming back here and likely you can keep it working.
Title: Re: notCaptcha
Post by: Martingonnella on August 17, 2011, 10:33:36 AM
Hello,

I just woke up this morning, went on my forum and found it like this..See the screenshot. I can't remember touching any code and I've checked where I can as I'm not exactly the best at code. I've tried uninstalling and reinstalling your amod, but no luck. Any Ideas?

Thank you!

Martin
Title: Re: notCaptcha
Post by: hamsterdaddy on August 18, 2011, 07:54:10 PM
@Martingonnella, my first thought was that it looked like the original images that the default picture library was linked to had somehow been deleted or moved. That would explain it.

However I logged out, pulled up my register screen and all my Not Captcha images were in fact intact, so the picture data is secure if they are externally linked.

There is however another explanation that would be benign, your browser is perhaps glitched. If your browser is IE  it is even more possible. Have you done any updates just before this showed up?

I did an IE update last year that created a major glitch with SMF registration. It went away after the next IE update.

Here's the test: Use someone else's computer, try to register at your site. If your Not Captcha is Ok, then it's your computer's browser, and nothing is wrong with Not Captcha.
Title: Re: notCaptcha
Post by: Martingonnella on August 18, 2011, 07:58:53 PM
Hi,

Thanks for your reply.

I tried it on FireFox and it does the same thing. See if does it on your computer. Go to http://www.bbs.protonic.com and click register?

Let me know.. Thanks
Title: Re: notCaptcha
Post by: Martingonnella on August 19, 2011, 08:48:47 PM
Hi,

I tired it on 2 Desktop and 1 Laptop in my house and business and it does the same thing. I've Uninstalle the MOD completely and Re-installed it. This is the wierd thing.

Any help?
Title: Re: notCaptcha
Post by: hamsterdaddy on August 20, 2011, 04:39:32 PM
@Martingonnella You must have it disabled now, I just went to register & it was gone. The only thing there is recaptcha, but it is of a type without even background noise. It won't be very effective I think.

You may need to find a mod where you can install custom questions, like the name of the first black USA president, etc..

Ha ha, a good one: Name of president who "diddled" Monica Lewenski
Title: Re: notCaptcha
Post by: hamsterdaddy on August 20, 2011, 04:44:25 PM
By the way, for all of you who the mod has stopped working for, try the Quick Fix I explained above on this page.

It's still keeping the bots out, about 2 weeks after I did it.

It appears that changing the picture library is not needed after all with this fix. If they get past my fix in the future, I'll come back and report it.

We can work on a new fix then.
Title: Re: notCaptcha
Post by: furnitureman on August 23, 2011, 01:23:39 PM
I love this mod but I'm getting 60 spammers a day getting through it. The latest Xrumer http://xrumer-palladium.blogspot.com/ (http://xrumer-palladium.blogspot.com/) even has a similar looking captcha it claims to have broken. How can I increase the security? Is another Image possible?
Thanks
Title: Re: notCaptcha
Post by: macfreund on August 23, 2011, 04:38:46 PM
Since I changed the pictures described here:
http://www.simplemachines.org/community/index.php?topic=421525.msg3123561#msg3123561 (http://www.simplemachines.org/community/index.php?topic=421525.msg3123561#msg3123561)
I had only 1 spambot which came through.
Title: Re: notCaptcha multiple 'Complete the Captcha' !
Post by: ohdearie54 on August 24, 2011, 11:27:52 AM
Hi, I have a massive problem with spam bots so tried to use this on a non standard theme. It didnt appear to work at first for some reason so i uninstalled and reinstalled it a few times and now the 'Complete the Captcha' is shown 3 times on the registration page as shown below. As you can not rotate the other 2 copies of it you can not register.

http://www.everythingselectric.com/images/notCaptcha-multipleregistrations.jpg
(tried to get the post to show images but not sure how you do it)

http://www.everythingselectric.com/forum/index.php?action=register
This is the url that will show you the live version of the multiple notCaptcha issue

Now if i uninstall notCaptcha i get this error message that you can see in the image below and the registration page does not show the info where you agree to become a member. So now no one can register :(

Fatal error: Call to undefined function notCaptcha_AddToRegisterForm() in /home/electri5/public_html/everythingselectric.com/forum/Sources/Load.php(1733) : eval()'d code on line 165

http://www.everythingselectric.com/images/electricuniversetheoryforum-notCaptcha-uninstallerror.jpg
(tried to get the post to show images but not sure how you do it)


I try to resolve issues like this myself but I just do not know what to do with this particular problem ... any help or suggestions appreciated. This actually happened a couple of months ago and I have tried to sort it out but can not. Its also not helped the forum which was not that busy in the first place as its very niche ...

Title: Re: notCaptcha
Post by: thamias on September 02, 2011, 09:40:13 PM
Norwegian translation by: Mathias Kristensen

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">Feil: notCaptcha plugin: GD bildestøtte ikke oppdaget i PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">Feil: notCaptcha plugin: ingen bilde funksjon (imagepng/imagejpeg/imagegif) funksjon ikke oppdaget i PHP!</p>';

$txt['notcaptcha_form1'] = 'Fullfør Captchaen:';
$txt['notcaptcha_form2'] = 'Plaser disse ikonene <b>vertikalt</b>';
$txt['notcaptcha_reload'] = 'Last inn bilder på nytt';
$txt['notcaptcha_move_em'] = 'Flytt gliderne for å snu på ikonene <strong>vertikalt</strong>.';
$txt['notcaptcha_nojs'] = '<b>ERROR:</b> Du må aktivere java og cookies';

$txt['notcaptcha_error_notdone'] = '<strong>ERROR</strong>: Vennligst fullfør captchaen.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERROR</strong>: Du har brukt for mange forsøk, trykk tilbake på din nettleser, <b>reload images</b> og prøv igjen.';
$txt['notcaptcha_error_session'] = '<strong>ERROR</strong>: Feil på sessjon , last inn siden på nytt.';
$txt['notcaptcha_error_cookie'] = '<strong>ERROR</strong>: Cookie ikke aktivert, sjekk innstillingene.';
$txt['notcaptcha_error_fail'] = '<strong>ERROR</strong>: Denne captchaen var feil.';
Title: Re: notCaptcha
Post by: Jessica. on September 18, 2011, 01:38:16 PM
Where are the settings for this?
Title: Re: notCaptcha
Post by: powaserv on September 18, 2011, 03:16:42 PM
Hello,

thank you for this change that works very well.
I had the problem of bots known for images, I change the images and voila!
Super! simple and effective, I still Felicitas designer!

I still have a question.
Is it possible to have the choice for where to put the notcaptcha.
When a guest makes a search request is a notcaptcha is that of smf.
I would prefer to have this change in place, and this modification on the other as "contact "......

Thank you in advance for your help and followed your change
Title: Re: notCaptcha
Post by: sight|i|picture on November 09, 2011, 10:50:40 PM
couldn't get this to work on the default theme with 2.0.1 (is there something I need to do?)
Title: Re: notCaptcha
Post by: AgainstBelief on December 23, 2011, 06:19:14 PM
For whatever reason, when I upload my own images, the captcha will only load the first image, leaving the other two blank.

I'm at a loss as to why it would do that.
Title: Re: notCaptcha
Post by: macfreund on December 23, 2011, 06:30:26 PM
I guess you have to upload a minimum of 3 (three) files of your own images.
Title: Re: notCaptcha
Post by: MaXiForum.cz on December 29, 2011, 10:51:13 AM
Quote from: MaXiForum.cz on March 20, 2011, 03:14:59 AM
Quote from: fr3aker on March 19, 2011, 06:34:48 PM
it is only shown on the registration page. maybe i will add this feature to the next version :)

Yop please :-)
Thank you :)

And now?
Title: Re: notCaptcha
Post by: knights_bridge on December 31, 2011, 06:57:25 AM
Can anyone tell me where the text "Place these icons vertically" is located - I can't for the life of me find it.  I have a cunning plan to ask the person registering to spin the images upside down, and then I will just rotate the existing images in the .png files, saving me the effort of finding new icons
Title: Re: notCaptcha
Post by: macfreund on December 31, 2011, 08:00:16 AM
It ist in notCaptcha_v1.06/language.xml line 32 and 55.
Title: Re: notCaptcha
Post by: ohdearie54 on January 06, 2012, 08:35:05 AM
i tried to use notCaptcha and then when testing another thing uninstalled and reinstalled it. now on the register page (http://www.everythingselectric.com/forum/index.php?action=register) there are 3 notCaptcha lines so no one can register as you can not move the other 2

I can not remove notCaptcha either as i get an error message.

Does anyone know what i need to do to get of the extra 2 notCaptcha lines? Not sure if this is a notCaptcha issue as such. I have looked at the register.php and notcaptcha_config and not-captcha pages but i dont have a clue why this is happening and know only basic html.

If anyone can help it would be most appreciated.

PM if you need more info as i dont want to clog up the thread

Title: Re: notCaptcha
Post by: PopUpSteve on March 02, 2012, 03:16:01 PM
Been using notCaptcha since June or 2011 and it has worked great. But, I just did an upgrade and it blow-out the Register.php. So I uninstalled notCaptcha, loaded a backup of the Register.php to get that working again (the uninstall did not fix the Register.php). Now when I load notCaptcha I get two notCaptcha lines in the registration. The uninstall works so my site can still except new members but I really need to get notCaptcha  loaded again.
Title: Re: notCaptcha
Post by: joelstoner on March 14, 2012, 03:43:16 AM
Will this work on smf 2.0.2? If not will it be updated for it soon?
Title: Re: notCaptcha
Post by: macfreund on March 14, 2012, 04:08:12 AM
Yes, it works on smf 2.0.2!
Title: Re: notCaptcha
Post by: thebetelgeuse on March 23, 2012, 08:35:29 PM
Hi,
does this work on smf 1.1.15?
I tried to install and only this is visualized:

Title: Re: notCaptcha
Post by: macfreund on March 24, 2012, 03:09:08 AM
On one of my forums it works with smf 1.1.16!
Title: Re: notCaptcha
Post by: NanoSector on March 24, 2012, 06:01:55 AM
Quote from: thebetelgeuse on March 23, 2012, 08:35:29 PM
Hi,
does this work on smf 1.1.15?
I tried to install and only this is visualized:
Do what it says.

EDIT: Dutch translation.

<file name="$languagedir/Modifications.dutch.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">FOUT: notCaptcha plugin: GD image ondersteuning niet gedetecteerd in PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">FOUT: notCaptcha plugin: geen functie om afbeeldingen te maken (imagepng/imagejpeg/imagegif) gedetecteerd in PHP!</p>';

$txt['notcaptcha_form1'] = 'Los de Captcha op:';
$txt['notcaptcha_form2'] = 'Plaats deze iconen <b>verticaal</b>';
$txt['notcaptcha_reload'] = 'Iconen herladen';
$txt['notcaptcha_move_em'] = 'Beweeg de sliders om de iconen <strong>verticaal</strong> te plaatsen.';
$txt['notcaptcha_nojs'] = '<b>FOUT:</b> Je moet JavaScript aanzetten en tijdelijke cookies toestaan!';

$txt['notcaptcha_error_notdone'] = '<strong>FOUT</strong>: Los de Captcha op.';
$txt['notcaptcha_error_toomuch'] = '<strong>FOUT</strong>: Je hebt de Captcha te vaak foutief ingevuld. Druk op de Terug knop van je browser, <b>herlaad de iconen</b> en probeer het nogmaals.';
$txt['notcaptcha_error_session'] = '<strong>FOUT</strong>: Foutieve sessie. Ga terug en herlaad de pagina.';
$txt['notcaptcha_error_cookie'] = '<strong>FOUT</strong>: De cookie was niet gemaakt. Ben a.u.b. zeker dat tijdelijke cookies toegestaan zijn en probeer het opnieuw.';
$txt['notcaptcha_error_fail'] = '<strong>FOUT</strong>: Die Captcha was foutief.';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.dutch-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">FOUT: notCaptcha plugin: GD image ondersteuning niet gedetecteerd in PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">FOUT: notCaptcha plugin: geen functie om afbeeldingen te maken (imagepng/imagejpeg/imagegif) gedetecteerd in PHP!</p>';

$txt['notcaptcha_form1'] = 'Los de Captcha op:';
$txt['notcaptcha_form2'] = 'Plaats deze iconen <b>verticaal</b>';
$txt['notcaptcha_reload'] = 'Iconen herladen';
$txt['notcaptcha_move_em'] = 'Beweeg de sliders om de iconen <strong>verticaal</strong> te plaatsen.';
$txt['notcaptcha_nojs'] = '<b>FOUT:</b> Je moet JavaScript aanzetten en tijdelijke cookies toestaan!';

$txt['notcaptcha_error_notdone'] = '<strong>FOUT</strong>: Los de Captcha op.';
$txt['notcaptcha_error_toomuch'] = '<strong>FOUT</strong>: Je hebt de Captcha te vaak foutief ingevuld. Druk op de Terug knop van je browser, <b>herlaad de iconen</b> en probeer het nogmaals.';
$txt['notcaptcha_error_session'] = '<strong>FOUT</strong>: Foutieve sessie. Ga terug en herlaad de pagina.';
$txt['notcaptcha_error_cookie'] = '<strong>FOUT</strong>: De cookie was niet gemaakt. Ben a.u.b. zeker dat tijdelijke cookies toegestaan zijn en probeer het opnieuw.';
$txt['notcaptcha_error_fail'] = '<strong>FOUT</strong>: Die Captcha was foutief.';
]]></add>
</operation>
</file>
Title: Re: notCaptcha
Post by: bestfriendavinash on April 15, 2012, 10:22:14 AM
seems to be working perfectly with my SMF 2.0.2

good work
Title: Re: notCaptcha
Post by: Tux_Rules on July 17, 2012, 07:45:25 AM
So, is there something missing, or is there nothing in the admin control panel for configuration?
Title: Re: notCaptcha
Post by: macfreund on July 17, 2012, 01:34:38 PM
There is nothing to configure in the admin panel. Just deactivate the normal captcha.
Title: Re: notCaptcha
Post by: Tux_Rules on July 18, 2012, 01:49:32 AM
Quote from: macfreund on July 17, 2012, 01:34:38 PM
There is nothing to configure in the admin panel. Just deactivate the normal captcha.

Perfect, Thanks.  8)  :)
Title: Re: notCaptcha
Post by: Tux_Rules on July 18, 2012, 02:06:16 AM
Sooo, it doesn't seem to work...had it for a day, even enabled the "noise" option in the config file, and still had a dozen signups....*sigh*..moveing on to the next one, which I suppose is the clock one:

http://custom.simplemachines.org/mods/index.php?mod=1134

Title: Re: notCaptcha
Post by: macfreund on July 18, 2012, 03:30:02 AM
You have to change the pictures with your own ones. That is important, because the spam bots meanwhile "know" the standard gallery.
Title: Re: notCaptcha
Post by: Tux_Rules on July 18, 2012, 06:17:55 AM
Quote from: macfreund on July 18, 2012, 03:30:02 AM
You have to change the pictures with your own ones. That is important, because the spam bots meanwhile "know" the standard gallery.

I see, Thanks. I will try the clock MOD and if that doesn't work, I will re-install this with different pics and see if it then will stop them.
Title: Re: notCaptcha
Post by: Tux_Rules on July 24, 2012, 04:12:10 AM
Well, so far the Captcha Clock seems to be doing it's job...
Title: Re: notCaptcha
Post by: RCPlanes on October 07, 2012, 11:08:16 AM
I installed the mod a day or two ago, and have gone from 60 some spammers per day to ZERO!  THANK YOU!!!

I also uploaded unique images, and enlarged them in the notcaptcha_config.php, but the mod does not space the sliders/images further apart for the larger images, so they are stacked on top of each other.  I have the resizing set so that they are still solveable, but it would be much easier for humans if the images were a little larger.  Is there any way to space the sliders/images a bit further apart?

Thank you for this great mod!!!
Title: Re: notCaptcha
Post by: navarretemarce on November 07, 2012, 09:17:53 AM
Guys i cannot get the mod working

i get this error

Fatal error: Call to undefined function imagerotate() in /......../forum/Sources/Register.php on line 972

I was searching the "imagerotate" function across all the files and phrases and i am not able to find it.

Any help?
Title: Re: notCaptcha
Post by: Shambles on November 07, 2012, 09:44:16 AM
Have a look at reply #151 in this same thread...

http://www.simplemachines.org/community/index.php?topic=421525.msg3070837#msg3070837
Title: Re: notCaptcha
Post by: hamsterdaddy on November 19, 2012, 02:20:08 PM
Guys, this software cannot be beaten by a bot, that is if you change the pics. The Russian X-rumer mob "broke" the original default images, they shared the files with other spammers and their software can defeat it. The spammers have support forums like we do, and they update their spam software to defeat things like captcha's.

It's not much trouble to upload new ones one at a time and delete the old ones, do it. I haven't had a bot get past my custom images in a year now since I changed the pics, and 99% of spam is delivered by bots. Blocking the bots mean your registration load is much lighter and you can run those IP's, email accounts and usernames through a spammer database.

Before I got this software I had to manually run every registrant's IP, email account and username though a spammer database, then ban them before they got a chance to post any spam.

This software eliminates that, except for the rare human spammer who registers. I can honestly say that I never had to remove a single spam post since my site has been up in the entire 2 years.
Title: Re: notCaptcha
Post by: PopUpSteve on November 19, 2012, 02:37:01 PM
100% agree hamsterdaddy  ;D
Title: Re: notCaptcha
Post by: Adrek on November 23, 2012, 09:59:15 AM
Can someone help me with creating config file?

I'm trying to install this mod on server where i cannot run package manager, so i have to add code in files manually - this is not my problem. Problem is when i have to genberate config file..

All I'm getting is error in browser:


Warning: fopen(/notcaptcha/notcaptcha_config.php) [function.fopen]: failed to open stream: No such file or directory in /home/xxx/domains/xxx.info/public_html/forum/generate_config.php on line 55
failed to create config file. Please copy this code into notcaptcha/notcaptcha_config.php (you will need to create it!)


5>4ňĘ3ßP(FÎyůjhóP°űô8˛6{0SAZmz q6wâ;úZ´ícôäL'; /* end of notcaptcha_config.php */ ?>


I created this file with CHMOD 777, generate_config.php is also 777.

I really need to install this mod, so if you have any idea how to create this config file please share it here.
Title: Re: notCaptcha
Post by: hamsterdaddy on November 28, 2012, 10:39:16 AM
@ phantomm: I am by no means an expert or support qualified but I have learned a bit in 2 years . I think the problem is simpler than you think.

You merely need an empty file to start with, "I think"...

* Open a new Microsoft Notepad.
* Name it notcaptcha/notcaptcha_config.php exactly as shown.
* Paste this (from your error) into the body of the notepad:  5>4ňĘ3ßP(FÎyůjhóP°űô8˛6{0SAZmz q6wâ;úZ´ícôäL'; /* end of notcaptcha_config.php */ ?>
* Save it.
* Upload it into the notcaptcha file/folder in the server.

1) It's worth a try and I think that's how it's done.
2) An old saying: "You can't break what doesn't work"
3) You can always delete/remove it later.

If someone see's I'm wrong, please leave a message for myself and phantomm.
Title: Re: notCaptcha
Post by: brynn on July 16, 2013, 11:58:22 AM
Hi Friends,
I apologize if this has been asked/answered before, but reading entirely through this 14 page topic is a bit overwhelming, lol.

I've just installed this mod on SMF 2.04.  Before adding the extra code, I switched to the default theme (Curve), to see how it works.  But I couldn't find any controls for it.  So I thought maybe I had misunderstood the part where it said it should work in the default theme without the extra code.  So then I added the code, as instructed, to index.template.php (although I noticed that that bit of code was already there).  If I understand the instructions, that's all I should need to do.  Is that correct?

I still can't find any controls for it.  Shouldn't there be some way to change the group of images, and some way to add new images?  And whatever other controls or options there might be?

Have I not installed it correctly?

Thanks for your help  :)
Title: Re: notCaptcha
Post by: Omebolle on September 26, 2013, 05:08:58 AM
Got this above my logo in my browser after installing the mod, no warnings after installing though?
Title: Re: notCaptcha
Post by: Arantor on September 26, 2013, 10:30:56 AM
Looks like you have another mod that may have damaged your Modifications.english.php file. Look in Themes/default/languages/Modifications.english.php, for a rogue ?> entry - it should be the last thing in the file.
Title: Re: notCaptcha
Post by: Omebolle on September 26, 2013, 11:22:50 AM
Thanks for the reply, I'm a rookie but wanting to learn.
Seems the Bad Behaviour mod already made an entry there in the Modifications.english.php file.
But there's a second one too (see picture below), tried deleting the second Modifications.english.php installed again and got the same problem. The second one is produced when I install the notcapcha mod.


I also have a are U Human Mod. Maybe they conflict? This is the text in the first Mod.engl.php
<?php
// Version: 2.0 RC5; Modifications

// Bad Behavior Start
$txt['permissionname_badbehavior_goodgroup'] = 'Bad Behavior Whitelist Group';
$txt['permissionhelp_badbehavior_goodgroup'] = 'This option will make a member group exempt from all Bad Behavior tests.';
// Bad Behavior End
$txt['spoiler_post'] = 'Spoiler';

// Are You Human?
$txt['are_you_human_q1'] = 'Are You Human?';
$txt['are_you_human_q2'] = 'Are You Bot?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_answers'][0] = 'Yes';
$txt['are_you_human_answers'][1] = 'No';
$txt['are_you_human_answers'][2] = 'I don\'t know';
$txt['are_you_human_answers'][3] = 'Maybe';
$txt['are_you_human_answers'][4] = 'I think...';
$txt['are_you_human_answers'][5] = 'Waits';
$txt['are_you_human_answers'][6] = 'Hmm'; // You can add more Answers for confused the bots

$txt['are_you_human_expired'] = 'This page has expired. Please restart the <a href="' . $scripturl . '?action=register;">registration page</a>.';
$txt['are_you_human_fail'] = 'Please confirm that you are human in order to proceed with registration.<br />
Bots are not allowed to register.'
;

$txt['are_you_human_s'] = 'Enable MOD Are You Human';
$txt['are_you_human_q'] = 'Select the Question';
$txt['are_you_human_a'] = 'Order Rand the Answers';
$txt['are_you_human_q_0'] = 'Are You Human?';
$txt['are_you_human_q_1'] = 'Are You Bot?';
$txt['are_you_human_q_2'] = 'Random Question';?>


And this is in the second php, produced when installing the captcha mod
<?php
// Version: 2.0 RC5; Modifications

// Bad Behavior Start
$txt['permissionname_badbehavior_goodgroup'] = 'Bad Behavior Whitelist Group';
$txt['permissionhelp_badbehavior_goodgroup'] = 'This option will make a member group exempt from all Bad Behavior tests.';
// Bad Behavior End
$txt['spoiler_post'] = 'Spoiler';

// Are You Human?
$txt['are_you_human_q1'] = 'Are You Human?';
$txt['are_you_human_q2'] = 'Are You Bot?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_answers'][0] = 'Yes';
$txt['are_you_human_answers'][1] = 'No';
$txt['are_you_human_answers'][2] = 'I don\'t know';
$txt['are_you_human_answers'][3] = 'Maybe';
$txt['are_you_human_answers'][4] = 'I think...';
$txt['are_you_human_answers'][5] = 'Waits';
$txt['are_you_human_answers'][6] = 'Hmm'; // You can add more Answers for confused the bots

$txt['are_you_human_expired'] = 'This page has expired. Please restart the <a href="' . $scripturl . '?action=register;">registration page</a>.';
$txt['are_you_human_fail'] = 'Please confirm that you are human in order to proceed with registration.<br />
Bots are not allowed to register.'
;

$txt['are_you_human_s'] = 'Enable MOD Are You Human';
$txt['are_you_human_q'] = 'Select the Question';
$txt['are_you_human_a'] = 'Order Rand the Answers';
$txt['are_you_human_q_0'] = 'Are You Human?';
$txt['are_you_human_q_1'] = 'Are You Bot?';
$txt['are_you_human_q_2'] = 'Random Question';?>

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERROR: notCaptcha plugin: GD image support not detected in PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERROR: notCaptcha plugin: no image create function (imagepng/imagejpeg/imagegif) function not detected in PHP!</p>';

$txt['notcaptcha_form1'] = 'Complete the Captcha:';
$txt['notcaptcha_form2'] = 'Place these icons <b>vertically</b>';
$txt['notcaptcha_reload'] = 'Reload images';
$txt['notcaptcha_move_em'] = 'Move the sliders to arrange the icons <strong>vertically</strong>.';
$txt['notcaptcha_nojs'] = '<b>ERROR:</b> You need to enable JavaScript and allow temporary cookies!';

$txt['notcaptcha_error_notdone'] = '<strong>ERROR</strong>: Please complete the Captcha.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERROR</strong>: You have made too many attempts to enter Captcha. Press your browser\'s back button, <b>reload images</b> and try again.';
$txt['notcaptcha_error_session'] = '<strong>ERROR</strong>: Incorrect session. Please go back and reload the page.';
$txt['notcaptcha_error_cookie'] = '<strong>ERROR</strong>: Cookie not set. Make sure temporary cookies are allowed and try again.';
$txt['notcaptcha_error_fail'] = '<strong>ERROR</strong>: That Captcha was incorrect.';

Title: Re: notCaptcha
Post by: Arantor on September 26, 2013, 11:38:33 AM
Yes, exactly as expected (and indeed a mod that is infamous for it)

As you can see, at the end of the stuff added by the Are You Human mod, is a ?>

When the notCaptcha stuff gets added too, it's added *after* that ?> because of the Are You Human mod breaking things.

There should only be one ?> in the file and it should be the very end of the file.

In other words it should be:
<?php
// Version: 2.0 RC5; Modifications

// Bad Behavior Start
$txt['permissionname_badbehavior_goodgroup'] = 'Bad Behavior Whitelist Group';
$txt['permissionhelp_badbehavior_goodgroup'] = 'This option will make a member group exempt from all Bad Behavior tests.';
// Bad Behavior End
$txt['spoiler_post'] = 'Spoiler';

// Are You Human?
$txt['are_you_human_q1'] = 'Are You Human?';
$txt['are_you_human_q2'] = 'Are You Bot?';
$txt['are_you_human_desc'] = 'Another Anti-Bot Measure';
$txt['are_you_human_answers'][0] = 'Yes';
$txt['are_you_human_answers'][1] = 'No';
$txt['are_you_human_answers'][2] = 'I don\'t know';
$txt['are_you_human_answers'][3] = 'Maybe';
$txt['are_you_human_answers'][4] = 'I think...';
$txt['are_you_human_answers'][5] = 'Waits';
$txt['are_you_human_answers'][6] = 'Hmm'; // You can add more Answers for confused the bots

$txt['are_you_human_expired'] = 'This page has expired. Please restart the <a href="' . $scripturl . '?action=register;">registration page</a>.';
$txt['are_you_human_fail'] = 'Please confirm that you are human in order to proceed with registration.<br />
Bots are not allowed to register.'
;

$txt['are_you_human_s'] = 'Enable MOD Are You Human';
$txt['are_you_human_q'] = 'Select the Question';
$txt['are_you_human_a'] = 'Order Rand the Answers';
$txt['are_you_human_q_0'] = 'Are You Human?';
$txt['are_you_human_q_1'] = 'Are You Bot?';
$txt['are_you_human_q_2'] = 'Random Question';

// begin notCaptcha strings
$txt['notcaptcha_gd_not_enabled'] = '<p style="color:maroon">ERROR: notCaptcha plugin: GD image support not detected in PHP!</p>';
$txt['notcaptcha_jpegpnggif'] = '<p style="color:maroon">ERROR: notCaptcha plugin: no image create function (imagepng/imagejpeg/imagegif) function not detected in PHP!</p>';

$txt['notcaptcha_form1'] = 'Complete the Captcha:';
$txt['notcaptcha_form2'] = 'Place these icons <b>vertically</b>';
$txt['notcaptcha_reload'] = 'Reload images';
$txt['notcaptcha_move_em'] = 'Move the sliders to arrange the icons <strong>vertically</strong>.';
$txt['notcaptcha_nojs'] = '<b>ERROR:</b> You need to enable JavaScript and allow temporary cookies!';

$txt['notcaptcha_error_notdone'] = '<strong>ERROR</strong>: Please complete the Captcha.';
$txt['notcaptcha_error_toomuch'] = '<strong>ERROR</strong>: You have made too many attempts to enter Captcha. Press your browser\'s back button, <b>reload images</b> and try again.';
$txt['notcaptcha_error_session'] = '<strong>ERROR</strong>: Incorrect session. Please go back and reload the page.';
$txt['notcaptcha_error_cookie'] = '<strong>ERROR</strong>: Cookie not set. Make sure temporary cookies are allowed and try again.';
$txt['notcaptcha_error_fail'] = '<strong>ERROR</strong>: That Captcha was incorrect.';
?>
Title: Re: notCaptcha
Post by: Omebolle on September 28, 2013, 05:11:51 AM
Thanks Arantor, finally got it. Seems there was another Mod. english ~ php file. I deleted all the Mod. english files, made a fresh one on desktop with your code and uploaded it. notCaptcha is working now. But the old captcha is still there, the one where you have to type the letters. Can that one be deleted (and how?), doesn't help against Bots anyway
Title: Re: notCaptcha
Post by: Arantor on September 28, 2013, 10:44:31 AM
You should be able to turn off the standard SMF CAPTCHA from Admin > Configuration > Security and Moderation > Anti-Spam
Title: Re: notCaptcha
Post by: Omebolle on September 29, 2013, 08:46:16 AM
Thanks, issues solved  :)
Title: Re: notCaptcha
Post by: PopUpSteve on March 26, 2014, 04:33:27 PM
Looks like this is not functioning properly with I.E. 11. The slides don't work. I have had several people try to register and all reported the same problem.

Might be a good idea to include an email link below the images. Something like "Having trouble registering, click here" and that would be a email link.
Title: Re: notCaptcha
Post by: PopUpSteve on April 02, 2014, 11:41:06 AM
OK, I've had too many reports of the slide bars not functioning in newer browsers and devices so I'm going to pull this mod from my site. When it was working it was GREAT. Hopefully the developer will fix the issues soon.  :(
Title: Re: notCaptcha
Post by: MoskmaN on September 01, 2014, 01:55:15 AM
i have the same problem with slide bars not functioning in IE11
Title: Re: notCaptcha
Post by: Omebolle on October 03, 2014, 02:04:58 PM
I also got feedback from soon to be members they couldn't use the sliders in IE. About a year operative now and no bots came through *thumbsup*
Title: Re: notCaptcha
Post by: Tokzu on December 09, 2014, 03:10:07 PM
Anyone knows if this mod is working with 2.0.9 correctly?
Title: Re: notCaptcha
Post by: macfreund on December 09, 2014, 04:25:32 PM
Yes, it works.
Title: Re: notCaptcha
Post by: Burt on March 28, 2015, 11:15:38 PM
Quote from: Tokzu on December 09, 2014, 03:10:07 PM
Anyone knows if this mod is working with 2.0.9 correctly?


Yes it does work but not from mobile phones and now it has also stop working on IE 11 browser. Does anyone have a fix for IE 11 at least???. It would be a pity to remove it because it has been very effective for the past few years...
Title: Re: notCaptcha
Post by: profzelonka on February 05, 2017, 02:53:36 PM
Would love to see this updated to work on mobile and all..
Title: Re: notCaptcha
Post by: becometa on January 18, 2018, 01:34:12 PM
Quote from: profzelonka on February 05, 2017, 02:53:36 PM
Would love to see this updated to work on mobile and all..

+1

Mobile traffic is getting bigger every month.